26#ifndef G4CrossSectionBuffer_h
27#define G4CrossSectionBuffer_h
49 if(aB ==
theB) result =
true;
53 if(aB ==
theA) result =
true;
60 std::pair<G4double, G4double> aNew;
73 for(
size_t i=0; i<
theData.size(); i++)
103 G4double result = y1 + (sqrts-x1) * (y2-y1)/(x2-x1);
104 if(result<0) result = 0;
111 for(
size_t i=0;i<
theData.size(); i++)
118 std::vector<std::pair<G4double, G4double> >
theData;
G4double S(G4double temp)
G4GLOB_DLL std::ostream G4cerr
G4bool InCharge(const G4ParticleDefinition *aA, const G4ParticleDefinition *aB) const
void push_back(G4double S, G4double x)
std::vector< std::pair< G4double, G4double > > theData
const G4ParticleDefinition * theB
const G4ParticleDefinition * theA
G4CrossSectionBuffer(const G4ParticleDefinition *aA, const G4ParticleDefinition *aB)
G4double CrossSection(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
const G4LorentzVector & Get4Momentum() const
static constexpr double millibarn