ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmElementSelector Class Reference

#include <geant4/tree/geant4-10.6-release/source/processes/electromagnetic/utils/include/G4EmElementSelector.hh>

+ Collaboration diagram for G4EmElementSelector:

Public Member Functions

 G4EmElementSelector (G4VEmModel *, const G4Material *, G4int bins, G4double emin, G4double emax, G4bool spline=true)
 
 ~G4EmElementSelector ()
 
void Initialise (const G4ParticleDefinition *, G4double cut=0.0)
 
void Dump (const G4ParticleDefinition *p=nullptr)
 
const G4ElementSelectRandomAtom (G4double kineticEnergy) const
 
const G4ElementSelectRandomAtom (const G4double kineticEnergy, const G4double logEKin) const
 
const G4MaterialGetMaterial () const
 

Private Member Functions

G4EmElementSelectoroperator= (const G4EmElementSelector &right)=delete
 
 G4EmElementSelector (const G4EmElementSelector &)=delete
 

Private Attributes

G4VEmModelmodel
 
const G4Materialmaterial
 
const G4ElementVectortheElementVector
 
G4int nElmMinusOne
 
G4int nbins
 
G4double cutEnergy
 
G4double lowEnergy
 
G4double highEnergy
 
std::vector< G4PhysicsLogVector * > xSections
 

Detailed Description

Definition at line 62 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 62 of file G4EmElementSelector.hh

Constructor & Destructor Documentation

G4EmElementSelector::G4EmElementSelector ( G4VEmModel mod,
const G4Material mat,
G4int  bins,
G4double  emin,
G4double  emax,
G4bool  spline = true 
)

Definition at line 54 of file G4EmElementSelector.cc.

View newest version in sPHENIX GitHub at line 54 of file G4EmElementSelector.cc

References G4Material::GetElementVector(), G4Material::GetNumberOfElements(), highEnergy, lowEnergy, material, n, nbins, nElmMinusOne, G4PhysicsVector::SetSpline(), theElementVector, v, and xSections.

+ Here is the call graph for this function:

G4EmElementSelector::~G4EmElementSelector ( )

Definition at line 85 of file G4EmElementSelector.cc.

View newest version in sPHENIX GitHub at line 85 of file G4EmElementSelector.cc

References nElmMinusOne, and xSections.

G4EmElementSelector::G4EmElementSelector ( const G4EmElementSelector )
privatedelete

Member Function Documentation

void G4EmElementSelector::Dump ( const G4ParticleDefinition p = nullptr)

Definition at line 151 of file G4EmElementSelector.cc.

View newest version in sPHENIX GitHub at line 151 of file G4EmElementSelector.cc

References G4cout, G4endl, G4Material::GetName(), G4ParticleDefinition::GetParticleName(), material, nElmMinusOne, and xSections.

+ Here is the call graph for this function:

const G4Material * G4EmElementSelector::GetMaterial ( ) const
inline

Definition at line 160 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 160 of file G4EmElementSelector.hh

References material.

void G4EmElementSelector::Initialise ( const G4ParticleDefinition part,
G4double  cut = 0.0 
)

Definition at line 94 of file G4EmElementSelector.cc.

View newest version in sPHENIX GitHub at line 94 of file G4EmElementSelector.cc

References Acts::VectorHelpers::cross(), cutEnergy, e, G4Material::GetVecNbOfAtomsPerVolume(), material, nbins, nElmMinusOne, theElementVector, x, and xSections.

+ Here is the call graph for this function:

G4EmElementSelector& G4EmElementSelector::operator= ( const G4EmElementSelector right)
privatedelete
const G4Element * G4EmElementSelector::SelectRandomAtom ( G4double  kineticEnergy) const
inline

Definition at line 107 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 107 of file G4EmElementSelector.hh

References G4UniformRand, incremental_prev_tag::idx, nElmMinusOne, x, and xSections.

const G4Element * G4EmElementSelector::SelectRandomAtom ( const G4double  kineticEnergy,
const G4double  logEKin 
) const
inline

Definition at line 125 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 125 of file G4EmElementSelector.hh

References a, G4UniformRand, incremental_prev_tag::idx, max, min, nElmMinusOne, x1, x2, xSections, y1, and y2.

Member Data Documentation

G4double G4EmElementSelector::cutEnergy
private

Definition at line 96 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 96 of file G4EmElementSelector.hh

Referenced by Initialise().

G4double G4EmElementSelector::highEnergy
private

Definition at line 98 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 98 of file G4EmElementSelector.hh

Referenced by G4EmElementSelector().

G4double G4EmElementSelector::lowEnergy
private

Definition at line 97 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 97 of file G4EmElementSelector.hh

Referenced by G4EmElementSelector().

const G4Material* G4EmElementSelector::material
private

Definition at line 90 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 90 of file G4EmElementSelector.hh

Referenced by Dump(), G4EmElementSelector(), GetMaterial(), and Initialise().

G4VEmModel* G4EmElementSelector::model
private

Definition at line 89 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 89 of file G4EmElementSelector.hh

G4int G4EmElementSelector::nbins
private

Definition at line 94 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 94 of file G4EmElementSelector.hh

Referenced by G4EmElementSelector(), and Initialise().

G4int G4EmElementSelector::nElmMinusOne
private

Definition at line 93 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 93 of file G4EmElementSelector.hh

Referenced by Dump(), G4EmElementSelector(), Initialise(), SelectRandomAtom(), and ~G4EmElementSelector().

const G4ElementVector* G4EmElementSelector::theElementVector
private

Definition at line 91 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 91 of file G4EmElementSelector.hh

Referenced by G4EmElementSelector(), and Initialise().

std::vector<G4PhysicsLogVector*> G4EmElementSelector::xSections
private

Definition at line 100 of file G4EmElementSelector.hh.

View newest version in sPHENIX GitHub at line 100 of file G4EmElementSelector.hh

Referenced by Dump(), G4EmElementSelector(), Initialise(), SelectRandomAtom(), and ~G4EmElementSelector().


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