Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PAIPhotonModel.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4PAIPhotonModel.hh 72048 2013-07-04 12:39:58Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class header file
31 //
32 //
33 // File name: G4PAIPhotonModel
34 //
35 // Author: V. Grichine based on Vladimir Ivanchenko code
36 //
37 // Creation date: 05.10.2003
38 //
39 // Modifications:
40 // 11.04.05 Major optimisation of internal interfaces (V.Ivantchenko)
41 // 26-09-07 Fixed tmax computation (V.Ivantchenko)
42 //
43 //
44 // Class Description:
45 //
46 // Implementation of PAI model of energy loss and
47 // delta-electron production by heavy charged particles
48 
49 // -------------------------------------------------------------------
50 //
51 
52 #ifndef G4PAIPhotonModel_h
53 #define G4PAIPhotonModel_h 1
54 
55 #include <vector>
56 #include "G4VEmModel.hh"
57 #include "globals.hh"
58 #include "G4VEmFluctuationModel.hh"
59 #include "G4PAIxSection.hh"
60 
61 class G4PhysicsLogVector;
62 class G4PhysicsTable;
63 class G4Region;
64 class G4Material;
66 class G4ProductionCuts;
68 
70 {
71 
72 public:
73 
74  G4PAIPhotonModel(const G4ParticleDefinition* p = 0, const G4String& nam = "PAIPhoton");
75 
76  virtual ~G4PAIPhotonModel();
77 
78  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
79 
80  virtual void InitialiseMe(const G4ParticleDefinition*){};
82 
84  const G4ParticleDefinition*,
85  G4double kineticEnergy,
86  G4double cutEnergy);
87 
89  const G4ParticleDefinition*,
90  G4double kineticEnergy,
91  G4double cutEnergy,
92  G4double maxEnergy);
93 
95  const G4ParticleDefinition*,
96  G4double kineticEnergy,
97  G4double photonCut,
98  G4double cutEnergy,
99  G4double maxEnergy);
100 
101  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
102  const G4MaterialCutsCouple*,
103  const G4DynamicParticle*,
104  G4double tmin,
105  G4double maxEnergy);
106 
108  G4double tmin, G4double maxEnergy);
109 
111  const G4DynamicParticle*,
112  G4double,
113  G4double,
114  G4double);
115 
116  virtual G4double Dispersion( const G4Material*,
117  const G4DynamicParticle*,
118  G4double,
119  G4double);
120 
121  void DefineForRegion(const G4Region* r) ;
123  void BuildPAIonisationTable();
124  void BuildLambdaVector(const G4MaterialCutsCouple* matCutsCouple);
125  void BuildLambdaVector(const G4MaterialCutsCouple* matCutsCouple,G4double,G4double);
126 
127  G4double GetdNdxCut( G4int iPlace, G4double transferCut);
128  G4double GetdNdxPhotonCut( G4int iPlace, G4double transferCut);
129  G4double GetdNdxPlasmonCut( G4int iPlace, G4double transferCut);
130 
131  G4double GetdEdxCut( G4int iPlace, G4double transferCut);
132 
134  G4int iPlace, G4double scaledTkin );
136  G4int iPlace, G4double scaledTkin,G4double step, G4double cof );
138  G4double position, G4int iTransfer );
139 
140 protected:
141 
143  G4double kinEnergy);
144 
145 private:
146 
147  void SetParticle(const G4ParticleDefinition* p);
148 
149  // hide assignment operator
150  G4PAIPhotonModel & operator=(const G4PAIPhotonModel &right);
152 
153  // The vector over proton kinetic energies: the range of gammas
154 
155  G4double fLowestKineticEnergy;
156  G4double fHighestKineticEnergy;
157  G4int fTotBin;
158  G4int fMeanNumber;
159  G4int fVerbose;
160  G4PhysicsLogVector* fProtonEnergyVector ;
161  G4PAIxSection fPAIxSection;
162  G4SandiaTable fSandia;
163 
164  // vectors
165 
166  G4PhysicsTable* fPAItransferTable;
167  std::vector<G4PhysicsTable*> fPAIxscBank;
168 
169  G4PhysicsTable* fPAIphotonTable;
170  std::vector<G4PhysicsTable*> fPAIphotonBank;
171 
172  G4PhysicsTable* fPAIplasmonTable;
173  std::vector<G4PhysicsTable*> fPAIplasmonBank;
174 
175  G4PhysicsTable* fPAIdEdxTable;
176  std::vector<G4PhysicsTable*> fPAIdEdxBank;
177 
178  std::vector<const G4MaterialCutsCouple*> fMaterialCutsCoupleVector;
179  std::vector<const G4Region*> fPAIRegionVector;
180 
181  size_t fMatIndex ;
182  G4double** fSandiaPhotoAbsCof ;
183  G4int fSandiaIntervalNumber ;
184  const G4MaterialCutsCouple* fCutCouple;
185  const G4Material* fMaterial;
186 
187  G4PhysicsLogVector* fdEdxVector ;
188  std::vector<G4PhysicsLogVector*> fdEdxTable ;
189 
190  G4PhysicsLogVector* fLambdaVector ;
191  std::vector<G4PhysicsLogVector*> fLambdaTable ;
192 
193  G4PhysicsLogVector* fdNdxCutVector ;
194  std::vector<G4PhysicsLogVector*> fdNdxCutTable ;
195 
196  G4PhysicsLogVector* fdNdxCutPhotonVector ;
197  std::vector<G4PhysicsLogVector*> fdNdxCutPhotonTable ;
198 
199  G4PhysicsLogVector* fdNdxCutPlasmonVector ;
200  std::vector<G4PhysicsLogVector*> fdNdxCutPlasmonTable ;
201 
202 
203  const G4ParticleDefinition* fParticle;
204  const G4ParticleDefinition* fGamma;
205  const G4ParticleDefinition* fElectron;
206  const G4ParticleDefinition* fPositron;
207  G4ParticleChangeForLoss* fParticleChange;
208 
209  G4double fMass;
210  G4double fSpin;
211  G4double fChargeSquare;
212  G4double fRatio;
213  G4double fHighKinEnergy;
214  G4double fLowKinEnergy;
215  G4double fTwoln10;
216  G4double fBg2lim;
217  G4double fTaulim;
218  G4double fQc;
219 
220  G4bool isInitialised;
221 };
222 
223 #endif
224 
225 
226 
227 
228 
229 
230 
G4double TestSecondaries(G4MaterialCutsCouple *, G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4double GetdEdxCut(G4int iPlace, G4double transferCut)
G4double GetXscPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double photonCut, G4double cutEnergy, G4double maxEnergy)
void DefineForRegion(const G4Region *r)
const char * p
Definition: xmltok.h:285
G4double GetEnergyTransfer(G4PhysicsTable *, G4int iPlace, G4double position, G4int iTransfer)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
G4double GetdNdxPlasmonCut(G4int iPlace, G4double transferCut)
int G4int
Definition: G4Types.hh:78
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
void BuildLambdaVector(const G4MaterialCutsCouple *matCutsCouple)
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual void InitTest(const G4ParticleDefinition *, G4MaterialCutsCouple *, G4double, G4double)
bool G4bool
Definition: G4Types.hh:79
G4double GetdNdxPhotonCut(G4int iPlace, G4double transferCut)
G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy)
virtual G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double, G4double, G4double)
G4double GetAlongStepTransfer(G4PhysicsTable *, G4PhysicsLogVector *, G4int iPlace, G4double scaledTkin, G4double step, G4double cof)
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double, G4double)
virtual ~G4PAIPhotonModel()
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4double GetdNdxCut(G4int iPlace, G4double transferCut)
virtual void InitialiseMe(const G4ParticleDefinition *)
G4PAIPhotonModel(const G4ParticleDefinition *p=0, const G4String &nam="PAIPhoton")
double G4double
Definition: G4Types.hh:76
G4double GetPostStepTransfer(G4PhysicsTable *, G4PhysicsLogVector *, G4int iPlace, G4double scaledTkin)