Geant4-11
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
45#include "G4LEPTSDiffXS.hh"
47#include "G4LEPTSElossDistr.hh"
48#include "G4ForceCondition.hh"
49#include <map>
50#include <vector>
51
56};
57
58
60{
61
62public:
63
64 G4VLEPTSModel(const G4String& processName);
66
67 void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); //G4ParticleWithCuts::SetCut()
69 const G4ParticleDefinition* aParticle,
70 G4double kineticEnergy );
71
73 G4double SampleAngle(const G4Material* aMaterial, G4double e, G4double el);
75
76 G4VLEPTSModel& operator=(const G4VLEPTSModel &right); //hide assignment operator
78
79protected:
80 void Init();
81 G4bool ReadParam(G4String fileName, const G4Material* aMaterial);
82 virtual std::map<G4int,std::vector<G4double> > ReadIXS(G4String fileName, const G4Material* aMaterial);
83 G4double SampleEnergyLoss(const G4Material* aMaterial, G4double eMin, G4double eMax);
84 void BuildMeanFreePathTable( const G4Material* aMaterial, std::map< G4int, std::vector<G4double> >& integralXS );
85
86protected:
88
92
93 std::map<const G4Material*, G4double > theIonisPot;
94 std::map<const G4Material*, G4double > theIonisPotInt;
95 std::map<const G4Material*, G4double > theMolecularMass;
96
97 std::map<const G4Material*, G4LEPTSDiffXS*> theDiffXS;
98 std::map<const G4Material*, G4LEPTSDistribution*> theRMTDistr;
99
100 std::map<const G4Material*, G4LEPTSElossDistr*> theElostDistr;
101 std::map<const G4Material*, G4LEPTSDistribution*> theElostDistr2;
102
103 std::map<const G4Material*, G4int> theNXSdat;
104 std::map<const G4Material*, G4int> theNXSsub;
105
108
110};
111
112
113#endif // G4VLEPTSModel_hh
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
XSType
@ XSIonisation
@ XSElastic
@ XSRotation
@ XSExcitation
@ XSDissociation
@ XSPositronium
@ XSEnergy
@ XSTotal
@ XSInelastic
@ XSVibration
@ XSAttachment
G4bool ReadParam(G4String fileName, const G4Material *aMaterial)
std::map< const G4Material *, G4LEPTSDiffXS * > theDiffXS
G4ThreeVector SampleNewDirection(const G4Material *aMaterial, G4ThreeVector Dir, G4double e, G4double el)
G4VLEPTSModel(const G4VLEPTSModel &)
G4double SampleEnergyLoss(const G4Material *aMaterial, G4double eMin, G4double eMax)
std::map< const G4Material *, G4double > theMolecularMass
G4double GetMeanFreePath(const G4Material *mate, const G4ParticleDefinition *aParticle, G4double kineticEnergy)
std::map< const G4Material *, G4int > theNXSsub
G4VLEPTSModel(const G4String &processName)
std::map< const G4Material *, G4LEPTSElossDistr * > theElostDistr
std::map< const G4Material *, G4double > theIonisPotInt
std::map< const G4Material *, G4LEPTSDistribution * > theElostDistr2
G4VLEPTSModel & operator=(const G4VLEPTSModel &right)
G4int theNumbBinTable
std::map< const G4Material *, G4double > theIonisPot
G4PhysicsTable * theMeanFreePathTable
G4double theHighestEnergyLimit
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
virtual std::map< G4int, std::vector< G4double > > ReadIXS(G4String fileName, const G4Material *aMaterial)
G4double theLowestEnergyLimit
std::map< const G4Material *, G4LEPTSDistribution * > theRMTDistr
G4bool isInitialised
void BuildMeanFreePathTable(const G4Material *aMaterial, std::map< G4int, std::vector< G4double > > &integralXS)
std::map< const G4Material *, G4int > theNXSdat
G4double SampleAngle(const G4Material *aMaterial, G4double e, G4double el)