#include <PhysicsConfigurationHelper.h>
|
| void | ReadAndParse (const G4String &str, std::vector< G4String > &tokens, const G4String &delimiters=" ") const |
| void | ReadInPhysicsParameters (std::map< G4String, G4double > ¶meters) const |
◆ PhysicsConfigurationHelper() [1/2]
| PhysicsConfigurationHelper::PhysicsConfigurationHelper |
( |
| ) |
|
|
protected |
Definition at line 12 of file PhysicsConfigurationHelper.cxx.
13{
14 G4cout << "PhysicsConfigurationHelper constructor: start" << G4endl;
15
18 if (parameters[
"Resonant"]!=0.)
m_resonant=
true;
28
29 G4cout<<"Read in physics parameters:"<<G4endl;
31 G4cout<<
"ResonanceEnergy = "<<
m_ek_0/CLHEP::GeV<<
" GeV"<<G4endl;
33 G4cout<<
"Gamma = "<<
m_gamma/CLHEP::GeV<<
" GeV"<<G4endl;
34 G4cout<<
"Amplitude = "<<
m_amplitude/CLHEP::millibarn<<
" millibarn"<<G4endl;
38 else G4cout<<" s"<<G4endl;
40 G4cout<<
"Mixing = "<<
m_mixing*100 <<
" %"<<G4endl;
42
45 G4cout <<
"WARNING: Inconsistent treatment of R-Hadron properties! Lifetime of " <<
m_hadronlifetime
47 }
48
49 return;
50}
double m_suppressionfactor
void ReadInPhysicsParameters(std::map< G4String, G4double > ¶meters) const
◆ PhysicsConfigurationHelper() [2/2]
◆ Amplitude()
| double PhysicsConfigurationHelper::Amplitude |
( |
| ) |
const |
|
inline |
◆ DoDecays()
| int PhysicsConfigurationHelper::DoDecays |
( |
| ) |
const |
|
inline |
◆ Gamma()
| double PhysicsConfigurationHelper::Gamma |
( |
| ) |
const |
|
inline |
◆ Instance()
◆ Lifetime()
| double PhysicsConfigurationHelper::Lifetime |
( |
| ) |
const |
|
inline |
◆ Mixing()
| double PhysicsConfigurationHelper::Mixing |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ ReadAndParse()
| void PhysicsConfigurationHelper::ReadAndParse |
( |
const G4String & | str, |
|
|
std::vector< G4String > & | tokens, |
|
|
const G4String & | delimiters = " " ) const |
|
private |
Definition at line 88 of file PhysicsConfigurationHelper.cxx.
91{
92
93 G4String::size_type lastPos =
str.find_first_not_of(delimiters, 0);
94 if (lastPos==G4String::npos) return;
95
96
97 G4String::size_type
pos =
str.find_first_of(delimiters, lastPos);
98
99 while (G4String::npos != pos || G4String::npos != lastPos)
100 {
101
102 G4String temp =
str.substr(lastPos, pos - lastPos);
103 while(temp.c_str()[0] == ' ') temp.erase(0,1);
104 while(temp[temp.size()-1] == ' ') temp.erase(temp.size()-1,1);
105
106
107 tokens.push_back(std::move(temp));
108
109
110 lastPos =
str.find_first_not_of(delimiters, pos);
111 if (lastPos==G4String::npos) continue;
112
113
114 pos =
str.find_first_of(delimiters, lastPos);
115 }
116}
◆ ReadInPhysicsParameters()
| void PhysicsConfigurationHelper::ReadInPhysicsParameters |
( |
std::map< G4String, G4double > & | parameters | ) |
const |
|
private |
Definition at line 60 of file PhysicsConfigurationHelper.cxx.
61 {
72
73 std::ifstream physics_stream ("PhysicsConfiguration.txt");
75 char** endptr=0;
76 while (getline(physics_stream,line)) {
77 std::vector<G4String>
tokens;
78
81 G4double
val = strtod(tokens[1],endptr);
83 }
84 physics_stream.close();
85 }
void ReadAndParse(const G4String &str, std::vector< G4String > &tokens, const G4String &delimiters=" ") const
◆ ReggeModel()
| bool PhysicsConfigurationHelper::ReggeModel |
( |
| ) |
const |
|
inline |
◆ ResonanceEnergy()
| double PhysicsConfigurationHelper::ResonanceEnergy |
( |
| ) |
const |
|
inline |
◆ Resonant()
| bool PhysicsConfigurationHelper::Resonant |
( |
| ) |
const |
|
inline |
◆ SuppressionFactor()
| double PhysicsConfigurationHelper::SuppressionFactor |
( |
| ) |
const |
|
inline |
◆ XsecMultiplier()
| double PhysicsConfigurationHelper::XsecMultiplier |
( |
| ) |
const |
|
inline |
◆ m_amplitude
| double PhysicsConfigurationHelper::m_amplitude {0.} |
|
private |
◆ m_doDecays
| int PhysicsConfigurationHelper::m_doDecays {0} |
|
private |
◆ m_ek_0
| double PhysicsConfigurationHelper::m_ek_0 {0.} |
|
private |
◆ m_gamma
| double PhysicsConfigurationHelper::m_gamma {0.} |
|
private |
◆ m_hadronlifetime
| double PhysicsConfigurationHelper::m_hadronlifetime {0.} |
|
private |
◆ m_mixing
| double PhysicsConfigurationHelper::m_mixing {0.} |
|
private |
◆ m_reggemodel
| bool PhysicsConfigurationHelper::m_reggemodel {false} |
|
private |
◆ m_resonant
| bool PhysicsConfigurationHelper::m_resonant {false} |
|
private |
◆ m_suppressionfactor
| double PhysicsConfigurationHelper::m_suppressionfactor {0.} |
|
private |
◆ m_xsecmultiplier
| double PhysicsConfigurationHelper::m_xsecmultiplier {1.} |
|
private |
The documentation for this class was generated from the following files: