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

#include <G4DynamicParticle.hh>

Public Member Functions

 G4DynamicParticle ()
 
 G4DynamicParticle (const G4ParticleDefinition *aParticleDefinition, const G4ThreeVector &aMomentumDirection, G4double aKineticEnergy)
 
 G4DynamicParticle (const G4ParticleDefinition *aParticleDefinition, const G4ThreeVector &aParticleMomentum)
 
 G4DynamicParticle (const G4ParticleDefinition *aParticleDefinition, const G4LorentzVector &aParticleMomentum)
 
 G4DynamicParticle (const G4ParticleDefinition *aParticleDefinition, G4double aTotalEnergy, const G4ThreeVector &aParticleMomentum)
 
 G4DynamicParticle (const G4DynamicParticle &right)
 
 ~G4DynamicParticle ()
 
G4DynamicParticleoperator= (const G4DynamicParticle &right)
 
G4int operator== (const G4DynamicParticle &right) const
 
G4int operator!= (const G4DynamicParticle &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aDynamicParticle)
 
const G4ThreeVectorGetMomentumDirection () const
 
void SetMomentumDirection (const G4ThreeVector &aDirection)
 
void SetMomentumDirection (G4double px, G4double py, G4double pz)
 
G4ThreeVector GetMomentum () const
 
void SetMomentum (const G4ThreeVector &momentum)
 
G4LorentzVector Get4Momentum () const
 
void Set4Momentum (const G4LorentzVector &momentum)
 
G4double GetTotalMomentum () const
 
G4double GetTotalEnergy () const
 
G4double GetKineticEnergy () const
 
void SetKineticEnergy (G4double aEnergy)
 
G4double GetProperTime () const
 
void SetProperTime (G4double)
 
const G4ThreeVectorGetPolarization () const
 
void SetPolarization (G4double polX, G4double polY, G4double polZ)
 
G4double GetMass () const
 
void SetMass (G4double mass)
 
G4double GetCharge () const
 
void SetCharge (G4double charge)
 
void SetCharge (G4int chargeInUnitOfEplus)
 
G4double GetSpin () const
 
void SetSpin (G4double spin)
 
void SetSpin (G4int spinInUnitOfHalfInteger)
 
G4double GetMagneticMoment () const
 
void SetMagneticMoment (G4double magneticMoment)
 
const G4ElectronOccupancyGetElectronOccupancy () const
 
G4int GetTotalOccupancy () const
 
G4int GetOccupancy (G4int orbit) const
 
void AddElectron (G4int orbit, G4int number=1)
 
void RemoveElectron (G4int orbit, G4int number=1)
 
const G4ParticleDefinitionGetParticleDefinition () const
 
void SetDefinition (const G4ParticleDefinition *aParticleDefinition)
 
G4ParticleDefinitionGetDefinition () const
 
const G4DecayProductsGetPreAssignedDecayProducts () const
 
void SetPreAssignedDecayProducts (G4DecayProducts *aDecayProducts)
 
G4double GetPreAssignedDecayProperTime () const
 
void SetPreAssignedDecayProperTime (G4double)
 
void DumpInfo (G4int mode=0) const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void SetPrimaryParticle (G4PrimaryParticle *p)
 
void SetPDGcode (G4int c)
 
G4PrimaryParticleGetPrimaryParticle () const
 
G4int GetPDGcode () const
 

Protected Member Functions

void AllocateElectronOccupancy ()
 
G4double GetElectronMass () const
 

Protected Attributes

G4ThreeVector theMomentumDirection
 
const G4ParticleDefinitiontheParticleDefinition
 
G4ThreeVector thePolarization
 
G4double theKineticEnergy
 
G4double theProperTime
 
G4double theDynamicalMass
 
G4double theDynamicalCharge
 
G4double theDynamicalSpin
 
G4double theDynamicalMagneticMoment
 
G4ElectronOccupancytheElectronOccupancy
 
G4DecayProductsthePreAssignedDecayProducts
 
G4double thePreAssignedDecayTime
 
G4int verboseLevel
 
G4PrimaryParticleprimaryParticle
 
G4int thePDGcode
 

Detailed Description

Definition at line 73 of file G4DynamicParticle.hh.

Constructor & Destructor Documentation

G4DynamicParticle::G4DynamicParticle ( )

Definition at line 79 of file G4DynamicParticle.cc.

79  :
80  theMomentumDirection(0.0,0.0,1.0),
82  theKineticEnergy(0.0),
83  theProperTime(0.0),
84  theDynamicalMass(0.0),
85  theDynamicalCharge(0.0),
86  theDynamicalSpin(0.0),
91  verboseLevel(1),
92  primaryParticle(0),
93  thePDGcode(0)
94 {
95 }
G4double theDynamicalMagneticMoment
G4ThreeVector theMomentumDirection
G4PrimaryParticle * primaryParticle
G4DecayProducts * thePreAssignedDecayProducts
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
const G4ParticleDefinition * theParticleDefinition
G4DynamicParticle::G4DynamicParticle ( const G4ParticleDefinition aParticleDefinition,
const G4ThreeVector aMomentumDirection,
G4double  aKineticEnergy 
)

Definition at line 100 of file G4DynamicParticle.cc.

102  :
103  theMomentumDirection(aMomentumDirection),
104  theParticleDefinition(aParticleDefinition),
105  theKineticEnergy(aKineticEnergy),
106  theProperTime(0.0),
107  theDynamicalMass(aParticleDefinition->GetPDGMass()),
108  theDynamicalCharge(aParticleDefinition->GetPDGCharge()),
109  theDynamicalSpin(aParticleDefinition->GetPDGSpin()),
110  theDynamicalMagneticMoment(aParticleDefinition->GetPDGMagneticMoment()),
114  verboseLevel(1),
115  primaryParticle(0),
116  thePDGcode(0)
117 {
118 }
G4double theDynamicalMagneticMoment
G4ThreeVector theMomentumDirection
G4PrimaryParticle * primaryParticle
G4DecayProducts * thePreAssignedDecayProducts
G4double GetPDGMass() const
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
G4double GetPDGSpin() const
G4double GetPDGMagneticMoment() const
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGCharge() const
G4DynamicParticle::G4DynamicParticle ( const G4ParticleDefinition aParticleDefinition,
const G4ThreeVector aParticleMomentum 
)

Definition at line 121 of file G4DynamicParticle.cc.

References SetMomentum().

122  :
123  theParticleDefinition(aParticleDefinition),
124  theKineticEnergy(0.0),
125  theProperTime(0.0),
126  theDynamicalMass(aParticleDefinition->GetPDGMass()),
127  theDynamicalCharge(aParticleDefinition->GetPDGCharge()),
128  theDynamicalSpin(aParticleDefinition->GetPDGSpin()),
129  theDynamicalMagneticMoment(aParticleDefinition->GetPDGMagneticMoment()),
133  verboseLevel(1),
134  primaryParticle(0),
135  thePDGcode(0)
136 {
137  SetMomentum(aParticleMomentum); // 3-dim momentum is given
138 }
void SetMomentum(const G4ThreeVector &momentum)
G4double theDynamicalMagneticMoment
G4PrimaryParticle * primaryParticle
G4DecayProducts * thePreAssignedDecayProducts
G4double GetPDGMass() const
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
G4double GetPDGSpin() const
G4double GetPDGMagneticMoment() const
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGCharge() const
G4DynamicParticle::G4DynamicParticle ( const G4ParticleDefinition aParticleDefinition,
const G4LorentzVector aParticleMomentum 
)

Definition at line 141 of file G4DynamicParticle.cc.

References Set4Momentum().

142  :
143  theParticleDefinition(aParticleDefinition),
144  theKineticEnergy(0.0),
145  theProperTime(0.0),
146  theDynamicalMass(aParticleDefinition->GetPDGMass()),
147  theDynamicalCharge(aParticleDefinition->GetPDGCharge()),
148  theDynamicalSpin(aParticleDefinition->GetPDGSpin()),
149  theDynamicalMagneticMoment(aParticleDefinition->GetPDGMagneticMoment()),
153  verboseLevel(1),
154  primaryParticle(0),
155  thePDGcode(0)
156 {
157  Set4Momentum(aParticleMomentum); // 4-momentum vector (Lorentz vector) is given
158 }
G4double theDynamicalMagneticMoment
G4PrimaryParticle * primaryParticle
void Set4Momentum(const G4LorentzVector &momentum)
G4DecayProducts * thePreAssignedDecayProducts
G4double GetPDGMass() const
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
G4double GetPDGSpin() const
G4double GetPDGMagneticMoment() const
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGCharge() const
G4DynamicParticle::G4DynamicParticle ( const G4ParticleDefinition aParticleDefinition,
G4double  aTotalEnergy,
const G4ThreeVector aParticleMomentum 
)

Definition at line 160 of file G4DynamicParticle.cc.

References CLHEP::Hep3Vector::mag2(), SetKineticEnergy(), SetMomentum(), SetMomentumDirection(), theDynamicalMass, and CLHEP::Hep3Vector::unit().

162  :
163  theParticleDefinition(aParticleDefinition),
164  theKineticEnergy(0.0),
165  theProperTime(0.0),
166  theDynamicalMass(aParticleDefinition->GetPDGMass()),
167  theDynamicalCharge(aParticleDefinition->GetPDGCharge()),
168  theDynamicalSpin(aParticleDefinition->GetPDGSpin()),
169  theDynamicalMagneticMoment(aParticleDefinition->GetPDGMagneticMoment()),
173  verboseLevel(1),
174  primaryParticle(0),
175  thePDGcode(0)
176 {
177  // total energy and 3-dim momentum are given
178  G4double pModule2 = aParticleMomentum.mag2();
179  if (pModule2>0.0) {
180  G4double mass2 = totalEnergy*totalEnergy - pModule2;
181  if(mass2 < EnergyMomentumRelationAllowance*EnergyMomentumRelationAllowance) {
182  theDynamicalMass = 0.;
183  SetMomentumDirection(aParticleMomentum.unit());
184  SetKineticEnergy(totalEnergy);
185  } else {
186  theDynamicalMass = std::sqrt(mass2);
187  SetMomentum(aParticleMomentum);
188  }
189  } else {
190  SetMomentumDirection(1.0,0.0,0.0);
191  SetKineticEnergy(0.0);
192  }
193 }
void SetMomentum(const G4ThreeVector &momentum)
G4double theDynamicalMagneticMoment
void SetMomentumDirection(const G4ThreeVector &aDirection)
G4PrimaryParticle * primaryParticle
void SetKineticEnergy(G4double aEnergy)
G4DecayProducts * thePreAssignedDecayProducts
G4double GetPDGMass() const
G4ElectronOccupancy * theElectronOccupancy
Hep3Vector unit() const
double mag2() const
G4double thePreAssignedDecayTime
G4double GetPDGSpin() const
G4double GetPDGMagneticMoment() const
double G4double
Definition: G4Types.hh:76
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGCharge() const
G4DynamicParticle::G4DynamicParticle ( const G4DynamicParticle right)

Definition at line 196 of file G4DynamicParticle.cc.

References theElectronOccupancy.

196  :
201  theProperTime(0.0),
207  thePreAssignedDecayProducts(0), // Do not copy preassignedDecayProducts
209  verboseLevel(right.verboseLevel),
211  thePDGcode(right.thePDGcode)
212 {
213  if (right.theElectronOccupancy != 0) {
216  }
217 }
G4double theDynamicalMagneticMoment
G4ThreeVector theMomentumDirection
G4PrimaryParticle * primaryParticle
G4DecayProducts * thePreAssignedDecayProducts
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
G4ThreeVector thePolarization
const G4ParticleDefinition * theParticleDefinition
G4DynamicParticle::~G4DynamicParticle ( )

Definition at line 222 of file G4DynamicParticle.cc.

References theElectronOccupancy, and thePreAssignedDecayProducts.

223 {
224  // delete thePreAssignedDecayProducts
227 
230 }
G4DecayProducts * thePreAssignedDecayProducts
G4ElectronOccupancy * theElectronOccupancy

Member Function Documentation

void G4DynamicParticle::AddElectron ( G4int  orbit,
G4int  number = 1 
)
void G4DynamicParticle::AllocateElectronOccupancy ( )
protected

Definition at line 322 of file G4DynamicParticle.cc.

References GetDefinition(), G4IonTable::IsIon(), and theElectronOccupancy.

323 {
324  const G4ParticleDefinition* particle = GetDefinition();
325 
326  if (G4IonTable::IsIon(particle)) {
327  // Only ions can have ElectronOccupancy
329 
330  } else {
332 
333  }
334 }
static G4bool IsIon(const G4ParticleDefinition *)
Definition: G4IonTable.cc:1044
G4ParticleDefinition * GetDefinition() const
G4ElectronOccupancy * theElectronOccupancy
void G4DynamicParticle::DumpInfo ( G4int  mode = 0) const
G4LorentzVector G4DynamicParticle::Get4Momentum ( ) const
G4double G4DynamicParticle::GetCharge ( ) const
G4ParticleDefinition* G4DynamicParticle::GetDefinition ( ) const

Referenced by G4NeutronHPFinalState::adjust_final_state(), AllocateElectronOccupancy(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4ErrorEnergyLoss::AlongStepDoIt(), G4AdjointProcessEquivalentToDirectProcess::AlongStepDoIt(), G4MonopoleTransportation::AlongStepDoIt(), G4AdjointAlongStepWeightCorrection::AlongStepDoIt(), G4hImpactIonisation::AlongStepDoIt(), G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4AdjointProcessEquivalentToDirectProcess::AlongStepGetPhysicalInteractionLength(), G4RPGPiMinusInelastic::ApplyYourself(), G4RPGPiPlusInelastic::ApplyYourself(), G4RPGKMinusInelastic::ApplyYourself(), G4RPGAntiProtonInelastic::ApplyYourself(), G4RPGAntiSigmaPlusInelastic::ApplyYourself(), G4RPGAntiLambdaInelastic::ApplyYourself(), G4RPGSigmaPlusInelastic::ApplyYourself(), G4RPGXiMinusInelastic::ApplyYourself(), G4RPGAntiNeutronInelastic::ApplyYourself(), G4RPGAntiOmegaMinusInelastic::ApplyYourself(), G4RPGAntiSigmaMinusInelastic::ApplyYourself(), G4RPGAntiXiMinusInelastic::ApplyYourself(), G4RPGOmegaMinusInelastic::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4RPGAntiXiZeroInelastic::ApplyYourself(), G4RPGKPlusInelastic::ApplyYourself(), G4RPGKZeroInelastic::ApplyYourself(), G4RPGLambdaInelastic::ApplyYourself(), G4RPGSigmaMinusInelastic::ApplyYourself(), G4RPGXiZeroInelastic::ApplyYourself(), G4RPGAntiKZeroInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4LFission::ApplyYourself(), G4WilsonAbrasionModel::ApplyYourself(), G4AdjointProcessEquivalentToDirectProcess::AtRestDoIt(), G4AdjointProcessEquivalentToDirectProcess::AtRestGetPhysicalInteractionLength(), G4HadLeadBias::Bias(), G4RPGInelastic::CalculateMomenta(), G4PrimaryTransformer::CheckDynamicParticle(), G4BetheBlochModel::CorrectionsAlongStep(), G4BraggIonModel::CorrectionsAlongStep(), G4PionDecayMakeSpin::DaughterPolarization(), G4KineticTrack::Decay(), G4DecayWithSpin::DecayIt(), G4UnknownDecay::DecayIt(), G4Decay::DecayIt(), G4RadioactiveDecay::DecayIt(), G4LowEnergyIonisation::DeexciteAtom(), G4BohrFluctuations::Dispersion(), G4UniversalFluctuation::Dispersion(), export_G4DynamicParticle(), G4Track::G4Track(), G4ErrorEnergyLoss::GetContinuousStepLimit(), G4GGNuclNuclCrossSection::GetCoulombBarier(), G4ComponentGGNuclNuclXsc::GetCoulombBarier(), G4HadronNucleonXsc::GetCoulombBarrier(), G4CrossSectionDataStore::GetCrossSection(), G4NeutronHPFissionData::GetCrossSection(), G4NeutronHPCaptureData::GetCrossSection(), G4NeutronHPInelasticData::GetCrossSection(), G4NeutronHPElasticData::GetCrossSection(), G4InuclParticle::getDefinition(), G4UPiNuclearCrossSection::GetElasticCrossSection(), G4HadronCrossSections::GetElasticCrossSection(), G4PiNuclearCrossSection::GetElementCrossSection(), G4TripathiCrossSection::GetElementCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4IonsSihverCrossSection::GetElementCrossSection(), G4NucleonNuclearCrossSection::GetElementCrossSection(), G4IonProtonCrossSection::GetElementCrossSection(), G4CrossSectionPairGG::GetElementCrossSection(), G4CrossSectionElastic::GetElementCrossSection(), G4CrossSectionInelastic::GetElementCrossSection(), G4BGGNucleonInelasticXS::GetElementCrossSection(), G4BGGPionElasticXS::GetElementCrossSection(), G4BGGNucleonElasticXS::GetElementCrossSection(), G4BGGPionInelasticXS::GetElementCrossSection(), G4EMDissociationCrossSection::GetElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4ComponentBarNucleonNucleusXsc::GetElementCrossSection(), G4GeneralSpaceNNCrossSection::GetElementCrossSection(), G4VCrossSectionDataSet::GetElementCrossSection(), G4RPGReaction::GetFinalStateNucleons(), G4QuasiElasticChannel::GetFraction(), G4GlauberGribovCrossSection::GetHadronNucleonXsc(), G4GGNuclNuclCrossSection::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXsc(), G4ComponentGGNuclNuclXsc::GetHadronNucleonXsc(), G4HadronNucleonXsc::GetHadronNucleonXscEL(), G4HadronNucleonXsc::GetHadronNucleonXscNS(), G4GlauberGribovCrossSection::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4HadronNucleonXsc::GetHadronNucleonXscPDG(), G4GlauberGribovCrossSection::GetHadronNucleonXscPDG(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscPDG(), G4HadronNucleonXsc::GetHadronNucleonXscVU(), G4GlauberGribovCrossSection::GetHNinelasticXsc(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXsc(), G4GlauberGribovCrossSection::GetHNinelasticXscVU(), G4GGNuclNuclCrossSection::GetHNinelasticXscVU(), G4ComponentGGNuclNuclXsc::GetHNinelasticXscVU(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXscVU(), G4UPiNuclearCrossSection::GetInelasticCrossSection(), G4HadronCrossSections::GetInelasticCrossSection(), G4ChipsAntiBaryonInelasticXS::GetIsoCrossSection(), G4ChipsHyperonElasticXS::GetIsoCrossSection(), G4ChipsHyperonInelasticXS::GetIsoCrossSection(), G4ChipsAntiBaryonElasticXS::GetIsoCrossSection(), G4IonsShenCrossSection::GetIsoCrossSection(), G4GlauberGribovCrossSection::GetIsoCrossSection(), G4BGGNucleonInelasticXS::GetIsoCrossSection(), G4BGGPionElasticXS::GetIsoCrossSection(), G4BGGNucleonElasticXS::GetIsoCrossSection(), G4BGGPionInelasticXS::GetIsoCrossSection(), G4ComponentGGHadronNucleusXsc::GetIsoCrossSection(), G4VCrossSectionDataSet::GetIsoCrossSection(), G4HadronNucleonXsc::GetKaonNucleonXscGG(), G4GlauberGribovCrossSection::GetKaonNucleonXscVector(), G4ComponentGGHadronNucleusXsc::GetKaonNucleonXscVector(), G4SynchrotronRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4VXTRenergyLoss::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4ScreenedNuclearRecoil::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4Decay::GetMeanLifeTime(), G4RadioactiveDecay::GetMeanLifeTime(), G4SynchrotronRadiationInMat::GetPhotonEnergy(), G4GlauberGribovCrossSection::GetRatioQE(), G4GGNuclNuclCrossSection::GetRatioQE(), G4ComponentGGHadronNucleusXsc::GetRatioQE(), G4ComponentGGNuclNuclXsc::GetRatioQE(), G4GlauberGribovCrossSection::GetRatioSD(), G4GGNuclNuclCrossSection::GetRatioSD(), G4ComponentGGHadronNucleusXsc::GetRatioSD(), G4ComponentGGNuclNuclXsc::GetRatioSD(), G4Scintillation::GetScintillationYieldByParticleType(), G4GGNuclNuclCrossSection::GetZandACrossSection(), G4ComponentGGNuclNuclXsc::GetZandACrossSection(), G4Pythia6Decayer::ImportDecayProducts(), G4NuclNuclDiffuseElastic::InitParametersGla(), G4NeutronHPThermalScatteringData::IsApplicable(), G4TripathiCrossSection::IsElementApplicable(), G4IonsKoxCrossSection::IsElementApplicable(), G4IonsSihverCrossSection::IsElementApplicable(), G4NucleonNuclearCrossSection::IsElementApplicable(), G4IonsShenCrossSection::IsElementApplicable(), G4ProtonInelasticCrossSection::IsElementApplicable(), G4IonProtonCrossSection::IsElementApplicable(), G4EMDissociationCrossSection::IsElementApplicable(), G4TripathiLightCrossSection::IsElementApplicable(), G4ComponentBarNucleonNucleusXsc::IsElementApplicable(), G4GeneralSpaceNNCrossSection::IsElementApplicable(), G4QAOLowEnergyLoss::IsInCharge(), G4ChipsAntiBaryonInelasticXS::IsIsoApplicable(), G4NeutronHPFissionData::IsIsoApplicable(), G4ChipsProtonElasticXS::IsIsoApplicable(), G4ChipsProtonInelasticXS::IsIsoApplicable(), G4ChipsHyperonInelasticXS::IsIsoApplicable(), G4ChipsKaonPlusElasticXS::IsIsoApplicable(), G4ChipsHyperonElasticXS::IsIsoApplicable(), G4ChipsPionPlusElasticXS::IsIsoApplicable(), G4ChipsAntiBaryonElasticXS::IsIsoApplicable(), G4ChipsKaonMinusElasticXS::IsIsoApplicable(), G4NeutronHPCaptureData::IsIsoApplicable(), G4ChipsNeutronElasticXS::IsIsoApplicable(), G4NeutronHPInelasticData::IsIsoApplicable(), G4ChipsPionMinusElasticXS::IsIsoApplicable(), G4ChipsPionMinusInelasticXS::IsIsoApplicable(), G4ChipsKaonMinusInelasticXS::IsIsoApplicable(), G4ChipsKaonPlusInelasticXS::IsIsoApplicable(), G4NeutronHPElasticData::IsIsoApplicable(), G4ChipsPionPlusInelasticXS::IsIsoApplicable(), G4ChipsNeutronInelasticXS::IsIsoApplicable(), G4ChipsKaonZeroInelasticXS::IsIsoApplicable(), G4ChipsKaonZeroElasticXS::IsIsoApplicable(), G4HadronNucleonXsc::IsIsoApplicable(), G4GlauberGribovCrossSection::IsIsoApplicable(), G4NeutronHPThermalScatteringData::IsIsoApplicable(), G4LENDCrossSection::IsIsoApplicable(), G4ComponentGGHadronNucleusXsc::IsIsoApplicable(), G4ReactionProduct::operator=(), G4HadronElasticProcess::PostStepDoIt(), G4AdjointProcessEquivalentToDirectProcess::PostStepDoIt(), G4SynchrotronRadiation::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4LowEnergyIonisation::PostStepDoIt(), G4ForwardXrayTR::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4VXTRenergyLoss::PostStepDoIt(), G4HadronicProcess::PostStepDoIt(), G4Cerenkov::PostStepDoIt(), G4Scintillation::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), Em10StepCut::PostStepGetPhysicalInteractionLength(), F01StepCut::PostStepGetPhysicalInteractionLength(), F02StepCut::PostStepGetPhysicalInteractionLength(), F03StepCut::PostStepGetPhysicalInteractionLength(), XrayTelStepCut::PostStepGetPhysicalInteractionLength(), G4AdjointProcessEquivalentToDirectProcess::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), Em10TrackingAction::PreUserTrackingAction(), G4ReactionDynamics::ProduceStrangeParticlePairs(), G4RPGStrangeProduction::ReactionStage(), G4UniversalFluctuation::SampleFluctuations(), G4PAIPhotModel::SampleFluctuations(), G4PAIModel::SampleFluctuations(), G4PAIPhotonModel::SampleFluctuations(), G4DNADingfelderChargeDecreaseModel::SampleSecondaries(), G4DNADingfelderChargeIncreaseModel::SampleSecondaries(), G4DNAMillerGreenExcitationModel::SampleSecondaries(), G4DNABornExcitationModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4LivermorePolarizedRayleighModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4LivermoreComptonModifiedModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4MuElecInelasticModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4eSingleCoulombScatteringModel::SampleSecondaries(), G4mplIonisationWithDeltaModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4PAIModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4QuasiElasticChannel::Scatter(), G4VPartonStringModel::Scatter(), G4WentzelVIRelModel::StartTracking(), G4WentzelVIModel::StartTracking(), G4GoudsmitSaundersonMscModel::StartTracking(), G4UrbanMscModel::StartTracking(), G4AdjointProcessEquivalentToDirectProcess::StartTracking(), G4PAIPhotonModel::TestSecondaries(), G4NuclNuclDiffuseElastic::ThetaCMStoThetaLab(), G4DiffuseElastic::ThetaCMStoThetaLab(), G4NuclNuclDiffuseElastic::ThetaLabToThetaCMS(), G4DiffuseElastic::ThetaLabToThetaCMS(), G4hIonEffChargeSquare::TheValue(), Em10SteppingAction::UserSteppingAction(), and PurgMagSteppingAction::UserSteppingAction().

G4double G4DynamicParticle::GetElectronMass ( ) const
protected

Definition at line 413 of file G4DynamicParticle.cc.

References G4InuclParticleNames::electron, FatalException, G4ParticleTable::FindParticle(), G4Exception(), G4ThreadLocal, G4ParticleTable::GetParticleTable(), and G4ParticleDefinition::GetPDGMass().

414 {
415  static G4ThreadLocal G4double electronMass = 0.0;
416 
417  // check if electron exits and get the mass
418  if (electronMass<=0.0) {
420  if (electron == 0) {
421  G4Exception("G4DynamicParticle::GetElectronMass()","PART021",
422  FatalException,"G4DynamicParticle: G4Electron is not defined !!");
423  }
424  electronMass = electron->GetPDGMass();
425  }
426 
427  return electronMass;
428 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
#define G4ThreadLocal
Definition: tls.hh:52
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
double G4double
Definition: G4Types.hh:76
const G4ElectronOccupancy* G4DynamicParticle::GetElectronOccupancy ( ) const
G4double G4DynamicParticle::GetKineticEnergy ( ) const

Referenced by HistoManager::AddDeltaElectron(), HistoManager::AddPhoton(), G4NeutronHPFinalState::adjust_final_state(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4ContinuousGainOfEnergy::AlongStepDoIt(), G4eLowEnergyLoss::AlongStepDoIt(), G4hImpactIonisation::AlongStepDoIt(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4WilsonAbrasionModel::ApplyYourself(), G4HadLeadBias::Bias(), G4Track::CalculateVelocity(), G4WentzelVIModel::ComputeTruePathLengthLimit(), G4WentzelVIRelModel::ComputeTruePathLengthLimit(), G4GoudsmitSaundersonMscModel::ComputeTruePathLengthLimit(), G4UrbanMscModel::ComputeTruePathLengthLimit(), G4BetheBlochModel::CorrectionsAlongStep(), G4BraggIonModel::CorrectionsAlongStep(), G4Decay::DecayIt(), G4RadioactiveDecay::DecayIt(), G4LowEnergyIonisation::DeexciteAtom(), G4BohrFluctuations::Dispersion(), G4UniversalFluctuation::Dispersion(), G4IonFluctuations::Dispersion(), G4mplIonisationModel::Dispersion(), G4mplIonisationWithDeltaModel::Dispersion(), G4PAIPhotModel::Dispersion(), G4PAIModel::Dispersion(), G4PAIPhotonModel::Dispersion(), G4ScreenedCoulombClassicalKinematics::DoCollisionStep(), G4SingleScatter::DoCollisionStep(), export_G4DynamicParticle(), G4HadSecondary::G4HadSecondary(), G4HadronCrossSections::GetCaptureCrossSection(), G4GGNuclNuclCrossSection::GetCoulombBarier(), G4ComponentGGNuclNuclXsc::GetCoulombBarier(), G4HadronNucleonXsc::GetCoulombBarrier(), G4NeutronHPJENDLHEData::GetCrossSection(), G4CrossSectionDataStore::GetCrossSection(), G4NeutronHPFissionData::GetCrossSection(), G4NeutronHPCaptureData::GetCrossSection(), G4NeutronHPInelasticData::GetCrossSection(), G4NeutronHPElasticData::GetCrossSection(), G4GammaConversionToMuons::GetCrossSectionPerAtom(), G4VEnergyLossProcess::GetDEDXDispersion(), G4UPiNuclearCrossSection::GetElasticCrossSection(), G4HadronCrossSections::GetElasticCrossSection(), G4PiNuclearCrossSection::GetElementCrossSection(), G4TripathiCrossSection::GetElementCrossSection(), G4NeutronInelasticCrossSection::GetElementCrossSection(), G4PhotoNuclearCrossSection::GetElementCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4NucleonNuclearCrossSection::GetElementCrossSection(), G4ProtonInelasticCrossSection::GetElementCrossSection(), G4KokoulinMuonNuclearXS::GetElementCrossSection(), G4ChargeExchangeProcess::GetElementCrossSection(), G4ElectroNuclearCrossSection::GetElementCrossSection(), G4NeutronElasticXS::GetElementCrossSection(), G4CrossSectionPairGG::GetElementCrossSection(), G4IonProtonCrossSection::GetElementCrossSection(), G4CrossSectionElastic::GetElementCrossSection(), G4CrossSectionInelastic::GetElementCrossSection(), G4NeutronCaptureXS::GetElementCrossSection(), G4NeutronInelasticXS::GetElementCrossSection(), G4BGGNucleonInelasticXS::GetElementCrossSection(), G4BGGPionElasticXS::GetElementCrossSection(), G4BGGNucleonElasticXS::GetElementCrossSection(), G4BGGPionInelasticXS::GetElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4ComponentBarNucleonNucleusXsc::GetElementCrossSection(), G4GeneralSpaceNNCrossSection::GetElementCrossSection(), G4VCrossSectionDataSet::GetElementCrossSection(), G4HadronCrossSections::GetFissionCrossSection(), G4UPiNuclearCrossSection::GetInelasticCrossSection(), G4HadronCrossSections::GetInelasticCrossSection(), G4NeutronHPFissionData::GetIsoCrossSection(), G4NeutronHPCaptureData::GetIsoCrossSection(), G4NeutronHPInelasticData::GetIsoCrossSection(), G4NeutronHPElasticData::GetIsoCrossSection(), G4IonsShenCrossSection::GetIsoCrossSection(), G4NeutronHPThermalScatteringData::GetIsoCrossSection(), G4LENDCrossSection::GetIsoCrossSection(), G4NeutronCaptureXS::GetIsoCrossSection(), G4NeutronInelasticXS::GetIsoCrossSection(), G4BGGNucleonInelasticXS::GetIsoCrossSection(), G4BGGPionElasticXS::GetIsoCrossSection(), G4BGGNucleonElasticXS::GetIsoCrossSection(), G4BGGPionInelasticXS::GetIsoCrossSection(), G4VCrossSectionDataSet::GetIsoCrossSection(), G4GlauberGribovCrossSection::GetKaonNucleonXscVector(), G4ComponentGGHadronNucleusXsc::GetKaonNucleonXscVector(), G4InuclParticle::getKineticEnergy(), G4RDVeLowEnergyLoss::GetLossWithFluct(), G4LowEnergyRayleigh::GetMeanFreePath(), G4LowEnergyCompton::GetMeanFreePath(), G4LowEnergyGammaConversion::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4eplusPolarizedAnnihilation::GetMeanFreePath(), G4GammaConversionToMuons::GetMeanFreePath(), G4AnnihiToMuPair::GetMeanFreePath(), G4hImpactIonisation::GetMeanFreePath(), G4VXTRenergyLoss::GetMeanFreePath(), G4ePolarizedIonisation::GetMeanFreePath(), G4LowEnergyPolarizedCompton::GetMeanFreePath(), G4LowEnergyPhotoElectric::GetMeanFreePath(), G4PolarizedCompton::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4ScreenedNuclearRecoil::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanLifeTime(), G4GGNuclNuclCrossSection::GetRatioQE(), G4ComponentGGNuclNuclXsc::GetRatioQE(), G4GGNuclNuclCrossSection::GetRatioSD(), G4ComponentGGNuclNuclXsc::GetRatioSD(), G4GGNuclNuclCrossSection::GetZandACrossSection(), G4ComponentGGNuclNuclXsc::GetZandACrossSection(), G4ParticleChange::Initialize(), G4FastStep::Initialize(), G4NuclNuclDiffuseElastic::InitParametersGla(), G4NeutronHPJENDLHEData::IsApplicable(), G4NeutronHPThermalScatteringData::IsApplicable(), G4TripathiCrossSection::IsElementApplicable(), G4NeutronInelasticCrossSection::IsElementApplicable(), G4IonsSihverCrossSection::IsElementApplicable(), G4NucleonNuclearCrossSection::IsElementApplicable(), G4CrossSectionPairGG::IsElementApplicable(), G4NeutronHPBGGNucleonInelasticXS::IsElementApplicable(), G4CrossSectionElastic::IsElementApplicable(), G4CrossSectionInelastic::IsElementApplicable(), G4TripathiLightCrossSection::IsElementApplicable(), G4ComponentBarNucleonNucleusXsc::IsElementApplicable(), G4ComponentGGNuclNuclXsc::IsElementApplicable(), G4NeutronHPFissionData::IsIsoApplicable(), G4NeutronHPCaptureData::IsIsoApplicable(), G4NeutronHPInelasticData::IsIsoApplicable(), G4NeutronHPElasticData::IsIsoApplicable(), G4HadronNucleonXsc::IsIsoApplicable(), G4GlauberGribovCrossSection::IsIsoApplicable(), G4NeutronHPThermalScatteringData::IsIsoApplicable(), G4NeutronHPBGGNucleonInelasticXS::IsIsoApplicable(), G4LENDCrossSection::IsIsoApplicable(), G4ComponentGGHadronNucleusXsc::IsIsoApplicable(), G4VEmModel::MaxSecondaryKinEnergy(), G4ReactionProduct::operator=(), G4HadronElasticProcess::PostStepDoIt(), G4LowEnergyRayleigh::PostStepDoIt(), G4LowEnergyCompton::PostStepDoIt(), G4LowEnergyGammaConversion::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4SynchrotronRadiation::PostStepDoIt(), G4LowEnergyIonisation::PostStepDoIt(), G4LowEnergyPolarizedCompton::PostStepDoIt(), G4ForwardXrayTR::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4VXTRenergyLoss::PostStepDoIt(), G4AnnihiToMuPair::PostStepDoIt(), G4GammaConversionToMuons::PostStepDoIt(), G4HadronicProcess::PostStepDoIt(), G4OpWLS::PostStepDoIt(), G4VEmProcess::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), G4ScreenedNuclearRecoil::PostStepDoIt(), DMXMinEkineCuts::PostStepGetPhysicalInteractionLength(), G4MinEkineCuts::PostStepGetPhysicalInteractionLength(), G4ePolarizedIonisation::PostStepGetPhysicalInteractionLength(), G4eplusPolarizedAnnihilation::PostStepGetPhysicalInteractionLength(), G4PolarizedCompton::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4AdjointComptonModel::RapidSampleSecondaries(), G4AdjointBremsstrahlungModel::RapidSampleSecondaries(), G4AdjointhIonisationModel::RapidSampleSecondaries(), G4SauterGavrilaAngularDistribution::SampleDirection(), G4DipBustGenerator::SampleDirection(), G4PhotoElectricAngularGeneratorSauterGavrila::SampleDirection(), G4RayleighAngularGenerator::SampleDirection(), G4PenelopeBremsstrahlungAngular::SampleDirection(), G4Generator2BN::SampleDirection(), G4ModifiedTsai::SampleDirection(), G4IonFluctuations::SampleFluctuations(), G4UniversalFluctuation::SampleFluctuations(), G4PAIPhotModel::SampleFluctuations(), G4PAIModel::SampleFluctuations(), G4PAIPhotonModel::SampleFluctuations(), G4DNAScreenedRutherfordElasticModel::SampleSecondaries(), G4DNADingfelderChargeDecreaseModel::SampleSecondaries(), G4DNAChampionElasticModel::SampleSecondaries(), G4DNADingfelderChargeIncreaseModel::SampleSecondaries(), G4DNAEmfietzoglouExcitationModel::SampleSecondaries(), MyKleinNishinaCompton::SampleSecondaries(), G4LivermorePolarizedPhotoElectricModel::SampleSecondaries(), G4DNAMillerGreenExcitationModel::SampleSecondaries(), G4DNABornExcitationModel::SampleSecondaries(), G4XrayRayleighModel::SampleSecondaries(), G4DNAMeltonAttachmentModel::SampleSecondaries(), G4BoldyshevTripletModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermorePolarizedRayleighModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4AdjointComptonModel::SampleSecondaries(), G4DNASancheExcitationModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4AdjointeIonisationModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4DNATransformElectronModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4LivermoreComptonModifiedModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4MicroElecElasticModel::SampleSecondaries(), G4MuElecElasticModel::SampleSecondaries(), G4DNAOneStepSolvatationModel::SampleSecondaries(), G4AdjointBremsstrahlungModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4PolarizedGammaConversionModel::SampleSecondaries(), G4ePolarizedBremsstrahlungModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4AdjointPhotoElectricModel::SampleSecondaries(), G4LivermoreBremsstrahlungModel::SampleSecondaries(), G4SeltzerBergerModel::SampleSecondaries(), G4PolarizedPEEffectModel::SampleSecondaries(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4PenelopeAnnihilationModel::SampleSecondaries(), G4PenelopeGammaConversionModel::SampleSecondaries(), G4PenelopeRayleighModel::SampleSecondaries(), G4LivermoreIonisationModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4AdjointhIonisationModel::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4AdjointIonIonisationModel::SampleSecondaries(), G4KleinNishinaCompton::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4MuElecInelasticModel::SampleSecondaries(), G4PEEffectFluoModel::SampleSecondaries(), G4BetheHeitlerModel::SampleSecondaries(), G4PairProductionRelModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4eeToHadronsMultiModel::SampleSecondaries(), G4eSingleCoulombScatteringModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4EmMultiModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4mplIonisationWithDeltaModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4eeToHadronsModel::SampleSecondaries(), G4eeToTwoGammaModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PenelopeBremsstrahlungModel::SampleSecondaries(), G4PAIModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4MollerBhabhaModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4MuBremsstrahlungModel::SampleSecondaries(), G4ICRU73QOModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4MuBetheBlochModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4VEnergyLossProcess::SampleSubCutSecondaries(), G4CrossSectionDataStore::SampleZandA(), HistoManager::ScoreNewTrack(), G4PAIPhotonModel::TestSecondaries(), G4IonYangFluctuationModel::TheValue(), G4IonChuFluctuationModel::TheValue(), G4hBetheBlochModel::TheValue(), G4hNuclearStoppingModel::TheValue(), G4hParametrisedLossModel::TheValue(), G4hIonEffChargeSquare::TheValue(), G4QAOLowEnergyLoss::TheValue(), and FCALSteppingAction::UserSteppingAction().

G4double G4DynamicParticle::GetMagneticMoment ( ) const
G4double G4DynamicParticle::GetMass ( ) const

Referenced by G4Transportation::AlongStepDoIt(), G4CoupledTransportation::AlongStepDoIt(), G4MonopoleTransportation::AlongStepDoIt(), G4hImpactIonisation::AlongStepDoIt(), G4DecayProducts::Boost(), G4Track::CalculateVelocity(), G4FieldTrackUpdator::CreateFieldTrack(), G4PionDecayMakeSpin::DaughterPolarization(), G4UnknownDecay::DecayIt(), G4Decay::DecayIt(), G4PAIPhotModel::Dispersion(), G4PAIModel::Dispersion(), G4PAIPhotonModel::Dispersion(), export_G4DynamicParticle(), G4IonsKoxCrossSection::GetElementCrossSection(), G4GlauberGribovCrossSection::GetHadronNucleonXsc(), G4GGNuclNuclCrossSection::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXsc(), G4ComponentGGNuclNuclXsc::GetHadronNucleonXsc(), G4HadronNucleonXsc::GetHadronNucleonXscEL(), G4HadronNucleonXsc::GetHadronNucleonXscNS(), G4GlauberGribovCrossSection::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4HadronNucleonXsc::GetHadronNucleonXscPDG(), G4GlauberGribovCrossSection::GetHadronNucleonXscPDG(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscPDG(), G4IonsShenCrossSection::GetIsoCrossSection(), G4InuclParticle::getMass(), G4SynchrotronRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4hImpactIonisation::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanLifeTime(), G4SynchrotronRadiationInMat::GetPhotonEnergy(), G4ParticleChange::Initialize(), G4DecayProducts::IsChecked(), G4SynchrotronRadiation::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4Decay::PostStepGetPhysicalInteractionLength(), G4PAIPhotonModel::SampleSecondaries(), G4VPartonStringModel::Scatter(), G4SteppingManager::SetInitialStep(), G4PAIPhotonModel::TestSecondaries(), G4IonYangFluctuationModel::TheValue(), G4IonChuFluctuationModel::TheValue(), G4hBetheBlochModel::TheValue(), G4hParametrisedLossModel::TheValue(), G4hNuclearStoppingModel::TheValue(), G4hIonEffChargeSquare::TheValue(), G4ReactionKinematics::TwoBodyScattering(), G4FieldTrackUpdator::Update(), and G4ParticleChangeForTransport::UpdateStepForAlongStep().

G4ThreeVector G4DynamicParticle::GetMomentum ( ) const

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4PionDecayMakeSpin::DaughterPolarization(), G4SingleScatter::DoCollisionStep(), export_G4DynamicParticle(), G4NeutronHPFissionData::GetCrossSection(), G4NeutronHPInelasticData::GetCrossSection(), G4NeutronHPCaptureData::GetCrossSection(), G4NeutronHPElasticData::GetCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4GlauberGribovCrossSection::GetHadronNucleonXsc(), G4GGNuclNuclCrossSection::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXsc(), G4ComponentGGNuclNuclXsc::GetHadronNucleonXsc(), G4HadronNucleonXsc::GetHadronNucleonXscEL(), G4HadronNucleonXsc::GetHadronNucleonXscNS(), G4GlauberGribovCrossSection::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4HadronNucleonXsc::GetHadronNucleonXscPDG(), G4GlauberGribovCrossSection::GetHadronNucleonXscPDG(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscPDG(), G4HadronNucleonXsc::GetHadronNucleonXscVU(), G4GlauberGribovCrossSection::GetHNinelasticXscVU(), G4GGNuclNuclCrossSection::GetHNinelasticXscVU(), G4ComponentGGNuclNuclXsc::GetHNinelasticXscVU(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXscVU(), G4IonsShenCrossSection::GetIsoCrossSection(), G4HadronNucleonXsc::GetKaonNucleonXscGG(), G4SynchrotronRadiation::GetMeanFreePath(), G4ReactionProduct::operator=(), G4PenelopeBremsstrahlungModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4MollerBhabhaModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4VPartonStringModel::Scatter(), and FCALSteppingAction::UserSteppingAction().

const G4ThreeVector& G4DynamicParticle::GetMomentumDirection ( ) const

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), G4ITTransportation::AlongStepGetPhysicalInteractionLength(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4DecayProducts::Boost(), G4ITTransportation::ComputeStep(), G4UnknownDecay::DecayIt(), G4Decay::DecayIt(), G4RadioactiveDecay::DecayIt(), G4SingleScatter::DoCollisionStep(), export_G4DynamicParticle(), G4PrimaryTransformer::GenerateSingleTrack(), G4SynchrotronRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4eplusPolarizedAnnihilation::GetMeanFreePath(), G4ePolarizedIonisation::GetMeanFreePath(), G4PolarizedCompton::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetPhotonEnergy(), G4ParticleChange::Initialize(), G4FastStep::Initialize(), G4DecayProducts::IsChecked(), G4HadronElasticProcess::PostStepDoIt(), G4LowEnergyRayleigh::PostStepDoIt(), G4LowEnergyCompton::PostStepDoIt(), G4LowEnergyGammaConversion::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4SynchrotronRadiation::PostStepDoIt(), G4LowEnergyPolarizedCompton::PostStepDoIt(), G4OpMieHG::PostStepDoIt(), G4ForwardXrayTR::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4VXTRenergyLoss::PostStepDoIt(), G4AnnihiToMuPair::PostStepDoIt(), G4GammaConversionToMuons::PostStepDoIt(), G4OpRayleigh::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), G4OpBoundaryProcess::PostStepDoIt(), G4ePolarizedIonisation::PostStepGetPhysicalInteractionLength(), G4eplusPolarizedAnnihilation::PostStepGetPhysicalInteractionLength(), G4PolarizedCompton::PostStepGetPhysicalInteractionLength(), G4AdjointComptonModel::RapidSampleSecondaries(), G4AdjointBremsstrahlungModel::RapidSampleSecondaries(), G4AdjointhIonisationModel::RapidSampleSecondaries(), G4PhotoElectricAngularGeneratorPolarized::SampleDirection(), G4DeltaAngleFreeScat::SampleDirection(), G4DipBustGenerator::SampleDirection(), G4PhotoElectricAngularGeneratorSimple::SampleDirection(), G4SauterGavrilaAngularDistribution::SampleDirection(), G4DeltaAngle::SampleDirection(), G4PhotoElectricAngularGeneratorSauterGavrila::SampleDirection(), G4AngleDirect::SampleDirection(), G4RayleighAngularGenerator::SampleDirection(), G4Generator2BN::SampleDirection(), G4PenelopeBremsstrahlungAngular::SampleDirection(), G4ModifiedTsai::SampleDirection(), G4Generator2BS::SampleDirection(), G4DNAScreenedRutherfordElasticModel::SampleSecondaries(), G4DNADingfelderChargeDecreaseModel::SampleSecondaries(), G4DNAChampionElasticModel::SampleSecondaries(), G4DNADingfelderChargeIncreaseModel::SampleSecondaries(), G4DNAEmfietzoglouExcitationModel::SampleSecondaries(), G4DNABornExcitationModel::SampleSecondaries(), MyKleinNishinaCompton::SampleSecondaries(), G4DNAMillerGreenExcitationModel::SampleSecondaries(), G4XrayRayleighModel::SampleSecondaries(), G4BoldyshevTripletModel::SampleSecondaries(), G4DNASancheExcitationModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermorePolarizedRayleighModel::SampleSecondaries(), G4AdjointComptonModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4AdjointeIonisationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4DNABornIonisationModel::SampleSecondaries(), G4LivermoreComptonModifiedModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4MicroElecElasticModel::SampleSecondaries(), G4AdjointBremsstrahlungModel::SampleSecondaries(), G4MuElecElasticModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4ePolarizedBremsstrahlungModel::SampleSecondaries(), G4PolarizedGammaConversionModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4AdjointPhotoElectricModel::SampleSecondaries(), G4LivermoreBremsstrahlungModel::SampleSecondaries(), G4PolarizedPEEffectModel::SampleSecondaries(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4SeltzerBergerModel::SampleSecondaries(), G4PenelopeAnnihilationModel::SampleSecondaries(), G4PenelopeGammaConversionModel::SampleSecondaries(), G4LivermoreIonisationModel::SampleSecondaries(), G4PenelopeRayleighModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4AdjointIonIonisationModel::SampleSecondaries(), G4AdjointhIonisationModel::SampleSecondaries(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4KleinNishinaCompton::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4MuElecInelasticModel::SampleSecondaries(), G4BetheHeitlerModel::SampleSecondaries(), G4PairProductionRelModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4eSingleCoulombScatteringModel::SampleSecondaries(), G4mplIonisationWithDeltaModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4eeToHadronsModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4eeToTwoGammaModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PenelopeBremsstrahlungModel::SampleSecondaries(), G4PAIModel::SampleSecondaries(), G4PenelopeIonisationModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4MollerBhabhaModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4MuBremsstrahlungModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4ICRU73QOModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4MuBetheBlochModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4IonParametrisedLossModel::SampleSecondaries(), HistoManager::ScoreNewTrack(), and G4PAIPhotonModel::TestSecondaries().

G4int G4DynamicParticle::GetOccupancy ( G4int  orbit) const
const G4ParticleDefinition* G4DynamicParticle::GetParticleDefinition ( ) const
G4int G4DynamicParticle::GetPDGcode ( ) const
const G4ThreeVector& G4DynamicParticle::GetPolarization ( ) const
const G4DecayProducts* G4DynamicParticle::GetPreAssignedDecayProducts ( ) const
G4double G4DynamicParticle::GetPreAssignedDecayProperTime ( ) const
G4PrimaryParticle* G4DynamicParticle::GetPrimaryParticle ( ) const
G4double G4DynamicParticle::GetProperTime ( ) const
G4double G4DynamicParticle::GetSpin ( ) const
G4double G4DynamicParticle::GetTotalEnergy ( ) const

Referenced by G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4LFission::ApplyYourself(), G4DecayProducts::Boost(), G4HadronicProcess::CheckResult(), G4PionDecayMakeSpin::DaughterPolarization(), G4UnknownDecay::DecayIt(), G4Decay::DecayIt(), export_G4DynamicParticle(), G4InuclParticle::getEnergy(), G4HadronNucleonXsc::GetHadronNucleonXscNS(), G4GlauberGribovCrossSection::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4HadronNucleonXsc::GetHadronNucleonXscVU(), G4GlauberGribovCrossSection::GetHNinelasticXscVU(), G4GGNuclNuclCrossSection::GetHNinelasticXscVU(), G4ComponentGGNuclNuclXsc::GetHNinelasticXscVU(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXscVU(), G4SynchrotronRadiation::GetMeanFreePath(), G4OpMieHG::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4OpRayleigh::GetMeanFreePath(), G4OpWLS::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetPhotonEnergy(), G4Pythia6Decayer::ImportDecayProducts(), G4DecayProducts::IsChecked(), G4ReactionProduct::operator=(), G4SmartTrackStack::PopFromStack(), G4SynchrotronRadiation::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), DMXMaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4MaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4SmartTrackStack::PushToStack(), G4AdjointBremsstrahlungModel::RapidSampleSecondaries(), G4DeltaAngleFreeScat::SampleDirection(), G4DeltaAngle::SampleDirection(), G4Generator2BN::SampleDirection(), G4Generator2BS::SampleDirection(), G4AdjointBremsstrahlungModel::SampleSecondaries(), and FCALSteppingAction::UserSteppingAction().

G4double G4DynamicParticle::GetTotalMomentum ( ) const

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4LFission::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4DecayProducts::Boost(), G4Track::CalculateVelocityForOpticalPhoton(), G4TauLeptonicDecayChannel::DecayIt(), G4MuonDecayChannelWithSpin::DecayIt(), G4MuonRadiativeDecayChannelWithSpin::DecayIt(), export_G4DynamicParticle(), G4ChargeExchangeProcess::GetElementCrossSection(), G4QuasiElasticChannel::GetFraction(), G4ChipsAntiBaryonInelasticXS::GetIsoCrossSection(), G4ChipsProtonElasticXS::GetIsoCrossSection(), G4ChipsProtonInelasticXS::GetIsoCrossSection(), G4ChipsHyperonElasticXS::GetIsoCrossSection(), G4ChipsHyperonInelasticXS::GetIsoCrossSection(), G4ChipsKaonPlusElasticXS::GetIsoCrossSection(), G4ChipsPionPlusElasticXS::GetIsoCrossSection(), G4ChipsKaonMinusElasticXS::GetIsoCrossSection(), G4ChipsAntiBaryonElasticXS::GetIsoCrossSection(), G4ChipsNeutronElasticXS::GetIsoCrossSection(), G4ChipsPionMinusElasticXS::GetIsoCrossSection(), G4ChipsPionMinusInelasticXS::GetIsoCrossSection(), G4ChipsKaonMinusInelasticXS::GetIsoCrossSection(), G4ChipsKaonPlusInelasticXS::GetIsoCrossSection(), G4ChipsNeutronInelasticXS::GetIsoCrossSection(), G4ChipsPionPlusInelasticXS::GetIsoCrossSection(), G4ChipsKaonZeroElasticXS::GetIsoCrossSection(), G4ChipsKaonZeroInelasticXS::GetIsoCrossSection(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4OpAbsorption::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4InuclParticle::getMomModule(), G4DecayProducts::IsChecked(), G4OpBoundaryProcess::PostStepDoIt(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), DMXMaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4MaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4AdjointComptonModel::RapidSampleSecondaries(), G4AdjointhIonisationModel::RapidSampleSecondaries(), G4DeltaAngleFreeScat::SampleDirection(), G4DeltaAngle::SampleDirection(), G4AdjointComptonModel::SampleSecondaries(), G4AdjointeIonisationModel::SampleSecondaries(), G4AdjointIonIonisationModel::SampleSecondaries(), G4AdjointhIonisationModel::SampleSecondaries(), G4MollerBhabhaModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4NuclNuclDiffuseElastic::ThetaLabToThetaCMS(), G4DiffuseElastic::ThetaLabToThetaCMS(), and FCALSteppingAction::UserSteppingAction().

G4int G4DynamicParticle::GetTotalOccupancy ( ) const
G4int G4DynamicParticle::GetVerboseLevel ( ) const
void G4DynamicParticle::operator delete ( void aDynamicParticle)
inline
void* G4DynamicParticle::operator new ( size_t  )
inline
G4int G4DynamicParticle::operator!= ( const G4DynamicParticle right) const

Definition at line 312 of file G4DynamicParticle.cc.

313 {
314  return (this != (G4DynamicParticle *) &right);
315 }
G4DynamicParticle & G4DynamicParticle::operator= ( const G4DynamicParticle right)

Definition at line 236 of file G4DynamicParticle.cc.

References theDynamicalCharge, theDynamicalMagneticMoment, theDynamicalMass, theDynamicalSpin, theElectronOccupancy, theKineticEnergy, theMomentumDirection, theParticleDefinition, thePDGcode, thePolarization, thePreAssignedDecayProducts, thePreAssignedDecayTime, theProperTime, and verboseLevel.

237 {
238  if (this != &right) {
244 
249 
251  if (right.theElectronOccupancy != 0){
254  } else {
256  }
257 
258  // thePreAssignedDecayProducts must not be copied.
261 
262  verboseLevel = right.verboseLevel;
263 
264  // Primary particle information must be preserved
265  //*** primaryParticle = right.primaryParticle;
266 
267  thePDGcode = right.thePDGcode;
268  }
269  return *this;
270 }
G4double theDynamicalMagneticMoment
G4ThreeVector theMomentumDirection
G4DecayProducts * thePreAssignedDecayProducts
G4ElectronOccupancy * theElectronOccupancy
G4double thePreAssignedDecayTime
G4ThreeVector thePolarization
const G4ParticleDefinition * theParticleDefinition
G4int G4DynamicParticle::operator== ( const G4DynamicParticle right) const

Definition at line 306 of file G4DynamicParticle.cc.

307 {
308  return (this == (G4DynamicParticle *) &right);
309 }
void G4DynamicParticle::RemoveElectron ( G4int  orbit,
G4int  number = 1 
)
void G4DynamicParticle::Set4Momentum ( const G4LorentzVector momentum)

Definition at line 353 of file G4DynamicParticle.cc.

References CLHEP::Hep3Vector::mag2(), SetKineticEnergy(), SetMomentumDirection(), CLHEP::HepLorentzVector::t(), theDynamicalMass, CLHEP::Hep3Vector::unit(), and CLHEP::HepLorentzVector::vect().

Referenced by G4BinaryLightIonReaction::ApplyYourself(), G4WilsonAbrasionModel::ApplyYourself(), G4EMDissociation::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4DecayProducts::Boost(), G4DalitzDecayChannel::DecayIt(), G4TauLeptonicDecayChannel::DecayIt(), G4MuonDecayChannelWithSpin::DecayIt(), G4NuclearDecayChannel::DecayIt(), G4MuonRadiativeDecayChannelWithSpin::DecayIt(), G4HadronicProcess::FillResult(), G4DynamicParticle(), G4InuclParticle::G4InuclParticle(), G4GeneralPhaseSpaceDecay::ManyBodyDecayIt(), G4eeToHadronsModel::SampleSecondaries(), G4VPartonStringModel::Scatter(), G4InuclParticle::setMomentum(), and G4ReactionKinematics::TwoBodyScattering().

354 {
355  G4double pModule2 = momentum.vect().mag2();
356  if (pModule2>0.0) {
357  SetMomentumDirection(momentum.vect().unit());
358  G4double totalenergy = momentum.t();
359  G4double mass2 = totalenergy*totalenergy - pModule2;
360  if(mass2 < EnergyMomentumRelationAllowance*EnergyMomentumRelationAllowance) {
361  theDynamicalMass = 0.;
362  SetKineticEnergy(totalenergy);
363  } else {
364  theDynamicalMass = std::sqrt(mass2);
365  SetKineticEnergy(totalenergy-theDynamicalMass);
366  }
367  } else {
368  SetMomentumDirection(1.0,0.0,0.0);
369  SetKineticEnergy(0.0);
370  }
371 }
void SetMomentumDirection(const G4ThreeVector &aDirection)
Hep3Vector vect() const
void SetKineticEnergy(G4double aEnergy)
Hep3Vector unit() const
double mag2() const
double G4double
Definition: G4Types.hh:76
void G4DynamicParticle::SetCharge ( G4double  charge)
void G4DynamicParticle::SetCharge ( G4int  chargeInUnitOfEplus)
void G4DynamicParticle::SetDefinition ( const G4ParticleDefinition aParticleDefinition)

Definition at line 273 of file G4DynamicParticle.cc.

References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMagneticMoment(), G4ParticleDefinition::GetPDGMass(), G4ParticleDefinition::GetPDGSpin(), theDynamicalCharge, theDynamicalMagneticMoment, theDynamicalMass, theDynamicalSpin, theElectronOccupancy, theParticleDefinition, thePreAssignedDecayProducts, and verboseLevel.

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4AdjointProcessEquivalentToDirectProcess::AlongStepDoIt(), G4ContinuousGainOfEnergy::AlongStepDoIt(), G4AdjointProcessEquivalentToDirectProcess::AlongStepGetPhysicalInteractionLength(), G4LightMedia::AntiLambdaExchange(), G4LightMedia::AntiNeutronExchange(), G4LightMedia::AntiOmegaMinusExchange(), G4LightMedia::AntiProtonExchange(), G4LightMedia::AntiSigmaMinusExchange(), G4LightMedia::AntiSigmaPlusExchange(), G4LightMedia::AntiXiMinusExchange(), G4LightMedia::AntiXiZeroExchange(), G4NeutronHPFSFissionFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4NeutronHPFissionBaseFS::ApplyYourself(), G4LENDModel::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LENDFission::ApplyYourself(), G4LEnp::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4AntiNeutronAnnihilationAtRest::AtRestDoIt(), G4MuonMinusCaptureAtRest::AtRestDoIt(), G4AdjointProcessEquivalentToDirectProcess::AtRestDoIt(), G4AdjointProcessEquivalentToDirectProcess::AtRestGetPhysicalInteractionLength(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPInelasticCompFS::CompositeApply(), G4ComponentGGNuclNuclXsc::ComputeQuasiElasticRatio(), G4HadronicProcessStore::FindProcess(), G4NeutronHPGamma::GetDecayGammas(), G4ComponentGGNuclNuclXsc::GetElasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElasticIsotopeCrossSection(), G4ComponentGGNuclNuclXsc::GetInelasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetInelasticIsotopeCrossSection(), G4NeutronHPFSFissionFS::GetPhotons(), G4ComponentGGNuclNuclXsc::GetTotalElementCrossSection(), G4ComponentGGNuclNuclXsc::GetTotalIsotopeCrossSection(), G4LightMedia::KaonPlusExchange(), G4LightMedia::KaonZeroLongExchange(), G4LightMedia::KaonZeroShortExchange(), G4LightMedia::LambdaExchange(), G4LightMedia::NeutronExchange(), G4LightMedia::OmegaMinusExchange(), G4LightMedia::PionPlusExchange(), G4AdjointProcessEquivalentToDirectProcess::PostStepDoIt(), G4LowEnergyIonisation::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), G4AdjointProcessEquivalentToDirectProcess::PostStepGetPhysicalInteractionLength(), G4LightMedia::ProtonExchange(), G4Nucleus::ReturnTargetParticle(), G4LivermoreIonisationModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4InuclParticle::setDefinition(), G4RPGInelastic::SetUpChange(), G4LightMedia::SigmaMinusExchange(), G4LightMedia::SigmaPlusExchange(), G4AdjointProcessEquivalentToDirectProcess::StartTracking(), G4PAIPhotonModel::TestSecondaries(), G4LightMedia::XiMinusExchange(), and G4LightMedia::XiZeroExchange().

274 {
275  // remove preassigned decay
276  if (thePreAssignedDecayProducts != 0) {
277 #ifdef G4VERBOSE
278  if (verboseLevel>0) {
279  G4cout << " G4DynamicParticle::SetDefinition()::"
280  << "!!! Pre-assigned decay products is attached !!!! " << G4endl;
281  G4cout << "!!! New Definition is " << aParticleDefinition->GetParticleName()
282  << " !!! " << G4endl;
283  G4cout << "!!! Pre-assigned decay products will be deleted !!!! " << G4endl;
284  }
285 #endif
287  }
289 
290  theParticleDefinition = aParticleDefinition;
291 
292  // set Dynamic mass/chrge
297 
298  // Set electron orbits
301  //AllocateElectronOccupancy();
302 
303 }
G4double theDynamicalMagneticMoment
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4DecayProducts * thePreAssignedDecayProducts
G4double GetPDGMass() const
G4ElectronOccupancy * theElectronOccupancy
G4double GetPDGSpin() const
#define G4endl
Definition: G4ios.hh:61
G4double GetPDGMagneticMoment() const
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGCharge() const
void G4DynamicParticle::SetKineticEnergy ( G4double  aEnergy)

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4ContinuousGainOfEnergy::AlongStepDoIt(), G4ChargeExchange::ApplyYourself(), G4LFission::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4EmCalculator::ComputeDEDX(), G4ComponentGGNuclNuclXsc::ComputeQuasiElasticRatio(), G4DynamicParticle(), G4HadronicProcessStore::GetCaptureCrossSectionPerAtom(), G4HadronicProcessStore::GetChargeExchangeCrossSectionPerAtom(), G4NeutronHPGamma::GetDecayGammas(), G4EmCalculator::GetDEDX(), G4HadronicProcessStore::GetElasticCrossSectionPerAtom(), G4ComponentGGNuclNuclXsc::GetElasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElasticIsotopeCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4HadronicProcessStore::GetFissionCrossSectionPerAtom(), G4HadronicProcessStore::GetInelasticCrossSectionPerAtom(), G4ComponentGGNuclNuclXsc::GetInelasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetInelasticIsotopeCrossSection(), G4ComponentGGNuclNuclXsc::GetTotalElementCrossSection(), G4ComponentGGNuclNuclXsc::GetTotalIsotopeCrossSection(), G4ComponentGGNuclNuclXsc::GetZandACrossSection(), G4LowEnergyIonisation::PostStepDoIt(), G4OpWLS::PostStepDoIt(), G4Cerenkov::PostStepDoIt(), G4Scintillation::PostStepDoIt(), G4hImpactIonisation::PostStepDoIt(), G4LivermoreIonisationModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), Set4Momentum(), G4InuclParticle::setKineticEnergy(), SetMomentum(), and G4PAIPhotonModel::TestSecondaries().

void G4DynamicParticle::SetMagneticMoment ( G4double  magneticMoment)
void G4DynamicParticle::SetMass ( G4double  mass)
void G4DynamicParticle::SetMomentum ( const G4ThreeVector momentum)

Definition at line 339 of file G4DynamicParticle.cc.

References CLHEP::Hep3Vector::mag2(), SetKineticEnergy(), SetMomentumDirection(), theDynamicalMass, and CLHEP::Hep3Vector::unit().

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4NeutronHPFSFissionFS::ApplyYourself(), G4NeutronHPFissionBaseFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4LENDModel::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LENDFission::ApplyYourself(), G4LEnp::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4AntiNeutronAnnihilationAtRest::AtRestDoIt(), G4MuonMinusCaptureAtRest::AtRestDoIt(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPInelasticCompFS::CompositeApply(), G4DynamicParticle(), G4NeutronHPFSFissionFS::GetPhotons(), G4InuclParticle::setMomentum(), and G4RPGInelastic::SetUpChange().

340 {
341  G4double pModule2 = momentum.mag2();
342  if (pModule2>0.0) {
343  G4double mass = theDynamicalMass;
344  SetMomentumDirection(momentum.unit());
345  SetKineticEnergy(std::sqrt(pModule2 + mass*mass)-mass);
346  } else {
347  SetMomentumDirection(1.0,0.0,0.0);
348  SetKineticEnergy(0.0);
349  }
350 }
void SetMomentumDirection(const G4ThreeVector &aDirection)
void SetKineticEnergy(G4double aEnergy)
Hep3Vector unit() const
double mag2() const
double G4double
Definition: G4Types.hh:76
void G4DynamicParticle::SetMomentumDirection ( const G4ThreeVector aDirection)
void G4DynamicParticle::SetMomentumDirection ( G4double  px,
G4double  py,
G4double  pz 
)
void G4DynamicParticle::SetPDGcode ( G4int  c)
void G4DynamicParticle::SetPolarization ( G4double  polX,
G4double  polY,
G4double  polZ 
)
void G4DynamicParticle::SetPreAssignedDecayProducts ( G4DecayProducts aDecayProducts)
void G4DynamicParticle::SetPreAssignedDecayProperTime ( G4double  )
void G4DynamicParticle::SetPrimaryParticle ( G4PrimaryParticle p)
void G4DynamicParticle::SetProperTime ( G4double  )
void G4DynamicParticle::SetSpin ( G4double  spin)
void G4DynamicParticle::SetSpin ( G4int  spinInUnitOfHalfInteger)
void G4DynamicParticle::SetVerboseLevel ( G4int  value)

Field Documentation

G4PrimaryParticle* G4DynamicParticle::primaryParticle
protected

Definition at line 251 of file G4DynamicParticle.hh.

G4double G4DynamicParticle::theDynamicalCharge
protected

Definition at line 227 of file G4DynamicParticle.hh.

Referenced by operator=(), and SetDefinition().

G4double G4DynamicParticle::theDynamicalMagneticMoment
protected

Definition at line 231 of file G4DynamicParticle.hh.

Referenced by operator=(), and SetDefinition().

G4double G4DynamicParticle::theDynamicalMass
protected
G4double G4DynamicParticle::theDynamicalSpin
protected

Definition at line 229 of file G4DynamicParticle.hh.

Referenced by operator=(), and SetDefinition().

G4ElectronOccupancy* G4DynamicParticle::theElectronOccupancy
protected
G4double G4DynamicParticle::theKineticEnergy
protected

Definition at line 221 of file G4DynamicParticle.hh.

Referenced by operator=().

G4ThreeVector G4DynamicParticle::theMomentumDirection
protected

Definition at line 213 of file G4DynamicParticle.hh.

Referenced by operator=().

const G4ParticleDefinition* G4DynamicParticle::theParticleDefinition
protected

Definition at line 216 of file G4DynamicParticle.hh.

Referenced by operator=(), and SetDefinition().

G4int G4DynamicParticle::thePDGcode
protected

Definition at line 274 of file G4DynamicParticle.hh.

Referenced by operator=().

G4ThreeVector G4DynamicParticle::thePolarization
protected

Definition at line 219 of file G4DynamicParticle.hh.

Referenced by operator=().

G4DecayProducts* G4DynamicParticle::thePreAssignedDecayProducts
protected

Definition at line 235 of file G4DynamicParticle.hh.

Referenced by operator=(), SetDefinition(), and ~G4DynamicParticle().

G4double G4DynamicParticle::thePreAssignedDecayTime
protected

Definition at line 237 of file G4DynamicParticle.hh.

Referenced by operator=().

G4double G4DynamicParticle::theProperTime
protected

Definition at line 223 of file G4DynamicParticle.hh.

Referenced by operator=().

G4int G4DynamicParticle::verboseLevel
protected

Definition at line 240 of file G4DynamicParticle.hh.

Referenced by operator=(), and SetDefinition().


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