Geant4  10.01.p01
G4VLEPTSModel.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 #ifndef G4VLEPTSModel_hh
27 #define G4VLEPTSModel_hh
28 
29 #include "G4ios.hh"
30 #include "globals.hh"
31 #include "Randomize.hh"
32 #include "G4VEmModel.hh"
33 #include "G4PhysicsTable.hh"
34 #include "G4PhysicsLogVector.hh"
35 #include "G4Element.hh"
36 #include "G4Electron.hh"
37 #include "G4Positron.hh"
38 #include "G4Gamma.hh"
39 #include "G4Step.hh"
40 
41 #include "G4EnergyLossTables.hh"
42 #include "G4UnitsTable.hh"
43 #include <iostream>
44 using namespace std;
45 
46 
47 #include "G4LEPTSDiffXS.hh"
48 #include "G4LEPTSDistribution.hh"
49 #include "G4LEPTSElossDistr.hh"
50 #include "G4ForceCondition.hh"
51 #include <map>
52 #include <vector>
53 
54 enum XSType {XSEnergy=0,
58 };
59 
60 
61 class G4VLEPTSModel : public G4VEmModel
62 {
63 
64 public:
65 
66  G4VLEPTSModel(const G4String& processName);
67  ~G4VLEPTSModel();
68 
69  void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); //G4ParticleWithCuts::SetCut()
70  G4double GetMeanFreePath(const G4Material* mate,
71  const G4ParticleDefinition* aParticle,
72  G4double kineticEnergy );
73 
74  G4ThreeVector SampleNewDirection(const G4Material* aMaterial, G4ThreeVector Dir, G4double e, G4double el);
75  G4double SampleAngle(const G4Material* aMaterial, G4double e, G4double el);
76  G4ThreeVector SampleNewDirection(G4ThreeVector Dir, G4double ang);
77 
78  G4VLEPTSModel& operator=(const G4VLEPTSModel &right); //hide assignment operator
80 
81 protected:
82  void Init();
83  G4bool ReadParam(G4String fileName, const G4Material* aMaterial);
84  virtual std::map<G4int,std::vector<G4double> > ReadIXS(G4String fileName, const G4Material* aMaterial);
85  G4double SampleEnergyLoss(const G4Material* aMaterial, G4double eMin, G4double eMax);
86  void BuildMeanFreePathTable( const G4Material* aMaterial, std::map< G4int, std::vector<G4double> >& integralXS );
87 
88 protected:
90 
94 
95  std::map<const G4Material*, G4double > theIonisPot;
96  std::map<const G4Material*, G4double > theIonisPotInt;
97  std::map<const G4Material*, G4double > theMolecularMass;
98 
99  std::map<const G4Material*, G4LEPTSDiffXS*> theDiffXS;
100  std::map<const G4Material*, G4LEPTSDistribution*> theRMTDistr;
101 
102  std::map<const G4Material*, G4LEPTSElossDistr*> theElostDistr;
103  std::map<const G4Material*, G4LEPTSDistribution*> theElostDistr2;
104 
105  std::map<const G4Material*, G4int> theNXSdat;
106  std::map<const G4Material*, G4int> theNXSsub;
107 
110 
112 };
113 
114 
115 #endif // G4VLEPTSModel_hh
void Init()
Definition: G4IonTable.cc:87
G4bool isInitialised
XSType
CLHEP::Hep3Vector G4ThreeVector
std::map< const G4Material *, G4double > theMolecularMass
std::map< const G4Material *, G4LEPTSDiffXS * > theDiffXS
std::map< const G4Material *, G4LEPTSDistribution * > theRMTDistr
int G4int
Definition: G4Types.hh:78
std::map< const G4Material *, G4double > theIonisPot
std::map< const G4Material *, G4LEPTSElossDistr * > theElostDistr
std::map< const G4Material *, G4LEPTSDistribution * > theElostDistr2
G4PhysicsTable * theMeanFreePathTable
bool G4bool
Definition: G4Types.hh:79
G4double theHighestEnergyLimit
std::map< const G4Material *, G4int > theNXSsub
G4int theNumbBinTable
double G4double
Definition: G4Types.hh:76
G4double theLowestEnergyLimit
std::map< const G4Material *, G4int > theNXSdat
std::map< const G4Material *, G4double > theIonisPotInt