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

#include <G4Proton.hh>

Inheritance diagram for G4Proton:
G4Ions G4ParticleDefinition

Static Public Member Functions

static G4ProtonDefinition ()
 
static G4ProtonProtonDefinition ()
 
static G4ProtonProton ()
 
- Static Public Member Functions inherited from G4ParticleDefinition
static const G4PDefManagerGetSubInstanceManager ()
 

Additional Inherited Members

- 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
 
- 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.

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

Referenced by CexmcChargeExchangeProductionModel< OutputParticle >::CexmcChargeExchangeProductionModel(), G4InuclNuclei::copy(), G4InuclElementaryParticle::makeDefinition(), Proton(), ProtonDefinition(), and G4InuclElementaryParticle::type().

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 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4Ions()
Definition: G4Ions.hh:62
const XML_Char * name
Definition: G4Ions.hh:51
float proton_mass_c2
Definition: hepunit.py:275
static G4ParticleTable * GetParticleTable()
double G4double
Definition: G4Types.hh:76
void SetPDGMagneticMoment(G4double mageticMoment)
G4Proton * G4Proton::Proton ( )
static

Definition at line 93 of file G4Proton.cc.

References Definition().

Referenced by G4RPGReaction::AddBlackTrackParticles(), HistoManager::AddLeakingParticle(), HistoManager::AddTargetStep(), G4hImpactIonisation::AlongStepDoIt(), G4LightMedia::AntiLambdaExchange(), G4LightMedia::AntiOmegaMinusExchange(), G4LightMedia::AntiProtonExchange(), G4LightMedia::AntiSigmaMinusExchange(), G4LightMedia::AntiSigmaPlusExchange(), G4LightMedia::AntiXiMinusExchange(), G4LightMedia::AntiXiZeroExchange(), G4NeutronHP2NPInelasticFS::ApplyYourself(), G4NeutronHP2PInelasticFS::ApplyYourself(), G4NeutronHP3NPInelasticFS::ApplyYourself(), G4NeutronHPN2PInelasticFS::ApplyYourself(), G4NeutronHPNPAInelasticFS::ApplyYourself(), G4NeutronHPNPInelasticFS::ApplyYourself(), G4NeutronHPPAInelasticFS::ApplyYourself(), G4NeutronHPPDInelasticFS::ApplyYourself(), G4NeutronHPPInelasticFS::ApplyYourself(), G4NeutronHPPTInelasticFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4ElectroVDNuclearModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4LEnp::ApplyYourself(), G4NeutronHPInelasticBaseFS::BaseApply(), G4WilsonAblationModel::BreakItUp(), G4ProtonBuilder::Build(), G4FTFBinaryProtonBuilder::Build(), G4FTFPProtonBuilder::Build(), G4QGSBinaryProtonBuilder::Build(), G4QGSPProtonBuilder::Build(), G4INCLXXProtonBuilder::Build(), G4hImpactIonisation::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrFormFactorKxsModel::CalculateCrossSection(), G4PaulKxsModel::CalculateKCrossSection(), G4ecpssrFormFactorLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrFormFactorLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4OrlicLiXsModel::CalculateL2CrossSection(), G4ecpssrFormFactorLixsModel::CalculateL3CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), G4OrlicLiXsModel::CalculateL3CrossSection(), G4ecpssrBaseLixsModel::CalculateVelocity(), G4QuasiElRatios::ChExer(), G4hImpactIonisation::ComputeDEDX(), G4AdjointPhysicsList::ConstructEM(), DMXPhysicsList::ConstructHad(), G4EmLowEPPhysics::ConstructParticle(), G4EmLivermorePolarizedPhysics::ConstructParticle(), G4EmLivermorePhysics::ConstructParticle(), G4EmPenelopePhysics::ConstructParticle(), G4EmDNAPhysics::ConstructParticle(), G4EmStandardPhysics::ConstructParticle(), G4EmStandardPhysics_option3::ConstructParticle(), G4EmStandardPhysics_option4::ConstructParticle(), G4EmStandardPhysics_option1::ConstructParticle(), G4EmStandardPhysics_option2::ConstructParticle(), exrdmPhysListHadron::ConstructProcess(), G4HadronElasticPhysicsXS::ConstructProcess(), GammaRayTelHadronPhysics::ConstructProcess(), G4empCrossSection::CrossSection(), G4HadronicProcessStore::DumpHtml(), G4VElasticCollision::FinalState(), G4VCrossSectionSource::FindKeyParticle(), G4Absorber::FindProducts(), G4AdjointhIonisationModel::G4AdjointhIonisationModel(), G4AntiNuclElastic::G4AntiNuclElastic(), G4BaryonSplitter::G4BaryonSplitter(), G4BGGNucleonElasticXS::G4BGGNucleonElasticXS(), G4BGGNucleonInelasticXS::G4BGGNucleonInelasticXS(), G4BGGPionElasticXS::G4BGGPionElasticXS(), G4BGGPionInelasticXS::G4BGGPionInelasticXS(), G4ChargeExchange::G4ChargeExchange(), G4ChargeExchangeProcess::G4ChargeExchangeProcess(), G4ChipsKaonPlusInelasticXS::G4ChipsKaonPlusInelasticXS(), G4ComponentBarNucleonNucleusXsc::G4ComponentBarNucleonNucleusXsc(), G4ComponentGGHadronNucleusXsc::G4ComponentGGHadronNucleusXsc(), G4ComponentGGNuclNuclXsc::G4ComponentGGNuclNuclXsc(), G4CoulombScattering::G4CoulombScattering(), G4DiffuseElastic::G4DiffuseElastic(), G4eCoulombScatteringModel::G4eCoulombScatteringModel(), G4ElasticData::G4ElasticData(), G4FTFParameters::G4FTFParameters(), G4GeneralSpaceNNCrossSection::G4GeneralSpaceNNCrossSection(), G4GeneratorPrecompoundInterface::G4GeneratorPrecompoundInterface(), G4GGNuclNuclCrossSection::G4GGNuclNuclCrossSection(), G4GlauberGribovCrossSection::G4GlauberGribovCrossSection(), G4HadronElastic::G4HadronElastic(), G4HadronNucleonXsc::G4HadronNucleonXsc(), G4hCoulombScatteringModel::G4hCoulombScatteringModel(), G4IonCoulombCrossSection::G4IonCoulombCrossSection(), G4IonCoulombScatteringModel::G4IonCoulombScatteringModel(), G4LowEIonFragmentation::G4LowEIonFragmentation(), G4MuMinusCapturePrecompound::G4MuMinusCapturePrecompound(), G4NucleonNuclearCrossSection::G4NucleonNuclearCrossSection(), G4NuclNuclDiffuseElastic::G4NuclNuclDiffuseElastic(), G4PreCompoundModel::G4PreCompoundModel(), G4PreCompoundTransitions::G4PreCompoundTransitions(), G4ProtonInelasticCrossSection::G4ProtonInelasticCrossSection(), G4QMDGroundStateNucleus::G4QMDGroundStateNucleus(), G4RPGInelastic::G4RPGInelastic(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4WentzelVIRelXSection::G4WentzelVIRelXSection(), G4WilsonAblationModel::G4WilsonAblationModel(), G4ReactionDynamics::GenerateXandPt(), G4QMDNucleus::GetAtomicNumber(), G4empCrossSection::GetCrossSection(), G4AdjointCSManager::GetForwardParticleEquivalent(), G4Fancy3DNucleus::GetMass(), G4QMDNucleus::GetMassNumber(), G4QMDNucleus::GetNuclearMass(), G4RKPropagation::Init(), G4FTFModel::Init(), G4hIonisation::InitialiseEnergyLossProcess(), G4DNAIonisation::IsApplicable(), G4MicroElecInelastic::IsApplicable(), G4MuElecInelastic::IsApplicable(), G4ScreenedNuclearRecoil::IsApplicable(), G4GeneralNNCollision::IsInCharge(), G4ChipsProtonElasticXS::IsIsoApplicable(), G4ChipsProtonInelasticXS::IsIsoApplicable(), G4ChipsNeutronElasticXS::IsIsoApplicable(), G4LightMedia::KaonZeroShortExchange(), G4LightMedia::LambdaExchange(), main(), G4RPGInelastic::MarkLeadingStrangeParticle(), G4LightMedia::NeutronExchange(), G4RPGReaction::NuclearReaction(), G4ReactionDynamics::NuclearReaction(), G4LightMedia::OmegaMinusExchange(), RMC01SD::ProcessHits(), G4ReactionDynamics::ProduceStrangeParticlePairs(), G4RPGPionSuppression::ReactionStage(), G4RPGStrangeProduction::ReactionStage(), G4RPGTwoCluster::ReactionStage(), G4RPGFragmentation::ReactionStage(), G4Nucleus::ReturnTargetParticle(), G4NeutronHPIsotropic::Sample(), G4NeutronHPContAngularPar::Sample(), G4NeutronHPNBodyPhaseSpace::Sample(), G4NeutronHPLabAngularEnergy::Sample(), G4NeutronHPDiscreteTwoBody::Sample(), G4DNADingfelderChargeDecreaseModel::SampleSecondaries(), G4VPartonStringModel::Scatter(), G4QuasiElRatios::Scatter(), XrayFluoPhysicsList::SetCutForProton(), PhysicsList::SetCutForProton(), RMC01AnalysisManager::SetPrimaryExpSpectrumForAdjointSim(), RMC01AnalysisManager::SetPrimaryPowerLawSpectrumForAdjointSim(), G4LightMedia::SigmaMinusExchange(), G4LightMedia::SigmaPlusExchange(), G4ReactionDynamics::SuppressChargedPions(), G4RKPropagation::Transport(), G4ReactionDynamics::TwoCluster(), G4EmSaturation::VisibleEnergyDeposition(), G4LightMedia::XiMinusExchange(), and G4LightMedia::XiZeroExchange().

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

Definition at line 88 of file G4Proton.cc.

References Definition().

Referenced by G4BinaryCascade::ApplyYourself(), G4EMDissociation::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4LFission::Atomas(), G4ExcitationHandler::BreakItUp(), F04StackingAction::ClassifyNewTrack(), PhysicsList::ConstructBarions(), F01PhysicsList::ConstructBarions(), F02PhysicsList::ConstructBarions(), F03PhysicsList::ConstructBarions(), PurgMagPhysicsList::ConstructBarions(), eRositaPhysicsList::ConstructBaryons(), RE06PhysicsList::ConstructBaryons(), ExP02PhysicsList::ConstructBaryons(), ExN02PhysicsList::ConstructBaryons(), ExP01PhysicsList::ConstructBaryons(), UltraPhysicsList::ConstructBaryons(), PhysicsList::ConstructBaryons(), G4AdjointPhysicsList::ConstructBaryons(), PhysicsList::ConstructHadrons(), G4BaryonConstructor::ConstructNucleons(), GammaKnifeParticles::ConstructParticle(), F06PhysicsList::ConstructParticle(), PhysicsList::ConstructParticle(), G4ErrorPhysicsList::ConstructParticle(), G4XMesonBaryonElastic::CrossSection(), G4XnpElasticLowE::CrossSection(), G4XnpTotalLowE::CrossSection(), G4DNADingfelderChargeDecreaseModel::CrossSectionPerVolume(), G4DNAMillerGreenExcitationModel::CrossSectionPerVolume(), G4DNABornExcitationModel::CrossSectionPerVolume(), G4DNARuddIonisationExtendedModel::CrossSectionPerVolume(), G4DNARuddIonisationModel::CrossSectionPerVolume(), G4DNABornIonisationModel::CrossSectionPerVolume(), G4DNABornIonisationModel::DifferentialCrossSection(), G4MicroElecInelasticModel::DifferentialCrossSection(), G4MuElecInelasticModel::DifferentialCrossSection(), G4CollisionMesonBaryonToResonance::G4CollisionMesonBaryonToResonance(), G4CollisionNNElastic::G4CollisionNNElastic(), G4CollisionnpElastic::G4CollisionnpElastic(), G4ParticleTypeConverter::G4ParticleTypeConverter(), G4XNNElasticLowE::G4XNNElasticLowE(), G4XNNTotalLowE::G4XNNTotalLowE(), G4XPDGElastic::G4XPDGElastic(), G4XPDGTotal::G4XPDGTotal(), G4MesonAbsorption::GetFinalState(), G4Scintillation::GetScintillationYieldByParticleType(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNABornExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4DNABornIonisationModel::Initialise(), G4MuElecInelasticModel::Initialise(), G4MicroElecInelasticModel::Initialise(), G4DNAChargeDecrease::IsApplicable(), G4DNAExcitation::IsApplicable(), G4CollisionNNElastic::IsInCharge(), G4CollisionnpElastic::IsInCharge(), G4VXResonance::IsospinCorrection(), G4hImpactIonisation::PostStepDoIt(), G4XNNElasticLowE::Print(), G4DNARuddIonisationModel::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4MuElecInelasticModel::SampleSecondaries(), G4XNNElasticLowE::~G4XNNElasticLowE(), and G4XNNTotalLowE::~G4XNNTotalLowE().

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

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