#include <G4EmSaturation.hh>
Definition at line 69 of file G4EmSaturation.hh.
◆ G4EmSaturation()
G4EmSaturation::G4EmSaturation |
( |
| ) |
|
Definition at line 58 of file G4EmSaturation.cc.
59{
60 verbose = 1;
61 manager = 0;
62
63 curMaterial = 0;
64 curBirks = 0.0;
65 curRatio = 1.0;
66 curChargeSq = 1.0;
67 nMaterials = 0;
68
69 electron = 0;
70 proton = 0;
72
73 Initialise();
74}
static G4NistManager * Instance()
◆ ~G4EmSaturation()
G4EmSaturation::~G4EmSaturation |
( |
| ) |
|
|
virtual |
◆ DumpBirksCoefficients()
void G4EmSaturation::DumpBirksCoefficients |
( |
| ) |
|
Definition at line 233 of file G4EmSaturation.cc.
234{
235 if(nMaterials > 0) {
236 G4cout <<
"### Birks coeffitients used in run time" <<
G4endl;
237 for(
G4int i=0; i<nMaterials; ++i) {
238 G4double br = matPointers[i]->GetIonisation()->GetBirksConstant();
239 G4cout <<
" " << matNames[i] <<
" "
240 << br*MeV/mm << " mm/MeV" << " "
241 << br*matPointers[i]->GetDensity()*MeV*cm2/g
242 << " g/cm^2/MeV"
244 }
245 }
246}
G4DLLIMPORT std::ostream G4cout
◆ DumpG4BirksCoefficients()
void G4EmSaturation::DumpG4BirksCoefficients |
( |
| ) |
|
Definition at line 250 of file G4EmSaturation.cc.
251{
252 if(nG4Birks > 0) {
253 G4cout <<
"### Birks coeffitients for Geant4 materials" <<
G4endl;
254 for(
G4int i=0; i<nG4Birks; ++i) {
255 G4cout <<
" " << g4MatNames[i] <<
" "
256 << g4MatData[i]*MeV/mm <<
" mm/MeV" <<
G4endl;
257 }
258 }
259}
◆ FindG4BirksCoefficient()
Definition at line 136 of file G4EmSaturation.cc.
137{
139
140
141 for(
G4int j=0; j<nG4Birks; ++j) {
142 if(name == g4MatNames[j]) {
143 if(verbose > 0)
144 G4cout <<
"### G4EmSaturation::FindG4BirksCoefficient for "
145 << name << " is " << g4MatData[j]*MeV/mm << " mm/MeV "
147 return g4MatData[j];
148 }
149 }
150 return FindBirksCoefficient(mat);
151}
const G4String & GetName() const
◆ SetVerbose()
void G4EmSaturation::SetVerbose |
( |
G4int |
val | ) |
|
|
inline |
◆ VisibleEnergyDeposition() [1/2]
Definition at line 83 of file G4EmSaturation.cc.
89{
90 if(edep <= 0.0) { return 0.0; }
91
94
95 if(bfactor > 0.0) {
96
98
99 if(22 == pdgCode) {
100 evis /= (1.0 + bfactor*edep/manager->
GetRange(electron,edep,couple));
101
102
103 } else {
104
105
107 if(nloss < 0.0) nloss = 0.0;
109
110
111 if(2112 == pdgCode || eloss < 0.0 || length <= 0.0) {
112 nloss = edep;
113 eloss = 0.0;
114 }
115
116
117 if(eloss > 0.0) { eloss /= (1.0 + bfactor*eloss/length); }
118
119
120 if(nloss > 0.0) {
124 nloss /= (1.0 + bfactor*nloss/range);
125 }
126
127 evis = eloss + nloss;
128 }
129 }
130
131 return evis;
132}
G4double GetRange(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
const G4Material * GetMaterial() const
G4int GetPDGEncoding() const
static G4Proton * Proton()
Referenced by G4Scintillation::PostStepDoIt(), and VisibleEnergyDeposition().
◆ VisibleEnergyDeposition() [2/2]
Definition at line 137 of file G4EmSaturation.hh.
139{
146}
G4double VisibleEnergyDeposition(const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double length, G4double edepTotal, G4double edepNIEL=0.0)
G4Track * GetTrack() const
G4double GetNonIonizingEnergyDeposit() const
G4double GetStepLength() const
G4double GetTotalEnergyDeposit() const
const G4ParticleDefinition * GetParticleDefinition() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
The documentation for this class was generated from the following files: