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

#include <G4LENDGammaCrossSection.hh>

+ Inheritance diagram for G4LENDGammaCrossSection:

Public Member Functions

 G4LENDGammaCrossSection (G4ParticleDefinition *pd)
 
 ~G4LENDGammaCrossSection ()
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
G4double GetIsoCrossSection (const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
 
G4int SelectChannel (const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
 
- Public Member Functions inherited from G4LENDCrossSection
 G4LENDCrossSection (const G4String name="")
 
 ~G4LENDCrossSection ()
 
G4bool IsIsoApplicable (const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
 
G4double GetIsoCrossSection (const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
void DumpPhysicsTable (const G4ParticleDefinition &)
 
void DumpLENDTargetInfo (G4bool force=false)
 
void ChangeDefaultEvaluation (G4String name_tmp)
 
void AllowNaturalAbundanceTarget ()
 
void AllowAnyCandidateTarget ()
 
- 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 G4LENDCrossSection
void create_used_target_map ()
 
G4GIDI_targetget_target_from_map (G4int nuclear_code)
 
virtual G4double getLENDCrossSection (G4GIDI_target *, G4double, G4double)
 
G4double GetUltraLowEnergyExtrapolatedXS (G4double, G4double, G4double, G4double, G4double)
 
- Protected Member Functions inherited from G4VCrossSectionDataSet
void SetName (const G4String &)
 
- Protected Attributes inherited from G4LENDCrossSection
G4ParticleDefinitionproj
 
- Protected Attributes inherited from G4VCrossSectionDataSet
G4int verboseLevel
 

Detailed Description

Definition at line 49 of file G4LENDGammaCrossSection.hh.

Constructor & Destructor Documentation

◆ G4LENDGammaCrossSection()

G4LENDGammaCrossSection::G4LENDGammaCrossSection ( G4ParticleDefinition pd)

Definition at line 46 of file G4LENDGammaCrossSection.cc.

◆ ~G4LENDGammaCrossSection()

G4LENDGammaCrossSection::~G4LENDGammaCrossSection ( )
inline

Definition at line 53 of file G4LENDGammaCrossSection.hh.

53{;};

Member Function Documentation

◆ BuildPhysicsTable()

void G4LENDGammaCrossSection::BuildPhysicsTable ( const G4ParticleDefinition pd)
virtual

Reimplemented from G4LENDCrossSection.

Definition at line 54 of file G4LENDGammaCrossSection.cc.

55{
56 inelasticXS->BuildPhysicsTable(pd);
57 fissionXS->BuildPhysicsTable(pd);
59}
void BuildPhysicsTable(const G4ParticleDefinition &)

Referenced by G4LENDGammaModel::BuildPhysicsTable().

◆ GetIsoCrossSection()

G4double G4LENDGammaCrossSection::GetIsoCrossSection ( const G4DynamicParticle dp,
G4int  iZ,
G4int  iA,
const G4Isotope isotope,
const G4Element ,
const G4Material material 
)
virtual

Reimplemented from G4LENDCrossSection.

Definition at line 62 of file G4LENDGammaCrossSection.cc.

67{
68 G4double XS = 0.0;
69 XS += inelasticXS->GetIsoCrossSection(dp, iZ, iA, isotope, NULL, material);
70 XS += fissionXS->GetIsoCrossSection(dp, iZ, iA, isotope, NULL, material);
71 //G4cout << "G4LENDGammaCrossSection::GetIsoCrossSection "
72 // << XS/CLHEP::barn << " [barn]" << G4endl;
73 return XS;
74}
double G4double
Definition: G4Types.hh:83
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)

◆ SelectChannel()

G4int G4LENDGammaCrossSection::SelectChannel ( const G4DynamicParticle dp,
G4int  iZ,
G4int  iA,
const G4Isotope isotope,
const G4Element ,
const G4Material material 
)

Definition at line 76 of file G4LENDGammaCrossSection.cc.

81{
82 G4int ichannel = -1;
83 G4double XSs[2];
84 XSs[0] = inelasticXS->GetIsoCrossSection(dp, iZ, iA, isotope, nullptr, material);
85 XSs[1] = XSs[0] + fissionXS->GetIsoCrossSection(dp, iZ, iA, isotope, nullptr, material);
86
87 G4double total = XSs[1];
88
89 G4double random = G4UniformRand();
90 for (G4int i = 0; i < 2; i++) {
91 if (random*total <= XSs[i]) {
92 ichannel = i;
93 break;
94 }
95 }
96
97 return ichannel;
98}
int G4int
Definition: G4Types.hh:85
#define G4UniformRand()
Definition: Randomize.hh:52
G4double total(Particle const *const p1, Particle const *const p2)

Referenced by G4LENDGammaModel::ApplyYourself().


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