Geant4-11
|
#include <G4PrimaryTransformer.hh>
Public Member Functions | |
void | CheckUnknown () |
G4PrimaryTransformer () | |
G4bool | GetUnknownParticleDefined () const |
G4TrackVector * | GimmePrimaries (G4Event *anEvent, G4int trackIDCounter=0) |
void | SetUnknnownParticleDefined (G4bool vl) |
void | SetVerboseLevel (G4int vl) |
virtual | ~G4PrimaryTransformer () |
Protected Member Functions | |
G4bool | CheckDynamicParticle (G4DynamicParticle *DP) |
void | GenerateSingleTrack (G4PrimaryParticle *primaryParticle, G4double x0, G4double y0, G4double z0, G4double t0, G4double wv) |
void | GenerateTracks (G4PrimaryVertex *primaryVertex) |
virtual G4ParticleDefinition * | GetDefinition (G4PrimaryParticle *pp) |
virtual G4bool | IsGoodForTrack (G4ParticleDefinition *pd) |
void | SetDecayProducts (G4PrimaryParticle *mother, G4DynamicParticle *motherDP) |
Protected Attributes | |
G4int | nWarn = 0 |
G4ParticleDefinition * | opticalphoton = nullptr |
G4bool | opticalphotonDefined = false |
G4ParticleTable * | particleTable = nullptr |
G4int | trackID = 0 |
G4TrackVector | TV |
G4ParticleDefinition * | unknown = nullptr |
G4bool | unknownParticleDefined = false |
G4int | verboseLevel = 0 |
Definition at line 47 of file G4PrimaryTransformer.hh.
G4PrimaryTransformer::G4PrimaryTransformer | ( | ) |
Definition at line 44 of file G4PrimaryTransformer.cc.
References CheckUnknown(), G4ParticleTable::GetParticleTable(), and particleTable.
|
virtual |
Definition at line 50 of file G4PrimaryTransformer.cc.
|
protected |
Definition at line 353 of file G4PrimaryTransformer.cc.
References G4DecayProducts::entries(), G4cerr, G4endl, G4Exception(), G4DynamicParticle::GetDefinition(), G4DynamicParticle::GetPreAssignedDecayProducts(), IsGoodForTrack(), and JustWarning.
Referenced by GenerateSingleTrack(), and SetDecayProducts().
void G4PrimaryTransformer::CheckUnknown | ( | ) |
Definition at line 54 of file G4PrimaryTransformer.cc.
References G4ParticleTable::FindParticle(), opticalphoton, opticalphotonDefined, particleTable, unknown, and unknownParticleDefined.
Referenced by G4PrimaryTransformer(), and G4RunManagerKernel::RunInitialization().
|
protected |
Definition at line 118 of file G4PrimaryTransformer.cc.
References G4DynamicParticle::AddElectron(), angle, CheckDynamicParticle(), CLHEP::Hep3Vector::cross(), DBL_MAX, deg, eplus, G4cerr, G4cout, G4endl, G4Exception(), G4UniformRand, GenerateSingleTrack(), G4ParticleDefinition::GetAtomicNumber(), G4PrimaryParticle::GetCharge(), G4PrimaryParticle::GetDaughter(), GetDefinition(), G4PrimaryParticle::GetKineticEnergy(), G4PrimaryParticle::GetMass(), G4PrimaryParticle::GetMomentum(), G4DynamicParticle::GetMomentumDirection(), G4PrimaryParticle::GetMomentumDirection(), G4PrimaryParticle::GetNext(), G4ParticleDefinition::GetParticleName(), G4PrimaryParticle::GetPDGcode(), G4ParticleDefinition::GetPDGEncoding(), G4PrimaryParticle::GetPolarization(), G4PrimaryParticle::GetPolX(), G4PrimaryParticle::GetPolY(), G4PrimaryParticle::GetPolZ(), G4PrimaryParticle::GetProperTime(), G4PrimaryParticle::GetWeight(), IsGoodForTrack(), JustWarning, CLHEP::Hep3Vector::mag2(), CLHEP::normal(), nWarn, opticalphoton, opticalphotonDefined, G4DynamicParticle::SetCharge(), SetDecayProducts(), G4DynamicParticle::SetMass(), G4Track::SetParentID(), G4DynamicParticle::SetPDGcode(), G4DynamicParticle::SetPolarization(), G4DynamicParticle::SetPreAssignedDecayProperTime(), G4DynamicParticle::SetPrimaryParticle(), G4Track::SetTrackID(), G4PrimaryParticle::SetTrackID(), G4Track::SetWeight(), trackID, TV, verboseLevel, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), CLHEP::Hep3Vector::z(), and G4InuclParticleNames::z0.
Referenced by GenerateSingleTrack(), and GenerateTracks().
|
protected |
Definition at line 87 of file G4PrimaryTransformer.cc.
References G4cout, G4endl, GenerateSingleTrack(), G4PrimaryParticle::GetNext(), G4PrimaryVertex::GetPrimary(), G4PrimaryVertex::GetT0(), G4PrimaryVertex::GetWeight(), G4PrimaryVertex::GetX0(), G4PrimaryVertex::GetY0(), G4PrimaryVertex::GetZ0(), mm, nanosecond, G4PrimaryVertex::Print(), T0, and verboseLevel.
Referenced by GimmePrimaries().
|
protectedvirtual |
Definition at line 370 of file G4PrimaryTransformer.cc.
References G4ParticleTable::FindParticle(), G4ParticleDefinition::IsShortLived(), particleTable, G4InuclParticleNames::pp, unknown, and unknownParticleDefined.
Referenced by GenerateSingleTrack(), and SetDecayProducts().
|
inline |
G4TrackVector * G4PrimaryTransformer::GimmePrimaries | ( | G4Event * | anEvent, |
G4int | trackIDCounter = 0 |
||
) |
Definition at line 69 of file G4PrimaryTransformer.cc.
References GenerateTracks(), G4PrimaryVertex::GetNext(), G4Event::GetPrimaryVertex(), trackID, and TV.
Referenced by G4EventManager::DoProcessing().
|
protectedvirtual |
Definition at line 384 of file G4PrimaryTransformer.cc.
References G4ParticleDefinition::GetDecayTable(), and G4ParticleDefinition::IsShortLived().
Referenced by CheckDynamicParticle(), GenerateSingleTrack(), and SetDecayProducts().
|
protected |
Definition at line 262 of file G4PrimaryTransformer.cc.
References CheckDynamicParticle(), DBL_MAX, G4cout, G4endl, G4PrimaryParticle::GetCharge(), G4PrimaryParticle::GetDaughter(), GetDefinition(), G4PrimaryParticle::GetMass(), G4PrimaryParticle::GetMomentum(), G4PrimaryParticle::GetNext(), G4ParticleDefinition::GetParticleName(), G4PrimaryParticle::GetPDGcode(), G4PrimaryParticle::GetPolX(), G4PrimaryParticle::GetPolY(), G4PrimaryParticle::GetPolZ(), G4DynamicParticle::GetPreAssignedDecayProducts(), G4PrimaryParticle::GetProperTime(), IsGoodForTrack(), G4DecayProducts::PushProducts(), G4DynamicParticle::SetCharge(), SetDecayProducts(), G4DynamicParticle::SetMass(), G4DynamicParticle::SetPolarization(), G4DynamicParticle::SetPreAssignedDecayProducts(), G4DynamicParticle::SetPreAssignedDecayProperTime(), G4DynamicParticle::SetPrimaryParticle(), and verboseLevel.
Referenced by GenerateSingleTrack(), and SetDecayProducts().
void G4PrimaryTransformer::SetUnknnownParticleDefined | ( | G4bool | vl | ) |
Definition at line 341 of file G4PrimaryTransformer.cc.
References G4cerr, G4endl, unknown, and unknownParticleDefined.
|
inline |
Definition at line 57 of file G4PrimaryTransformer.hh.
References verboseLevel.
Referenced by G4EventManager::SetVerboseLevel().
|
protected |
Definition at line 101 of file G4PrimaryTransformer.hh.
Referenced by GenerateSingleTrack().
|
protected |
Definition at line 98 of file G4PrimaryTransformer.hh.
Referenced by CheckUnknown(), and GenerateSingleTrack().
|
protected |
Definition at line 103 of file G4PrimaryTransformer.hh.
Referenced by CheckUnknown(), and GenerateSingleTrack().
|
protected |
Definition at line 95 of file G4PrimaryTransformer.hh.
Referenced by CheckUnknown(), G4PrimaryTransformer(), and GetDefinition().
|
protected |
Definition at line 100 of file G4PrimaryTransformer.hh.
Referenced by GenerateSingleTrack(), and GimmePrimaries().
|
protected |
Definition at line 94 of file G4PrimaryTransformer.hh.
Referenced by GenerateSingleTrack(), and GimmePrimaries().
|
protected |
Definition at line 97 of file G4PrimaryTransformer.hh.
Referenced by CheckUnknown(), GetDefinition(), and SetUnknnownParticleDefined().
|
protected |
Definition at line 102 of file G4PrimaryTransformer.hh.
Referenced by CheckUnknown(), GetDefinition(), GetUnknownParticleDefined(), and SetUnknnownParticleDefined().
|
protected |
Definition at line 99 of file G4PrimaryTransformer.hh.
Referenced by GenerateSingleTrack(), GenerateTracks(), SetDecayProducts(), and SetVerboseLevel().