#include <PhysicsConfigurationHelper.h>
◆ PhysicsConfigurationHelper() [1/2]
| PhysicsConfigurationHelper::PhysicsConfigurationHelper |
( |
| ) |
|
|
protected |
Definition at line 12 of file PhysicsConfigurationHelper.cxx.
14 G4cout <<
"PhysicsConfigurationHelper constructor: start" << G4endl;
29 G4cout<<
"Read in physics parameters:"<<G4endl;
38 else G4cout<<
" s"<<G4endl;
40 G4cout<<
"Mixing = "<<
m_mixing*100 <<
" %"<<G4endl;
45 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 88 of file PhysicsConfigurationHelper.cxx.
93 G4String::size_type lastPos =
str.find_first_not_of(delimiters, 0);
94 if (lastPos==G4String::npos)
return;
97 G4String::size_type
pos =
str.find_first_of(delimiters, lastPos);
99 while (G4String::npos !=
pos || G4String::npos != lastPos)
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);
107 tokens.push_back(std::move(temp));
110 lastPos =
str.find_first_not_of(delimiters,
pos);
111 if (lastPos==G4String::npos)
continue;
114 pos =
str.find_first_of(delimiters, lastPos);
◆ ReadInPhysicsParameters()
| void PhysicsConfigurationHelper::ReadInPhysicsParameters |
( |
std::map< G4String, G4double > & |
parameters | ) |
const |
|
private |
Definition at line 60 of file PhysicsConfigurationHelper.cxx.
73 std::ifstream physics_stream (
"PhysicsConfiguration.txt");
76 while (getline(physics_stream,
line)) {
77 std::vector<G4String>
tokens;
84 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: