Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Proton Class Reference

#include <G4Proton.hh>

Inheritance diagram for G4Proton:
Collaboration diagram for G4Proton:

Static Public Member Functions

static G4ProtonDefinition ()
 
static G4ProtonProtonDefinition ()
 
static G4ProtonProton ()
 
- Static Public Member Functions inherited from G4Ions
static G4Ions::G4FloatLevelBase FloatLevelBase (char flbChar)
 
static G4Ions::G4FloatLevelBase FloatLevelBase (G4int flbIdx)
 
static char FloatLevelBaseChar (G4Ions::G4FloatLevelBase flb)
 
- Static Public Member Functions inherited from G4ParticleDefinition
static const G4PDefManagerGetSubInstanceManager ()
 

Additional Inherited Members

- Public Types inherited from G4Ions
enum  G4FloatLevelBase {
  G4FloatLevelBase::no_Float =0, G4FloatLevelBase::plus_X, G4FloatLevelBase::plus_Y, G4FloatLevelBase::plus_Z,
  G4FloatLevelBase::plus_U, G4FloatLevelBase::plus_V, G4FloatLevelBase::plus_W, G4FloatLevelBase::plus_R,
  G4FloatLevelBase::plus_S, G4FloatLevelBase::plus_T, G4FloatLevelBase::plus_A, G4FloatLevelBase::plus_B,
  G4FloatLevelBase::plus_C, G4FloatLevelBase::plus_D, G4FloatLevelBase::plus_E
}
 
- Public Member Functions inherited from G4Ions
 G4Ions (const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable, G4bool shortlived, const G4String &subType="", G4int anti_encoding=0, G4double excitation=0.0, G4int isomer=0)
 
virtual ~G4Ions ()
 
G4IonsIonsDefinition ()
 
G4IonsIons ()
 
G4double GetExcitationEnergy () const
 
G4int GetIsomerLevel () const
 
G4Ions::G4FloatLevelBase GetFloatLevelBase () const
 
G4int GetFloatLevelBaseIndex () const
 
void SetFloatLevelBase (G4Ions::G4FloatLevelBase flb)
 
void SetFloatLevelBase (char flbChar)
 
void SetFloatLevelBase (G4int flbIdx)
 
- Public Member Functions inherited from G4ParticleDefinition
 G4ParticleDefinition (const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospinZ, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable, G4bool shortlived=false, const G4String &subType="", G4int anti_encoding=0, G4double magneticMoment=0.0)
 
virtual ~G4ParticleDefinition ()
 
const G4StringGetParticleName () const
 
G4double GetPDGMass () const
 
G4double GetPDGWidth () const
 
G4double GetPDGCharge () const
 
G4double GetPDGSpin () const
 
G4int GetPDGiSpin () const
 
G4int GetPDGiParity () const
 
G4int GetPDGiConjugation () const
 
G4double GetPDGIsospin () const
 
G4double GetPDGIsospin3 () const
 
G4int GetPDGiIsospin () const
 
G4int GetPDGiIsospin3 () const
 
G4int GetPDGiGParity () const
 
G4double GetPDGMagneticMoment () const
 
void SetPDGMagneticMoment (G4double mageticMoment)
 
G4double CalculateAnomaly () const
 
const G4StringGetParticleType () const
 
const G4StringGetParticleSubType () const
 
G4int GetLeptonNumber () const
 
G4int GetBaryonNumber () const
 
G4int GetPDGEncoding () const
 
G4int GetAntiPDGEncoding () const
 
void SetAntiPDGEncoding (G4int aEncoding)
 
G4int GetQuarkContent (G4int flavor) const
 
G4int GetAntiQuarkContent (G4int flavor) const
 
G4bool IsShortLived () const
 
G4bool GetPDGStable () const
 
void SetPDGStable (const G4bool aFlag)
 
G4double GetPDGLifeTime () const
 
void SetPDGLifeTime (G4double aLifeTime)
 
G4double GetIonLifeTime () const
 
G4DecayTableGetDecayTable () const
 
void SetDecayTable (G4DecayTable *aDecayTable)
 
G4ProcessManagerGetProcessManager () const
 
void SetProcessManager (G4ProcessManager *aProcessManager)
 
G4ParticleTableGetParticleTable () const
 
G4int GetAtomicNumber () const
 
G4int GetAtomicMass () const
 
void DumpTable () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void SetApplyCutsFlag (G4bool)
 
G4bool GetApplyCutsFlag () const
 
G4bool IsGeneralIon () const
 
G4int operator== (const G4ParticleDefinition &right) const
 
G4int operator!= (const G4ParticleDefinition &right) const
 
G4ProcessManagerGetMasterProcessManager () const
 
void SetMasterProcessManager (G4ProcessManager *aNewPM)
 
G4int GetInstanceID () const
 
void SetParticleDefinitionID (G4int id=-1)
 
G4int GetParticleDefinitionID () const
 
- Protected Types inherited from G4ParticleDefinition
enum  { NumberOfQuarkFlavor = 6 }
 
- Protected Member Functions inherited from G4Ions
 G4Ions ()
 
- Protected Member Functions inherited from G4ParticleDefinition
G4int FillQuarkContents ()
 
void SetParticleSubType (const G4String &subtype)
 
void SetAtomicNumber (G4int)
 
void SetAtomicMass (G4int)
 
 G4ParticleDefinition (const G4ParticleDefinition &right)
 
 G4ParticleDefinition ()
 
- Protected Attributes inherited from G4ParticleDefinition
G4int theQuarkContent [NumberOfQuarkFlavor]
 
G4int theAntiQuarkContent [NumberOfQuarkFlavor]
 
G4bool isGeneralIon
 

Detailed Description

Definition at line 51 of file G4Proton.hh.

Member Function Documentation

G4Proton * G4Proton::Definition ( )
static

Definition at line 49 of file G4Proton.cc.

50 {
51  if (theInstance !=0) return theInstance;
52  const G4String name = "proton";
53  // search in particle table]
55  G4Ions* anInstance = reinterpret_cast<G4Ions*>(pTable->FindParticle(name));
56  if (anInstance ==0)
57  {
58  // create particle
59  //
60  // Arguments for constructor are as follows
61  // name mass width charge
62  // 2*spin parity C-conjugation
63  // 2*Isospin 2*Isospin3 G-parity
64  // type lepton number baryon number PDG encoding
65  // stable lifetime decay table
66  // shortlived subType anti_encoding
67  // use constants in CLHEP
68  // static const double proton_mass_c2 = 938.27231 * MeV;
69 
70  anInstance = new G4Ions(
71  name, proton_mass_c2, 0.0*MeV, eplus,
72  1, +1, 0,
73  1, +1, 0,
74  "baryon", 0, +1, 2212,
75  true, -1.0, NULL,
76  false, "nucleon", -2212,
77  0.0, 0
78  );
79 
80  // Magnetic Moment
82  anInstance->SetPDGMagneticMoment( 2.792847351 * mN);
83  }
84  theInstance = reinterpret_cast<G4Proton*>(anInstance);
85  return theInstance;
86 }
const XML_Char * name
Definition: expat.h:151
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4Ions()
Definition: G4Ions.hh:62
Definition: G4Ions.hh:51
static constexpr double eplus
Definition: G4SIunits.hh:199
float proton_mass_c2
Definition: hepunit.py:275
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
Definition: G4SIunits.hh:214
double G4double
Definition: G4Types.hh:76
void SetPDGMagneticMoment(G4double mageticMoment)

Here is the call graph for this function:

Here is the caller graph for this function:

G4Proton * G4Proton::Proton ( )
static

Definition at line 93 of file G4Proton.cc.

94 {
95  return Definition();
96 }
static G4Proton * Definition()
Definition: G4Proton.cc:49

Here is the call graph for this function:

G4Proton * G4Proton::ProtonDefinition ( )
static

Definition at line 88 of file G4Proton.cc.

89 {
90  return Definition();
91 }
static G4Proton * Definition()
Definition: G4Proton.cc:49

Here is the call graph for this function:


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