Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PAIModel.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$
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class header file
31 //
32 //
33 // File name: G4PAIModel
34 //
35 // Author: V. Grichine based on Vladimir Ivanchenko code
36 //
37 // Creation date: 05.10.2003
38 //
39 // Modifications:
40 // 08-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 G4PAIModel_h
53 #define G4PAIModel_h 1
54 
55 #include <vector>
56 #include "G4VEmModel.hh"
57 #include "globals.hh"
58 #include "G4VEmFluctuationModel.hh"
59 #include "G4PAIySection.hh"
60 
61 class G4PhysicsLogVector;
62 class G4PhysicsTable;
63 class G4Region;
66 
68 {
69 
70 public:
71 
72  G4PAIModel(const G4ParticleDefinition* p = 0, const G4String& nam = "PAI");
73 
74  virtual ~G4PAIModel();
75 
76  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
77 
78  virtual void InitialiseMe(const G4ParticleDefinition*);
79 
81  const G4ParticleDefinition*,
82  G4double kineticEnergy,
83  G4double cutEnergy);
84 
86  const G4ParticleDefinition*,
87  G4double kineticEnergy,
88  G4double cutEnergy,
89  G4double maxEnergy);
90 
91  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
92  const G4MaterialCutsCouple*,
93  const G4DynamicParticle*,
94  G4double tmin,
95  G4double maxEnergy);
96 
97  virtual G4double SampleFluctuations(const G4Material*,
98  const G4DynamicParticle*,
99  G4double&,
100  G4double&,
101  G4double&);
102 
103  virtual G4double Dispersion( const G4Material*,
104  const G4DynamicParticle*,
105  G4double&,
106  G4double&);
107 
108  void DefineForRegion(const G4Region* r) ;
110  void BuildPAIonisationTable();
111  void BuildLambdaVector();
112 
113  G4double GetdNdxCut( G4int iPlace, G4double transferCut);
114  G4double GetdEdxCut( G4int iPlace, G4double transferCut);
115  G4double GetPostStepTransfer( G4double scaledTkin );
118  G4int iTransfer );
119 
120  void SetVerboseLevel(G4int verbose){fVerbose=verbose;};
121 
122 protected:
123 
125  G4double kinEnergy);
126 
127 private:
128 
129  void SetParticle(const G4ParticleDefinition* p);
130 
131  // hide assignment operator
132  G4PAIModel & operator=(const G4PAIModel &right);
133  G4PAIModel(const G4PAIModel&);
134 
135  // The vector over proton kinetic energies: the range of gammas
136  G4int fVerbose;
137  G4double fLowestGamma;
138  G4double fHighestGamma;
139  G4double fLowestKineticEnergy;
140  G4double fHighestKineticEnergy;
141  G4int fTotBin;
142  G4int fMeanNumber;
143  G4PhysicsLogVector* fParticleEnergyVector ;
144  G4PAIySection fPAIySection;
145 
146  // vectors
147 
148  G4PhysicsTable* fPAItransferTable;
149  std::vector<G4PhysicsTable*> fPAIxscBank;
150 
151  G4PhysicsTable* fPAIdEdxTable;
152  std::vector<G4PhysicsTable*> fPAIdEdxBank;
153 
154  std::vector<const G4MaterialCutsCouple*> fMaterialCutsCoupleVector;
155  std::vector<const G4Region*> fPAIRegionVector;
156 
157  const G4MaterialCutsCouple* fCutCouple;
158  const G4Material* fMaterial;
159  G4double fDeltaCutInKinEnergy;
160 
161  size_t fMatIndex ;
162  G4double** fSandiaPhotoAbsCof ;
163  G4int fSandiaIntervalNumber ;
164 
165  G4PhysicsLogVector* fdEdxVector ;
166  std::vector<G4PhysicsLogVector*> fdEdxTable ;
167 
168  G4PhysicsLogVector* fLambdaVector ;
169  std::vector<G4PhysicsLogVector*> fLambdaTable ;
170 
171  G4PhysicsLogVector* fdNdxCutVector ;
172  std::vector<G4PhysicsLogVector*> fdNdxCutTable ;
173 
174  const G4ParticleDefinition* fParticle;
175  const G4ParticleDefinition* fElectron;
176  const G4ParticleDefinition* fPositron;
177  G4ParticleChangeForLoss* fParticleChange;
178 
179  G4double fMass;
180  G4double fSpin;
181  G4double fChargeSquare;
182  G4double fRatio;
183  G4double fHighKinEnergy;
184  G4double fLowKinEnergy;
185  G4double fTwoln10;
186  G4double fBg2lim;
187  G4double fTaulim;
188  G4double fQc;
189 
190  G4bool isInitialised;
191 };
192 
193 #endif
194 
195 
196 
197 
198 
199 
200