#include <PhysicsConfigurationHelper.h>
◆ PhysicsConfigurationHelper() [1/2]
PhysicsConfigurationHelper::PhysicsConfigurationHelper |
( |
| ) |
|
|
protected |
Definition at line 13 of file PhysicsConfigurationHelper.cxx.
15 G4cout <<
"PhysicsConfigurationHelper constructor: start" << G4endl;
30 G4cout<<
"Read in physics parameters:"<<G4endl;
39 else G4cout<<
" s"<<G4endl;
41 G4cout<<
"Mixing = "<<
m_mixing*100 <<
" %"<<G4endl;
46 G4cout <<
"WARNING: Inconsistent treatment of R-Hadron properties! Lifetime of " <<
m_hadronlifetime
◆ 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 89 of file PhysicsConfigurationHelper.cxx.
94 G4String::size_type lastPos =
str.find_first_not_of(delimiters, 0);
95 if (lastPos==G4String::npos)
return;
98 G4String::size_type
pos =
str.find_first_of(delimiters, lastPos);
100 while (G4String::npos !=
pos || G4String::npos != lastPos)
103 G4String temp =
str.substr(lastPos,
pos - lastPos);
104 while(temp.c_str()[0] ==
' ') temp.erase(0,1);
105 while(temp[temp.size()-1] ==
' ') temp.erase(temp.size()-1,1);
111 lastPos =
str.find_first_not_of(delimiters,
pos);
112 if (lastPos==G4String::npos)
continue;
115 pos =
str.find_first_of(delimiters, lastPos);
◆ ReadInPhysicsParameters()
void PhysicsConfigurationHelper::ReadInPhysicsParameters |
( |
std::map< G4String, G4double > & |
parameters | ) |
const |
|
private |
Definition at line 61 of file PhysicsConfigurationHelper.cxx.
74 std::ifstream physics_stream (
"PhysicsConfiguration.txt");
77 while (getline(physics_stream,
line)) {
78 std::vector<G4String>
tokens;
85 physics_stream.close();
◆ 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: