#include <G4PiData.hh>
Definition at line 35 of file G4PiData.hh.
◆ G4PiData()
Definition at line 35 of file G4PiData.cc.
37{
39
40 for( i = 0; i < nP; i++ )
41 {
42 std::pair<G4double, G4double> x;
45 std::pair<G4double, std::pair<G4double, G4double > > aP;
47 aP.second=x;
48 push_back(aP);
49 }
50}
static constexpr double millibarn
static constexpr double GeV
References GeV, and millibarn.
◆ ~G4PiData()
◆ AppliesTo()
Definition at line 54 of file G4PiData.cc.
55{
56 return (kineticEnergy<=back().first);
57}
◆ ElasticXSection()
Definition at line 85 of file G4PiData.cc.
86{
88 G4PiData::iterator it=begin();
89 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
90 if(it==end())
91 {
93 ed << "This cross section is applied for E(MeV)= " << kineticEnergy
94 <<
" outside allowed energy interval" <<
G4endl;
96 }
97 if(it==begin()) it++;
100 x1=(*(it-1)).second.first - (*(it-1)).second.second;
102 x2=(*(it)).second.first - (*(it)).second.second;
104 return result;
105}
static const G4double e1[44]
static const G4double e2[44]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
T max(const T t1, const T t2)
brief Return the largest of the two arguments
References e1, e2, FatalException, G4endl, G4Exception(), and G4INCL::Math::max().
◆ ReactionXSection()
Definition at line 61 of file G4PiData.cc.
62{
64 G4PiData::iterator it=begin();
65 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
66 if(it==end())
67 {
69 ed << "This cross section is applied for E(MeV)= " << kineticEnergy
70 <<
" outside allowed energy interval" <<
G4endl;
72 }
73 if(it==begin()) it++;
76 x1=(*(it-1)).second.second;
78 x2=(*(it)).second.second;
80 return result;
81}
References e1, e2, FatalException, G4endl, G4Exception(), and G4INCL::Math::max().
◆ TotalXSection()
Definition at line 109 of file G4PiData.cc.
110{
112 G4PiData::iterator it=begin();
113 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
114 if(it==end())
115 {
117 ed << "This cross section is applied for E(MeV)= " << kineticEnergy
118 <<
" outside allowed energy interval" <<
G4endl;
120 }
121 if(it==begin()) it++;
124 x1=(*(it-1)).second.first;
126 x2=(*(it)).second.first;
128 return result;
129}
References e1, e2, FatalException, G4endl, G4Exception(), and G4INCL::Math::max().
The documentation for this class was generated from the following files:
- source/processes/hadronic/cross_sections/include/G4PiData.hh
- source/processes/hadronic/cross_sections/src/G4PiData.cc