Geant4  10.03
Par02TrackingAction Class Reference

Tracking action (before/after track processing). More...

#include <Par02TrackingAction.hh>

+ Inheritance diagram for Par02TrackingAction:
+ Collaboration diagram for Par02TrackingAction:

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 ()
 
virtual void SetTrackingManagerPointer (G4TrackingManager *pValue)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserTrackingAction
G4TrackingManagerfpTrackingManager
 

Detailed Description

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().

Author
Anna Zaborowska

Definition at line 43 of file Par02TrackingAction.hh.

Constructor & Destructor Documentation

Par02TrackingAction::Par02TrackingAction ( )

A default constructor.

Definition at line 48 of file Par02TrackingAction.cc.

Par02TrackingAction::~Par02TrackingAction ( )
virtual

Definition at line 52 of file Par02TrackingAction.cc.

Member Function Documentation

void Par02TrackingAction::PostUserTrackingAction ( const G4Track track)
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().

+ Here is the call graph for this function:

void Par02TrackingAction::PreUserTrackingAction ( const G4Track track)
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.

+ Here is the call graph for this function:


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