Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions
G4Electron Class Reference

#include <G4Electron.hh>

Inheritance diagram for G4Electron:
G4ParticleDefinition

Static Public Member Functions

static G4ElectronDefinition ()
 
static G4ElectronElectronDefinition ()
 
static G4ElectronElectron ()
 
- Static Public Member Functions inherited from G4ParticleDefinition
static const G4PDefManagerGetSubInstanceManager ()
 

Additional Inherited Members

- 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 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 50 of file G4Electron.hh.

Member Function Documentation

G4Electron * G4Electron::Definition ( )
static

Definition at line 49 of file G4Electron.cc.

References python.hepunit::c_squared, python.hepunit::electron_mass_c2, python.hepunit::eplus, G4ParticleTable::FindParticle(), G4ParticleDefinition::G4ParticleDefinition(), G4ParticleTable::GetParticleTable(), python.hepunit::hbar_Planck, python.hepunit::MeV, and G4ParticleDefinition::SetPDGMagneticMoment().

Referenced by G4RadioactiveDecay::CollimateDecay(), Electron(), ElectronDefinition(), G4InuclElementaryParticle::makeDefinition(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4IonParametrisedLossModel::SampleSecondaries(), G4InuclElementaryParticle::type(), and DMXSteppingAction::UserSteppingAction().

50 {
51  if (theInstance !=0) return theInstance;
52  const G4String name = "e-";
53  // search in particle table]
55  G4ParticleDefinition* anInstance = 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 
68  // use constants in CLHEP
69  // static const double electron_mass_c2 = 0.51099906 * MeV;
70 
71  anInstance = new G4ParticleDefinition(
72  name, electron_mass_c2, 0.0*MeV, -1.*eplus,
73  1, 0, 0,
74  0, 0, 0,
75  "lepton", 1, 0, 11,
76  true, -1.0, NULL,
77  false, "e"
78  );
79  // Bohr Magnetron
81 
82  anInstance->SetPDGMagneticMoment( muB * 1.00115965218076 );
83 
84  }
85  theInstance = reinterpret_cast<G4Electron*>(anInstance);
86  return theInstance;
87 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
const XML_Char * name
float electron_mass_c2
Definition: hepunit.py:274
static G4ParticleTable * GetParticleTable()
double G4double
Definition: G4Types.hh:76
void SetPDGMagneticMoment(G4double mageticMoment)
G4Electron * G4Electron::Electron ( )
static

Definition at line 94 of file G4Electron.cc.

References Definition().

Referenced by G4VEmProcess::ActivateSecondaryBiasing(), G4VEnergyLossProcess::ActivateSecondaryBiasing(), RunAction::AddSecondaryTrack(), HistoManager::AddTargetStep(), G4AdjointBremsstrahlungModel::AdjointCrossSection(), G4eLowEnergyLoss::AlongStepDoIt(), G4MuonMinusBoundDecay::ApplyYourself(), RunAction::BeginOfRunAction(), G4BertiniElectroNuclearBuilder::Build(), G4eLowEnergyLoss::BuildDEDXTable(), G4LowEnergyIonisation::BuildPhysicsTable(), G4LowEnergyBremsstrahlung::BuildPhysicsTable(), G4PenelopeIonisationXSHandler::BuildXSTable(), G4AdjointPhysicsList::ConstructEM(), G4EmLivermorePolarizedPhysics::ConstructParticle(), G4EmLowEPPhysics::ConstructParticle(), G4EmLivermorePhysics::ConstructParticle(), G4EmPenelopePhysics::ConstructParticle(), G4EmDNAPhysics::ConstructParticle(), G4EmStandardPhysics::ConstructParticle(), G4EmStandardPhysics_option3::ConstructParticle(), G4EmStandardPhysics_option4::ConstructParticle(), G4EmStandardPhysics_option1::ConstructParticle(), G4EmExtraPhysics::ConstructParticle(), G4EmStandardPhysics_option2::ConstructParticle(), PhysicsListEMstd::ConstructProcess(), GammaRayTelEMstdPhysics::ConstructProcess(), GammaRayTelEMlowePhysics::ConstructProcess(), LXeEMPhysics::ConstructProcess(), Run::CountParticles(), RunAction::CriticalEnergy(), G4PenelopeIonisationCrossSection::CrossSection(), G4LowEnergyIonisation::DeexciteAtom(), G4AdjointBremsstrahlungModel::DiffCrossSectionPerVolumePrimToSecond(), G4HadronicProcessStore::DumpHtml(), G4RDRangeTest::Escape(), G4AdjointBremsstrahlungModel::G4AdjointBremsstrahlungModel(), G4AdjointeIonisationModel::G4AdjointeIonisationModel(), G4BetheBlochModel::G4BetheBlochModel(), G4BetheHeitlerModel::G4BetheHeitlerModel(), G4BraggIonModel::G4BraggIonModel(), G4BraggModel::G4BraggModel(), G4ComptonScattering::G4ComptonScattering(), G4DeltaAngle::G4DeltaAngle(), G4EmBiasingManager::G4EmBiasingManager(), G4EmCaptureCascade::G4EmCaptureCascade(), G4GammaConversion::G4GammaConversion(), G4HeatedKleinNishinaCompton::G4HeatedKleinNishinaCompton(), G4hIonisation::G4hIonisation(), G4ICRU73QOModel::G4ICRU73QOModel(), G4ionIonisation::G4ionIonisation(), G4KleinNishinaCompton::G4KleinNishinaCompton(), G4KleinNishinaModel::G4KleinNishinaModel(), G4LivermorePhotoElectricModel::G4LivermorePhotoElectricModel(), G4LivermorePolarizedPhotoElectricModel::G4LivermorePolarizedPhotoElectricModel(), G4MollerBhabhaModel::G4MollerBhabhaModel(), G4mplIonisation::G4mplIonisation(), G4mplIonisationWithDeltaModel::G4mplIonisationWithDeltaModel(), G4MuBetheBlochModel::G4MuBetheBlochModel(), G4MuIonisation::G4MuIonisation(), G4MuMinusCaptureCascade::G4MuMinusCaptureCascade(), G4MuPairProductionModel::G4MuPairProductionModel(), G4PAIModel::G4PAIModel(), G4PAIPhotModel::G4PAIPhotModel(), G4PAIPhotonModel::G4PAIPhotonModel(), G4PairProductionRelModel::G4PairProductionRelModel(), G4PEEffectFluoModel::G4PEEffectFluoModel(), G4PhotoElectricEffect::G4PhotoElectricEffect(), G4UAtomicDeexcitation::G4UAtomicDeexcitation(), G4VEmProcess::G4VEmProcess(), G4VEnergyLossProcess::G4VEnergyLossProcess(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4WentzelVIRelXSection::G4WentzelVIRelXSection(), G4VGammaDeexcitation::GenerateGamma(), G4PenelopeIonisationXSHandler::GetCrossSectionTableForCouple(), G4AdjointCSManager::GetForwardParticleEquivalent(), G4NeutronHPPhotonDist::GetPhotons(), G4LivermoreIonisationModel::Initialise(), G4alphaIonisation::InitialiseEnergyLossProcess(), G4hhIonisation::InitialiseEnergyLossProcess(), G4PolarizedGammaConversion::InitialiseProcess(), G4PolarizedCompton::InitialiseProcess(), G4PolarizedPhotoElectricEffect::InitialiseProcess(), G4DNAVibExcitation::IsApplicable(), G4DNAAttachment::IsApplicable(), G4DNAElastic::IsApplicable(), G4DNAIonisation::IsApplicable(), G4DNAElectronSolvatation::IsApplicable(), G4DNAExcitation::IsApplicable(), G4MicroElecElastic::IsApplicable(), G4MuElecElastic::IsApplicable(), G4MicroElecInelastic::IsApplicable(), G4MuElecInelastic::IsApplicable(), G4ePolarizedIonisation::IsApplicable(), G4LowEnergyIonisation::IsApplicable(), G4LowEnergyBremsstrahlung::IsApplicable(), G4eBremsstrahlung::IsApplicable(), main(), G4LowEnergyCompton::PostStepDoIt(), G4LowEnergyGammaConversion::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4LowEnergyIonisation::PostStepDoIt(), G4LowEnergyPolarizedCompton::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), G4VMultipleScattering::PreparePhysicsTable(), RMC01SD::ProcessHits(), G4NeutronHPIsotropic::Sample(), G4NeutronHPContAngularPar::Sample(), G4NeutronHPNBodyPhaseSpace::Sample(), G4NeutronHPLabAngularEnergy::Sample(), G4NeutronHPDiscreteTwoBody::Sample(), G4DNADingfelderChargeIncreaseModel::SampleSecondaries(), G4BoldyshevTripletModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4LivermoreComptonModifiedModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4PenelopeGammaConversionModel::SampleSecondaries(), G4LivermoreIonisationModel::SampleSecondaries(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4MuElecInelasticModel::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4VEmAdjointModel::SetAdjointEquivalentOfDirectPrimaryParticleDefinition(), GammaKnifePhysicsList::SetCutForElectron(), F04PhysicsList::SetCutForElectron(), WLSPhysicsList::SetCutForElectron(), HadrontherapyPhysicsList::SetCutForElectron(), exrdmPhysicsList::SetCutForElectron(), PhysicsList::SetCutForElectron(), XrayFluoPhysicsList::SetCutForElectron(), IORTPhysicsList::SetCutForElectron(), ML2PhysicsList::SetCutForElectron(), RMC01AnalysisManager::SetPrimaryExpSpectrumForAdjointSim(), RMC01AnalysisManager::SetPrimaryPowerLawSpectrumForAdjointSim(), G4PAIPhotonModel::TestSecondaries(), and Em10SteppingAction::UserSteppingAction().

95 {
96  return Definition();
97 }
static G4Electron * Definition()
Definition: G4Electron.cc:49
G4Electron * G4Electron::ElectronDefinition ( )
static

Definition at line 89 of file G4Electron.cc.

References Definition().

Referenced by G4LFission::Atomas(), G4LeptonConstructor::ConstructELeptons(), eRositaPhysicsList::ConstructLeptons(), RE06PhysicsList::ConstructLeptons(), DicomPhysicsList::ConstructLeptons(), PhysicsList::ConstructLeptons(), ExP02PhysicsList::ConstructLeptons(), ExN02PhysicsList::ConstructLeptons(), ExP01PhysicsList::ConstructLeptons(), F02PhysicsList::ConstructLeptons(), F03PhysicsList::ConstructLeptons(), F01PhysicsList::ConstructLeptons(), UltraPhysicsList::ConstructLeptons(), XrayTelPhysicsList::ConstructLeptons(), G4AdjointPhysicsList::ConstructLeptons(), PurgMagPhysicsList::ConstructLeptons(), GammaKnifeParticles::ConstructParticle(), XrayFluoPhysicsList::ConstructParticle(), F06PhysicsList::ConstructParticle(), PhysicsListEMstd::ConstructParticle(), exrdmPhysListParticles::ConstructParticle(), PhysicsList::ConstructParticle(), G4ErrorPhysicsList::ConstructParticle(), LXeEMPhysics::ConstructParticle(), G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(), G4DNABornExcitationModel::CrossSectionPerVolume(), G4DNASancheExcitationModel::CrossSectionPerVolume(), G4DNABornIonisationModel::CrossSectionPerVolume(), G4DNABornIonisationModel::DifferentialCrossSection(), G4MuElecInelasticModel::DifferentialCrossSection(), G4MicroElecInelasticModel::DifferentialCrossSection(), GFlashShowerModel::DoIt(), RE01Trajectory::DrawTrajectory(), GFlashShowerModelMessenger::GetCurrentValue(), GFlashParticleBounds::GetEneToKill(), GFlashParticleBounds::GetMaxEneToParametrise(), GFlashParticleBounds::GetMinEneToParametrise(), G4Scintillation::GetScintillationYieldByParticleType(), G4DNAChampionElasticModel::Initialise(), G4DNABornExcitationModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNATransformElectronModel::Initialise(), G4DNABornIonisationModel::Initialise(), G4DNAOneStepSolvatationModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MuElecElasticModel::Initialise(), G4MuElecInelasticModel::Initialise(), G4MicroElecInelasticModel::Initialise(), Par01EMShowerModel::IsApplicable(), GFlashShowerModel::IsApplicable(), RE06SteppingVerbose::NewStep(), G4DNABornIonisationModel::SampleSecondaries(), GFlashParticleBounds::SetEneToKill(), GFlashParticleBounds::SetMaxEneToParametrise(), GFlashParticleBounds::SetMinEneToParametrise(), and GFlashShowerModelMessenger::SetNewValue().

90 {
91  return Definition();
92 }
static G4Electron * Definition()
Definition: G4Electron.cc:49

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