#include <G4PiData.hh>
Definition at line 35 of file G4PiData.hh.
◆ G4PiData()
Definition at line 36 of file G4PiData.cc.
41 for( i = 0; i < nP; i++ )
43 std::pair<G4double, G4double>
x;
46 std::pair<G4double, std::pair<G4double, G4double > > aP;
static const double millibarn
◆ AppliesTo()
Definition at line 55 of file G4PiData.cc.
58 if(kineticEnergy>back().first) result =
false;
◆ ElasticXSection()
Definition at line 86 of file G4PiData.cc.
89 G4PiData::iterator it=begin();
90 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
94 "G4PiData::ElasticXSection: used outside validity range");
99 x1=(*(it-1)).second.first - (*(it-1)).second.second;
101 x2=(*(it)).second.first - (*(it)).second.second;
102 result =
std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
◆ ReactionXSection()
Definition at line 64 of file G4PiData.cc.
67 G4PiData::iterator it=begin();
68 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
72 "G4PiData::ReactionXSection: used outside validity range");
77 x1=(*(it-1)).second.second;
79 x2=(*(it)).second.second;
80 result =
std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
◆ TotalXSection()
Definition at line 108 of file G4PiData.cc.
111 G4PiData::iterator it=begin();
112 while(it!=end()&&kineticEnergy>(*it).first) {it++;}
116 "G4PiData::TotalXSection: used outside validity range");
118 if(it==begin()) it++;
121 x1=(*(it-1)).second.first;
123 x2=(*(it)).second.first;
124 result =
std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
The documentation for this class was generated from the following files: