70 throw G4HadronicException(__FILE__, __LINE__,
"G4VCrossSectionSource: unklnown particles in FindKeyParticle");
89 G4int nComponents = 0;
93 nComponents = components->size();
95 G4cout <<
"---- " << this->
Name() <<
" ---- has " << nComponents <<
" components" <<
G4endl;
97 for (i=0; i<nComponents; i++)
113 <<
"Ecm = " << sqrtS /
GeV <<
" GeV - "
114 <<
" Cross section = " << sigma <<
" mb "
117 G4int nComponents = 0;
121 nComponents = components->size();
124 for (i=0; i<nComponents; i++)
126 G4cout <<
"* Component " << i <<
": ";
137 if (e >= eLow && e <= eHigh) answer =
true;
180 G4double denom = eParam*eParam + (e-e0)*(e-e0);
static G4Pow * GetInstance()
G4double powA(G4double A, G4double y) const
const G4ParticleDefinition * FindKeyParticle(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
virtual G4String Name() const =0
virtual G4double LowLimit() const
G4double FcrossX(G4double e, G4double e0, G4double sigma, G4double eParam, G4double power) const
virtual G4double HighLimit() const
virtual const G4CrossSectionVector * GetComponents() const =0
G4GLOB_DLL std::ostream G4cout
static G4Proton * Proton()
static G4Neutron * Neutron()
virtual G4bool IsValid(G4double e) const
std::vector< G4CrossSectionSourcePtr > G4CrossSectionVector
G4double GetPDGMass() const
G4bool operator!=(const G4VCrossSectionSource &right) const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4bool operator==(const G4VCrossSectionSource &right) const
virtual void Print() const
static constexpr double GeV
virtual void PrintAll(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
const G4LorentzVector & Get4Momentum() const
const G4ParticleDefinition * GetDefinition() const
const G4ParticleDefinition * FindLightParticle(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
static constexpr double millibarn
G4bool InLimits(G4double e, G4double eLow, G4double eHigh) const
virtual G4double CrossSection(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const =0
virtual ~G4VCrossSectionSource()