Geant4  10.01.p01
G4PrimaryTransformer Class Reference

#include <G4PrimaryTransformer.hh>

+ Collaboration diagram for G4PrimaryTransformer:

Public Member Functions

 G4PrimaryTransformer ()
 
virtual ~G4PrimaryTransformer ()
 
G4TrackVectorGimmePrimaries (G4Event *anEvent, G4int trackIDCounter=0)
 
void CheckUnknown ()
 
void SetVerboseLevel (G4int vl)
 
void SetUnknnownParticleDefined (G4bool vl)
 
G4bool GetUnknownParticleDefined () const
 

Protected Member Functions

void GenerateTracks (G4PrimaryVertex *primaryVertex)
 
void GenerateSingleTrack (G4PrimaryParticle *primaryParticle, G4double x0, G4double y0, G4double z0, G4double t0, G4double wv)
 
void SetDecayProducts (G4PrimaryParticle *mother, G4DynamicParticle *motherDP)
 
G4bool CheckDynamicParticle (G4DynamicParticle *DP)
 
virtual G4ParticleDefinitionGetDefinition (G4PrimaryParticle *pp)
 
virtual G4bool IsGoodForTrack (G4ParticleDefinition *pd)
 

Protected Attributes

G4TrackVector TV
 
G4ParticleTableparticleTable
 
G4int verboseLevel
 
G4int trackID
 
G4ParticleDefinitionunknown
 
G4bool unknownParticleDefined
 
G4ParticleDefinitionopticalphoton
 
G4bool opticalphotonDefined
 
G4int nWarn
 

Detailed Description

Definition at line 47 of file G4PrimaryTransformer.hh.

Constructor & Destructor Documentation

G4PrimaryTransformer::G4PrimaryTransformer ( )

Definition at line 43 of file G4PrimaryTransformer.cc.

References CheckUnknown(), G4ParticleTable::GetParticleTable(), and particleTable.

+ Here is the call graph for this function:

G4PrimaryTransformer::~G4PrimaryTransformer ( )
virtual

Definition at line 53 of file G4PrimaryTransformer.cc.

Member Function Documentation

G4bool G4PrimaryTransformer::CheckDynamicParticle ( G4DynamicParticle DP)
protected

Definition at line 305 of file G4PrimaryTransformer.cc.

References G4DecayProducts::entries(), G4cerr, G4endl, G4Exception(), G4DynamicParticle::GetDefinition(), G4DynamicParticle::GetPreAssignedDecayProducts(), IsGoodForTrack(), and JustWarning.

+ Here is the call graph for this function:

void G4PrimaryTransformer::CheckUnknown ( )

Definition at line 56 of file G4PrimaryTransformer.cc.

References G4ParticleTable::FindParticle(), opticalphoton, opticalphotonDefined, particleTable, unknown, and unknownParticleDefined.

Referenced by G4PrimaryTransformer(), and G4RunManagerKernel::RunInitialization().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryTransformer::GenerateSingleTrack ( G4PrimaryParticle primaryParticle,
G4double  x0,
G4double  y0,
G4double  z0,
G4double  t0,
G4double  wv 
)
protected
void G4PrimaryTransformer::GenerateTracks ( G4PrimaryVertex primaryVertex)
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(), and verboseLevel.

Referenced by GimmePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ParticleDefinition * G4PrimaryTransformer::GetDefinition ( G4PrimaryParticle pp)
protectedvirtual

Definition at line 318 of file G4PrimaryTransformer.cc.

References G4ParticleTable::FindParticle(), G4PrimaryParticle::GetG4code(), G4PrimaryParticle::GetPDGcode(), G4ParticleDefinition::IsShortLived(), particleTable, unknown, and unknownParticleDefined.

+ Here is the call graph for this function:

G4bool G4PrimaryTransformer::GetUnknownParticleDefined ( ) const
inline

Definition at line 78 of file G4PrimaryTransformer.hh.

References unknownParticleDefined.

G4TrackVector * G4PrimaryTransformer::GimmePrimaries ( G4Event anEvent,
G4int  trackIDCounter = 0 
)

Definition at line 70 of file G4PrimaryTransformer.cc.

References GenerateTracks(), G4PrimaryVertex::GetNext(), G4Event::GetPrimaryVertex(), trackID, and TV.

Referenced by G4EventManager::DoProcessing().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PrimaryTransformer::IsGoodForTrack ( G4ParticleDefinition pd)
protectedvirtual

Definition at line 326 of file G4PrimaryTransformer.cc.

References G4ParticleDefinition::GetDecayTable(), and G4ParticleDefinition::IsShortLived().

Referenced by CheckDynamicParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryTransformer::SetUnknnownParticleDefined ( G4bool  vl)

Definition at line 295 of file G4PrimaryTransformer.cc.

References G4cerr, G4endl, unknown, and unknownParticleDefined.

void G4PrimaryTransformer::SetVerboseLevel ( G4int  vl)
inline

Definition at line 70 of file G4PrimaryTransformer.hh.

Referenced by G4EventManager::SetVerboseLevel().

+ Here is the caller graph for this function:

Member Data Documentation

G4int G4PrimaryTransformer::nWarn
protected

Definition at line 67 of file G4PrimaryTransformer.hh.

G4ParticleDefinition* G4PrimaryTransformer::opticalphoton
protected

Definition at line 64 of file G4PrimaryTransformer.hh.

Referenced by CheckUnknown().

G4bool G4PrimaryTransformer::opticalphotonDefined
protected

Definition at line 65 of file G4PrimaryTransformer.hh.

Referenced by CheckUnknown().

G4ParticleTable* G4PrimaryTransformer::particleTable
protected

Definition at line 58 of file G4PrimaryTransformer.hh.

Referenced by CheckUnknown(), G4PrimaryTransformer(), and GetDefinition().

G4int G4PrimaryTransformer::trackID
protected

Definition at line 60 of file G4PrimaryTransformer.hh.

Referenced by GimmePrimaries().

G4TrackVector G4PrimaryTransformer::TV
protected

Definition at line 57 of file G4PrimaryTransformer.hh.

Referenced by GimmePrimaries().

G4ParticleDefinition* G4PrimaryTransformer::unknown
protected

Definition at line 62 of file G4PrimaryTransformer.hh.

Referenced by CheckUnknown(), GetDefinition(), and SetUnknnownParticleDefined().

G4bool G4PrimaryTransformer::unknownParticleDefined
protected
G4int G4PrimaryTransformer::verboseLevel
protected

Definition at line 59 of file G4PrimaryTransformer.hh.

Referenced by GenerateTracks().


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