Geant4
10.02.p02
|
Tracking action (before/after track processing). More...
#include <Par02TrackingAction.hh>
Public Member Functions | |
Par02TrackingAction () | |
A default constructor. More... | |
virtual | ~Par02TrackingAction () |
virtual void | PreUserTrackingAction (const G4Track *track) |
Defines the actions at the start of processing the track. It checks the pseudorapidity range and if the particle is a primary. More... | |
virtual void | PostUserTrackingAction (const G4Track *track) |
Defines the actions at the end of processing the track. It saves the information of MC data (PDG code, initial momentum), tracker (momentum), EMCal and HCal (energy deposit and its position) as well as resolution and efficiency for all the detectors. More... | |
Public Member Functions inherited from G4UserTrackingAction | |
G4UserTrackingAction () | |
virtual | ~G4UserTrackingAction () |
void | SetTrackingManagerPointer (G4TrackingManager *pValue) |
Additional Inherited Members | |
Protected Attributes inherited from G4UserTrackingAction | |
G4TrackingManager * | fpTrackingManager |
Tracking action (before/after track processing).
Defines the action at the start and at the end of processing of each track. The class needs to be set in G4RunManager::SetUserAction().
Definition at line 43 of file Par02TrackingAction.hh.
Par02TrackingAction::Par02TrackingAction | ( | ) |
A default constructor.
Definition at line 48 of file Par02TrackingAction.cc.
|
virtual |
Definition at line 52 of file Par02TrackingAction.cc.
|
virtual |
Defines the actions at the end of processing the track. It saves the information of MC data (PDG code, initial momentum), tracker (momentum), EMCal and HCal (energy deposit and its position) as well as resolution and efficiency for all the detectors.
Reimplemented from G4UserTrackingAction.
Definition at line 67 of file Par02TrackingAction.cc.
References Par02Output::eSaveEMCal, Par02Output::eSaveHCal, Par02Output::eSaveMC, Par02Output::eSaveTracker, fStopAndKill, G4Track::GetDynamicParticle(), Par02PrimaryParticleInformation::GetEMCalEfficiency(), Par02PrimaryParticleInformation::GetEMCalEnergy(), Par02PrimaryParticleInformation::GetEMCalPosition(), Par02PrimaryParticleInformation::GetEMCalResolution(), Par02PrimaryParticleInformation::GetHCalEfficiency(), Par02PrimaryParticleInformation::GetHCalEnergy(), Par02PrimaryParticleInformation::GetHCalPosition(), Par02PrimaryParticleInformation::GetHCalResolution(), Par02PrimaryParticleInformation::GetMCMomentum(), G4Track::GetParentID(), Par02PrimaryParticleInformation::GetPartID(), Par02PrimaryParticleInformation::GetPDG(), G4DynamicParticle::GetPrimaryParticle(), Par02PrimaryParticleInformation::GetTrackerEfficiency(), Par02PrimaryParticleInformation::GetTrackerMomentum(), Par02PrimaryParticleInformation::GetTrackerResolution(), G4Track::GetTrackStatus(), G4PrimaryParticle::GetUserInformation(), Par02Output::Instance(), MeV, mm, and Par02Output::SaveTrack().
|
virtual |
Defines the actions at the start of processing the track. It checks the pseudorapidity range and if the particle is a primary.
Reimplemented from G4UserTrackingAction.
Definition at line 56 of file Par02TrackingAction.cc.
References fStopAndKill, G4Track::GetMomentum(), and MeV.