57 const G4double G4XnpTotalLowE::_lowLimit = 0.;
62 const G4double G4XnpTotalLowE::_eMinTable = 1.8964808;
63 const G4double G4XnpTotalLowE::_eStepLog = 0.01;
67 const G4int G4XnpTotalLowE::_tableSize = 101;
68 const G4double G4XnpTotalLowE::_sigmaTable[101] =
71 248.20, 93.38, 55.26, 44.50, 41.33, 38.48, 37.20, 35.98,
72 35.02, 34.47, 34.37, 34.67, 35.23, 35.97, 36.75, 37.37,
73 37.77, 38.03, 38.40, 38.83, 39.26, 39.67, 40.06, 40.45,
74 40.79, 41.06, 41.31, 41.52, 41.70, 41.81, 41.87, 41.98,
75 42.12, 42.29, 42.55, 42.82, 43.01, 43.12, 43.16, 43.14,
76 43.06, 42.95, 42.81, 42.67, 42.54, 42.45, 42.38, 42.33,
77 42.30, 42.29, 42.28, 42.26, 42.24, 42.21, 42.17, 42.14,
78 42.10, 42.07, 42.06, 42.05, 42.04, 42.03, 42.02, 42.00,
79 41.97, 41.94, 41.89, 41.84, 41.79, 41.73, 41.67, 41.61,
80 41.55, 41.49, 41.44, 41.38, 41.34, 41.31, 41.29, 41.28,
81 41.27, 41.28, 41.30, 41.33, 41.36, 41.40, 41.44, 41.49,
82 41.50, 41.51, 41.51, 41.51, 41.52, 41.51, 41.51, 41.50,
83 41.50, 41.49, 41.47, 41.46
91 _eMin = _eMinTable *
GeV;
92 _eMin = std::exp(std::log(_eMinTable)-_eStepLog)*
GeV;
93 _eMax = std::exp(std::log(_eMinTable) + _tableSize * _eStepLog) *
GeV;
97 if (_eMin < _lowLimit)
98 throw G4HadronicException(__FILE__, __LINE__,
"G4XnpTotalLowE::G4XnpTotalLowE - Low energy limit not valid");
100 if (_highLimit > _eMax)
101 throw G4HadronicException(__FILE__, __LINE__,
"G4XnpTotalLowE::G4XnpTotalLowE - High energy limit not valid");
105 for (i=0; i<_tableSize; i++)
142 if ( (def1 == proton && def2 == neutron) ||
143 (def1 == neutron && def2 == proton) )
145 if (sqrtS >= _eMin && sqrtS <= _eMax)
147 sigma = _sigma->
GetValue(sqrtS,dummy);
148 }
else if ( sqrtS < _eMin )
150 sigma = _sigma->
GetValue(_eMin,dummy);
165 for (i=0; i<_tableSize; i++)
169 G4cout << i <<
") e = " << e <<
" GeV ---- Cross section = " << sigma <<
" mb " <<
G4endl;
virtual G4String Name() const
G4double GetValue(G4double theEnergy, G4bool &isOutRange) const
static G4Proton * ProtonDefinition()
G4bool operator==(const G4XnpTotalLowE &right) const
G4double GetLowEdgeEnergy(size_t binNumber) const
G4ParticleDefinition * GetDefinition() const
G4GLOB_DLL std::ostream G4cout
void PutValue(size_t index, G4double theValue)
virtual G4bool IsValid(G4double e) const
virtual void Print() const
virtual ~G4XnpTotalLowE()
virtual G4double CrossSection(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
const XML_Char int const XML_Char * value
G4bool operator!=(const G4XnpTotalLowE &right) const
const G4LorentzVector & Get4Momentum() const
static G4Neutron * NeutronDefinition()
virtual void Print() const
G4bool InLimits(G4double e, G4double eLow, G4double eHigh) const