Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronElasticDataSet Class Reference

#include <G4HadronElasticDataSet.hh>

+ Inheritance diagram for G4HadronElasticDataSet:

Public Member Functions

 G4HadronElasticDataSet (const G4String &name="GheishaElastic")
 
virtual ~G4HadronElasticDataSet ()
 
virtual void CrossSectionDescription (std::ostream &) const
 
virtual G4bool IsElementApplicable (const G4DynamicParticle *aParticle, G4int, const G4Material *)
 
virtual G4double GetElementCrossSection (const G4DynamicParticle *aParticle, G4int Z, const G4Material *)
 
- Public Member Functions inherited from G4VCrossSectionDataSet
 G4VCrossSectionDataSet (const G4String &nam="")
 
virtual ~G4VCrossSectionDataSet ()
 
virtual G4bool IsElementApplicable (const G4DynamicParticle *, G4int Z, const G4Material *mat=nullptr)
 
virtual G4bool IsIsoApplicable (const G4DynamicParticle *, G4int Z, G4int A, const G4Element *elm=nullptr, const G4Material *mat=nullptr)
 
G4double GetCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=nullptr)
 
G4double ComputeCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=nullptr)
 
virtual G4double GetElementCrossSection (const G4DynamicParticle *, G4int Z, const G4Material *mat=nullptr)
 
virtual G4double GetIsoCrossSection (const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=nullptr, const G4Element *elm=nullptr, const G4Material *mat=nullptr)
 
virtual const G4IsotopeSelectIsotope (const G4Element *, G4double kinEnergy, G4double logE)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void DumpPhysicsTable (const G4ParticleDefinition &)
 
virtual void CrossSectionDescription (std::ostream &) const
 
virtual G4int GetVerboseLevel () const
 
virtual void SetVerboseLevel (G4int value)
 
G4double GetMinKinEnergy () const
 
void SetMinKinEnergy (G4double value)
 
G4double GetMaxKinEnergy () const
 
void SetMaxKinEnergy (G4double value)
 
bool ForAllAtomsAndEnergies () const
 
void SetForAllAtomsAndEnergies (G4bool val)
 
const G4StringGetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VCrossSectionDataSet
void SetName (const G4String &)
 
- Protected Attributes inherited from G4VCrossSectionDataSet
G4int verboseLevel
 

Detailed Description

Definition at line 45 of file G4HadronElasticDataSet.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticDataSet()

G4HadronElasticDataSet::G4HadronElasticDataSet ( const G4String name = "GheishaElastic")

Definition at line 41 of file G4HadronElasticDataSet.cc.

42 : G4VCrossSectionDataSet(nam), theZ(0),fElasticXS(0.0),
43 fKinEnergy(0.0),fParticle(nullptr)
44{
45 fGheishaXS = G4HadronCrossSections::Instance();
47}
static G4HadronCrossSections * Instance()
static G4NistManager * Instance()

◆ ~G4HadronElasticDataSet()

G4HadronElasticDataSet::~G4HadronElasticDataSet ( )
virtual

Definition at line 49 of file G4HadronElasticDataSet.cc.

49{}

Member Function Documentation

◆ CrossSectionDescription()

void G4HadronElasticDataSet::CrossSectionDescription ( std::ostream &  outFile) const
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 52 of file G4HadronElasticDataSet.cc.

53{
54 outFile << "G4HadronElasticDataSet contains elastic cross sections for\n"
55 << "all long-lived hadrons at all incident energies. It was\n"
56 << "developed as part of the Gheisha hadronic package\n"
57 << "by H. Fesefeldt, and consists of a set of parameterizations\n"
58 << "of elastic scattering data.\n";
59}

◆ GetElementCrossSection()

G4double G4HadronElasticDataSet::GetElementCrossSection ( const G4DynamicParticle aParticle,
G4int  Z,
const G4Material  
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 68 of file G4HadronElasticDataSet.cc.

70{
71 G4double ekin = aParticle->GetKineticEnergy();
72 const G4ParticleDefinition* pd = aParticle->GetDefinition();
73 if(Z != theZ || ekin != fKinEnergy || pd != fParticle) {
74 theZ = Z;
75 fKinEnergy = ekin;
76 fParticle = pd;
77 G4int A = G4lrint(fNIST->GetAtomicMassAmu(Z));
78 fElasticXS = fGheishaXS->GetElasticCrossSection(aParticle, Z, A);
79 }
80 return fElasticXS;
81}
double A(double temperature)
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetElasticCrossSection(const G4DynamicParticle *, G4int, G4int)
G4double GetAtomicMassAmu(const G4String &symb) const
int G4lrint(double ad)
Definition: templates.hh:134

◆ IsElementApplicable()

G4bool G4HadronElasticDataSet::IsElementApplicable ( const G4DynamicParticle aParticle,
G4int  ,
const G4Material  
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 62 of file G4HadronElasticDataSet.cc.

64{
65 return true;
66}

The documentation for this class was generated from the following files: