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

#include <geant4/tree/geant4-10.6-release/source/processes/hadronic/models/inclxx/utils/include/G4INCLParticleSpecies.hh>

Public Member Functions

 ParticleSpecies ()
 Convert a string to a particle species.
 
 ParticleSpecies (std::string const &pS)
 
 ParticleSpecies (ParticleType const t)
 
 ParticleSpecies (const G4int A, const G4int Z)
 
 ParticleSpecies (const G4int A, const G4int Z, const G4int S)
 
G4int getPDGCode () const
 Set a PDG Code (MONTE CARLO PARTICLE NUMBERING)
 

Public Attributes

ParticleType theType
 
G4int theA
 
G4int theZ
 
G4int theS
 

Private Member Functions

void parseNuclide (std::string const &pS)
 Parse a nuclide name.
 
G4bool parseElement (std::string const &pS)
 Parse an element name.
 
G4bool parseIUPACElement (std::string const &s)
 Parse a IUPAC element name.
 

Detailed Description

Definition at line 53 of file G4INCLParticleSpecies.hh.

View newest version in sPHENIX GitHub at line 53 of file G4INCLParticleSpecies.hh

Constructor & Destructor Documentation

G4INCL::ParticleSpecies::ParticleSpecies ( )
inline

Convert a string to a particle species.

Definition at line 56 of file G4INCLParticleSpecies.hh.

View newest version in sPHENIX GitHub at line 56 of file G4INCLParticleSpecies.hh

Referenced by parseNuclide().

+ Here is the caller graph for this function:

G4INCL::ParticleSpecies::ParticleSpecies ( std::string const &  pS)

Definition at line 54 of file G4INCLParticleSpecies.cc.

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

References G4INCL::Composite, G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, G4INCL::Eta, G4INCL::EtaPrime, G4INCL::KLong, G4INCL::KMinus, G4INCL::KPlus, G4INCL::KShort, G4INCL::KZero, G4INCL::KZeroBar, G4INCL::Lambda, G4INCL::Neutron, G4INCL::Omega, parseNuclide(), G4INCL::Photon, G4INCL::PiMinus, G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Proton, G4INCL::SigmaMinus, G4INCL::SigmaPlus, G4INCL::SigmaZero, theA, theS, theType, and theZ.

+ Here is the call graph for this function:

G4INCL::ParticleSpecies::ParticleSpecies ( ParticleType const  t)

Definition at line 190 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 190 of file G4INCLParticleSpecies.cc

G4INCL::ParticleSpecies::ParticleSpecies ( const G4int  A,
const G4int  Z 
)

Definition at line 197 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 197 of file G4INCLParticleSpecies.cc

G4INCL::ParticleSpecies::ParticleSpecies ( const G4int  A,
const G4int  Z,
const G4int  S 
)

Definition at line 204 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 204 of file G4INCLParticleSpecies.cc

Member Function Documentation

G4int G4INCL::ParticleSpecies::getPDGCode ( ) const

Set a PDG Code (MONTE CARLO PARTICLE NUMBERING)

Parameters
\returninteger (identifying number for each particle)

Definition at line 349 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 349 of file G4INCLParticleSpecies.cc

References G4INCL::Composite, G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, e6, G4INCL::Eta, G4INCL::EtaPrime, INCL_ERROR, G4INCL::KLong, G4INCL::KMinus, G4INCL::KPlus, G4INCL::KShort, G4INCL::KZero, G4INCL::KZeroBar, G4INCL::Lambda, G4INCL::Neutron, G4INCL::Omega, G4INCL::Photon, G4INCL::PiMinus, G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Proton, G4INCL::SigmaMinus, G4INCL::SigmaPlus, G4INCL::SigmaZero, theA, theS, theType, and theZ.

Referenced by G4INCL::EventInfo::remnantToParticle().

+ Here is the caller graph for this function:

G4bool G4INCL::ParticleSpecies::parseElement ( std::string const &  pS)
private

Parse an element name.

Note: this function is UGLY. Look at it at your own peril.

Parameters
pSa normalised string (lowercase)
Returns
true if the parsing succeeded

Definition at line 329 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 329 of file G4INCLParticleSpecies.cc

References G4INCL::ParticleTable::parseElement(), G4INCL::ParticleTable::parseIUPACElement(), and theZ.

Referenced by parseNuclide().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4INCL::ParticleSpecies::parseIUPACElement ( std::string const &  s)
private

Parse a IUPAC element name.

Note: this function is UGLY. Look at it at your own peril.

Parameters
sa normalised string (lowercase)
Returns
true if the parsing succeeded

Definition at line 341 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 341 of file G4INCLParticleSpecies.cc

References G4INCL::ParticleTable::parseIUPACElement(), and theZ.

+ Here is the call graph for this function:

void G4INCL::ParticleSpecies::parseNuclide ( std::string const &  pS)
private

Parse a nuclide name.

Note: this function is UGLY. Look at it at your own peril.

Parameters
pSa normalised string (lowercase)

Definition at line 211 of file G4INCLParticleSpecies.cc.

View newest version in sPHENIX GitHub at line 211 of file G4INCLParticleSpecies.cc

References allowed, G4INCL::Composite, parseElement(), ParticleSpecies(), G4INCL::Proton, theA, theS, theType, theZ, and G4INCL::UnknownParticle.

Referenced by ParticleSpecies().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation


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