58 const G4double G4XnpTotalLowE::_lowLimit = 0.;
63 const G4double G4XnpTotalLowE::_eMinTable = 1.8964808;
64 const G4double G4XnpTotalLowE::_eStepLog = 0.01;
68 const G4int G4XnpTotalLowE::_tableSize = 101;
69 const G4double G4XnpTotalLowE::_sigmaTable[101] =
72 248.20, 93.38, 55.26, 44.50, 41.33, 38.48, 37.20, 35.98,
73 35.02, 34.47, 34.37, 34.67, 35.23, 35.97, 36.75, 37.37,
74 37.77, 38.03, 38.40, 38.83, 39.26, 39.67, 40.06, 40.45,
75 40.79, 41.06, 41.31, 41.52, 41.70, 41.81, 41.87, 41.98,
76 42.12, 42.29, 42.55, 42.82, 43.01, 43.12, 43.16, 43.14,
77 43.06, 42.95, 42.81, 42.67, 42.54, 42.45, 42.38, 42.33,
78 42.30, 42.29, 42.28, 42.26, 42.24, 42.21, 42.17, 42.14,
79 42.10, 42.07, 42.06, 42.05, 42.04, 42.03, 42.02, 42.00,
80 41.97, 41.94, 41.89, 41.84, 41.79, 41.73, 41.67, 41.61,
81 41.55, 41.49, 41.44, 41.38, 41.34, 41.31, 41.29, 41.28,
82 41.27, 41.28, 41.30, 41.33, 41.36, 41.40, 41.44, 41.49,
83 41.50, 41.51, 41.51, 41.51, 41.52, 41.51, 41.51, 41.50,
84 41.50, 41.49, 41.47, 41.46
92 _eMin = _eMinTable *
GeV;
94 _eMax =
G4Exp(
G4Log(_eMinTable) + _tableSize * _eStepLog) *
GeV;
98 if (_eMin < _lowLimit)
99 throw G4HadronicException(__FILE__, __LINE__,
"G4XnpTotalLowE::G4XnpTotalLowE - Low energy limit not valid");
101 if (_highLimit > _eMax)
102 throw G4HadronicException(__FILE__, __LINE__,
"G4XnpTotalLowE::G4XnpTotalLowE - High energy limit not valid");
106 for (i=0; i<_tableSize; i++)
116 if (_sigma)
delete _sigma;
144 if ( (def1 == proton && def2 == neutron) ||
145 (def1 == neutron && def2 == proton) )
147 if (sqrtS >= _eMin && sqrtS <= _eMax)
149 sigma = _sigma->
GetValue(sqrtS,dummy);
150 }
else if ( sqrtS < _eMin )
152 sigma = _sigma->
GetValue(_eMin,dummy);
167 for (i=0; i<_tableSize; i++)
171 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
G4GLOB_DLL std::ostream G4cout
const XML_Char int const XML_Char * value
void PutValue(size_t index, G4double theValue)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
virtual G4bool IsValid(G4double e) const
virtual void Print() const
static constexpr double GeV
virtual ~G4XnpTotalLowE()
virtual G4double CrossSection(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
G4bool operator!=(const G4XnpTotalLowE &right) const
const G4LorentzVector & Get4Momentum() const
const G4ParticleDefinition * GetDefinition() const
static G4Neutron * NeutronDefinition()
G4PhysicsLogVector G4PhysicsLnVector
virtual void Print() const
static constexpr double millibarn
G4bool InLimits(G4double e, G4double eLow, G4double eHigh) const