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

#include <G4Gamma.hh>

Inheritance diagram for G4Gamma:
G4ParticleDefinition

Public Member Functions

 ~G4Gamma ()
 
- 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
 

Static Public Member Functions

static G4GammaDefinition ()
 
static G4GammaGammaDefinition ()
 
static G4GammaGamma ()
 
- Static Public Member Functions inherited from G4ParticleDefinition
static const G4PDefManagerGetSubInstanceManager ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

G4Gamma::~G4Gamma ( )
inline

Definition at line 59 of file G4Gamma.hh.

59 {}

Member Function Documentation

G4Gamma * G4Gamma::Definition ( )
static

Definition at line 49 of file G4Gamma.cc.

References G4ParticleTable::FindParticle(), G4ParticleDefinition::G4ParticleDefinition(), G4ParticleTable::GetParticleTable(), and python.hepunit::MeV.

Referenced by G4RadioactiveDecay::CollimateDecay(), Gamma(), GammaDefinition(), G4InuclElementaryParticle::makeDefinition(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4InuclElementaryParticle::type(), BrachySteppingAction::UserSteppingAction(), and DMXSteppingAction::UserSteppingAction().

50 {
51  if (theInstance !=0) return theInstance;
52 
53  const G4String name = "gamma";
54  // search in particle table]
56  G4ParticleDefinition* anInstance = pTable->FindParticle(name);
57  if (anInstance ==0)
58  {
59  // create particle
60  //
61  // Arguments for constructor are as follows
62  // name mass width charge
63  // 2*spin parity C-conjugation
64  // 2*Isospin 2*Isospin3 G-parity
65  // type lepton number baryon number PDG encoding
66  // stable lifetime decay table
67  // shortlived subType anti_encoding
68  anInstance = new G4ParticleDefinition(
69  name, 0.0*MeV, 0.0*MeV, 0.0,
70  2, -1, -1,
71  0, 0, 0,
72  "gamma", 0, 0, 22,
73  true, 0.0, NULL,
74  false, "photon", 22
75  );
76  }
77  theInstance = reinterpret_cast<G4Gamma*>(anInstance);
78  return theInstance;
79 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
const XML_Char * name
static G4ParticleTable * GetParticleTable()
G4Gamma * G4Gamma::Gamma ( )
static

Definition at line 86 of file G4Gamma.cc.

References Definition().

Referenced by RunAction::AddSecondaryTrack(), HistoManager::AddTargetStep(), G4AdjointBremsstrahlungModel::AdjointCrossSection(), G4AdjointPhotoElectricModel::AdjointCrossSectionPerAtom(), G4NeutronHPFinalState::adjust_final_state(), G4NeutronHPCaptureFS::ApplyYourself(), G4NeutronRadCapture::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDFission::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4eplusPolarizedAnnihilation::AtRestDoIt(), G4HadLeadBias::Bias(), G4BertiniElectroNuclearBuilder::Build(), G4NeutronHPInelasticCompFS::CompositeApply(), G4EmCalculator::ComputeGammaAttenuationLength(), G4EmLivermorePolarizedPhysics::ConstructParticle(), G4EmLowEPPhysics::ConstructParticle(), G4EmLivermorePhysics::ConstructParticle(), G4EmPenelopePhysics::ConstructParticle(), G4EmDNAPhysics::ConstructParticle(), G4EmStandardPhysics_option3::ConstructParticle(), G4EmStandardPhysics::ConstructParticle(), G4EmStandardPhysics_option4::ConstructParticle(), G4EmStandardPhysics_option1::ConstructParticle(), G4EmStandardPhysics_option2::ConstructParticle(), G4EmExtraPhysics::ConstructParticle(), GammaPhysics::ConstructProcess(), PhysicsListEMstd::ConstructProcess(), GammaRayTelEMlowePhysics::ConstructProcess(), GammaRayTelEMstdPhysics::ConstructProcess(), LXeEMPhysics::ConstructProcess(), Run::CountParticles(), G4LowEnergyIonisation::DeexciteAtom(), G4AdjointComptonModel::DiffCrossSectionPerAtomPrimToScatPrim(), G4AdjointBremsstrahlungModel::DiffCrossSectionPerVolumePrimToSecond(), G4HadronicProcessStore::DumpHtml(), G4AdjointComptonModel::G4AdjointComptonModel(), G4AdjointPhotoElectricModel::G4AdjointPhotoElectricModel(), G4BetheHeitlerModel::G4BetheHeitlerModel(), G4ComponentGGHadronNucleusXsc::G4ComponentGGHadronNucleusXsc(), G4eBremParametrizedModel::G4eBremParametrizedModel(), G4eBremsstrahlung::G4eBremsstrahlung(), G4eBremsstrahlungRelModel::G4eBremsstrahlungRelModel(), G4eeToHadronsModel::G4eeToHadronsModel(), G4eeToTwoGammaModel::G4eeToTwoGammaModel(), G4EmCaptureCascade::G4EmCaptureCascade(), G4eplusAnnihilation::G4eplusAnnihilation(), G4GlauberGribovCrossSection::G4GlauberGribovCrossSection(), G4HadronNucleonXsc::G4HadronNucleonXsc(), G4HeatedKleinNishinaCompton::G4HeatedKleinNishinaCompton(), G4KleinNishinaCompton::G4KleinNishinaCompton(), G4KleinNishinaModel::G4KleinNishinaModel(), G4LivermorePhotoElectricModel::G4LivermorePhotoElectricModel(), G4LivermorePolarizedPhotoElectricModel::G4LivermorePolarizedPhotoElectricModel(), G4MuBremsstrahlung::G4MuBremsstrahlung(), G4MuBremsstrahlungModel::G4MuBremsstrahlungModel(), G4MuMinusCaptureCascade::G4MuMinusCaptureCascade(), G4PAIPhotonModel::G4PAIPhotonModel(), G4PairProductionRelModel::G4PairProductionRelModel(), G4PEEffectFluoModel::G4PEEffectFluoModel(), G4VAtomDeexcitation::G4VAtomDeexcitation(), G4VEmProcess::G4VEmProcess(), G4VEnergyLossProcess::G4VEnergyLossProcess(), G4VGammaDeexcitation::GenerateGamma(), G4NeutronHPGamma::GetDecayGammas(), G4AdjointCSManager::GetForwardParticleEquivalent(), G4NeutronHPPhotonDist::GetPhotons(), G4GammaAnnCrossSection::InCharge(), G4EmModelManager::Initialise(), G4ePolarizedBremsstrahlung::InitialiseEnergyLossProcess(), G4eeToHadrons::InitialiseProcess(), G4eplusPolarizedAnnihilation::InitialiseProcess(), G4RayleighScattering::IsApplicable(), G4LowEnergyRayleigh::IsApplicable(), G4LowEnergyCompton::IsApplicable(), G4LowEnergyGammaConversion::IsApplicable(), G4GammaConversionToMuons::IsApplicable(), G4LowEnergyPhotoElectric::IsApplicable(), G4PolarizedGammaConversion::IsApplicable(), G4ComptonScattering::IsApplicable(), G4LowEnergyPolarizedCompton::IsApplicable(), G4PolarizedCompton::IsApplicable(), G4GammaConversion::IsApplicable(), G4PhotoElectricEffect::IsApplicable(), G4PolarizedPhotoElectricEffect::IsApplicable(), main(), G4RPGReaction::NuclearReaction(), G4ReactionDynamics::NuclearReaction(), G4LowEnergyIonisation::PostStepDoIt(), G4LowEnergyBremsstrahlung::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4ForwardXrayTR::PostStepDoIt(), G4VXTRenergyLoss::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), RMC01SD::ProcessHits(), G4NeutronHPIsotropic::Sample(), G4NeutronHPContAngularPar::Sample(), G4NeutronHPNBodyPhaseSpace::Sample(), G4NeutronHPLabAngularEnergy::Sample(), G4NeutronHPDiscreteTwoBody::Sample(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4PenelopeAnnihilationModel::SampleSecondaries(), G4eeToPGammaModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4PenelopeBremsstrahlungModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4VEmAdjointModel::SetAdjointEquivalentOfDirectPrimaryParticleDefinition(), GammaKnifePhysicsList::SetCutForGamma(), F04PhysicsList::SetCutForGamma(), WLSPhysicsList::SetCutForGamma(), HadrontherapyPhysicsList::SetCutForGamma(), exrdmPhysicsList::SetCutForGamma(), PhysicsList::SetCutForGamma(), XrayFluoPhysicsList::SetCutForGamma(), IORTPhysicsList::SetCutForGamma(), ML2PhysicsList::SetCutForGamma(), RMC01AnalysisManager::SetPrimaryExpSpectrumForAdjointSim(), RMC01AnalysisManager::SetPrimaryPowerLawSpectrumForAdjointSim(), G4PAIPhotonModel::TestSecondaries(), and Em10SteppingAction::UserSteppingAction().

87 {
88  return Definition();
89 }
static G4Gamma * Definition()
Definition: G4Gamma.cc:49
G4Gamma * G4Gamma::GammaDefinition ( )
static

Definition at line 81 of file G4Gamma.cc.

References Definition().

Referenced by G4LFission::ApplyYourself(), DMXStackingAction::ClassifyNewTrack(), eRositaPhysicsList::ConstructBosons(), RE06PhysicsList::ConstructBosons(), Par01PhysicsList::ConstructBosons(), exGPSPhysicsList::ConstructBosons(), DicomPhysicsList::ConstructBosons(), ExGflashPhysicsList::ConstructBosons(), PhysicsList::ConstructBosons(), ExP02PhysicsList::ConstructBosons(), ExN02PhysicsList::ConstructBosons(), ExP01PhysicsList::ConstructBosons(), F01PhysicsList::ConstructBosons(), F02PhysicsList::ConstructBosons(), F03PhysicsList::ConstructBosons(), UltraPhysicsList::ConstructBosons(), XrayTelPhysicsList::ConstructBosons(), G4AdjointPhysicsList::ConstructBosons(), PurgMagPhysicsList::ConstructBosons(), GammaKnifeParticles::ConstructParticle(), G4BosonConstructor::ConstructParticle(), XrayFluoPhysicsList::ConstructParticle(), PhysicsListEMstd::ConstructParticle(), exrdmPhysListParticles::ConstructParticle(), PhysicsList::ConstructParticle(), G4ErrorPhysicsList::ConstructParticle(), LXeEMPhysics::ConstructParticle(), G4XMesonBaryonElastic::CrossSection(), Par01PiModel::DoIt(), RE01Trajectory::DrawTrajectory(), G4ParticleTypeConverter::G4ParticleTypeConverter(), G4XPDGTotal::G4XPDGTotal(), G4Scintillation::GetScintillationYieldByParticleType(), Par01EMShowerModel::IsApplicable(), eRositaTrackerSD::ProcessHits(), and G4PenelopePhotoElectricModel::SampleSecondaries().

82 {
83  return Definition();
84 }
static G4Gamma * Definition()
Definition: G4Gamma.cc:49

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