#include <G4VRangeToEnergyConverter.hh>
◆ G4VRangeToEnergyConverter() [1/2]
G4VRangeToEnergyConverter::G4VRangeToEnergyConverter |
( |
| ) |
|
|
explicit |
Definition at line 53 of file G4VRangeToEnergyConverter.cc.
54{
55 if(nullptr == sEnergy)
56 {
58 if(nullptr == sEnergy)
59 {
60 isFirstInstance = true;
61 }
62 l.unlock();
63 }
64
65 if(isFirstInstance)
66 {
67 FillEnergyVector(CLHEP::keV, 10.0*CLHEP::GeV);
68 }
69}
◆ ~G4VRangeToEnergyConverter()
G4VRangeToEnergyConverter::~G4VRangeToEnergyConverter |
( |
| ) |
|
|
virtual |
Definition at line 72 of file G4VRangeToEnergyConverter.cc.
73{
74 if(isFirstInstance)
75 {
76 delete sEnergy;
77 sEnergy = nullptr;
78 sEmin = CLHEP::keV;
79 sEmax = 10.*CLHEP::GeV;
80 }
81}
◆ G4VRangeToEnergyConverter() [2/2]
◆ ComputeValue()
◆ Convert()
Reimplemented in G4RToEConvForProton.
Definition at line 84 of file G4VRangeToEnergyConverter.cc.
86{
87#ifdef G4VERBOSE
89 {
90 G4cout <<
"G4VRangeToEnergyConverter::Convert() - ";
92 <<
" with Range Cut " << rangeCut/mm <<
"[mm]" <<
G4endl;
93 }
94#endif
95
98 {
99 cut = ConvertForGamma(rangeCut, material);
100 }
101 else
102 {
103 cut = ConvertForElectron(rangeCut, material);
104
105 const G4double tune = 0.025*CLHEP::mm*CLHEP::g/CLHEP::cm3;
106 const G4double lowen = 30.*CLHEP::keV;
107 if(cut < lowen)
108 {
109
110 cut /= (1.+(1.-cut/lowen)*tune/(rangeCut*material->
GetDensity()));
111 }
112 }
113
114 cut = std::max(sEmin, std::min(cut, sEmax));
115 return cut;
116}
G4GLOB_DLL std::ostream G4cout
G4double GetDensity() const
const G4String & GetName() const
G4int GetVerboseLevel() const
Referenced by G4ProductionCutsTable::ConvertRangeToEnergy().
◆ GetHighEdgeEnergy()
G4double G4VRangeToEnergyConverter::GetHighEdgeEnergy |
( |
| ) |
|
|
static |
◆ GetLowEdgeEnergy()
G4double G4VRangeToEnergyConverter::GetLowEdgeEnergy |
( |
| ) |
|
|
static |
◆ GetMaxEnergyCut()
G4double G4VRangeToEnergyConverter::GetMaxEnergyCut |
( |
| ) |
|
|
static |
◆ GetParticleType()
◆ GetVerboseLevel()
G4int G4VRangeToEnergyConverter::GetVerboseLevel |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ SetEnergyRange()
void G4VRangeToEnergyConverter::SetEnergyRange |
( |
const G4double | lowedge, |
|
|
const G4double | highedge ) |
|
static |
◆ SetMaxEnergyCut()
void G4VRangeToEnergyConverter::SetMaxEnergyCut |
( |
const G4double | value | ) |
|
|
static |
◆ SetVerboseLevel()
void G4VRangeToEnergyConverter::SetVerboseLevel |
( |
G4int | value | ) |
|
|
inline |
◆ fPDG
G4int G4VRangeToEnergyConverter::fPDG = 0 |
|
protected |
◆ theParticle
The documentation for this class was generated from the following files: