CMS 3D CMS Logo

TrackingAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_TrackingAction_H
2 #define SimG4Core_TrackingAction_H
3 
7 
8 #include "G4UserTrackingAction.hh"
9 
10 class EventAction;
11 class TrackWithHistory;
12 class BeginOfTrack;
13 class EndOfTrack;
14 class CMSSteppingVerbose;
15 
16 class TrackingAction : public G4UserTrackingAction {
17 public:
19  ~TrackingAction() override;
20 
21  void PreUserTrackingAction(const G4Track* aTrack) override;
22  void PostUserTrackingAction(const G4Track* aTrack) override;
23 
25  inline const G4Track* geant4Track() const { return g4Track_; }
26  inline G4TrackingManager* getTrackManager() { return fpTrackingManager; }
27 
30 
31 private:
36  const G4Track* g4Track_;
38 };
39 
40 #endif
TrackingAction::currentTrackWithHistory
TrackWithHistory * currentTrackWithHistory()
Definition: TrackingAction.h:24
EventAction
Definition: EventAction.h:23
TrackingAction::TrackingAction
TrackingAction(EventAction *ea, const edm::ParameterSet &ps, CMSSteppingVerbose *)
Definition: TrackingAction.cc:18
TrackingAction::~TrackingAction
~TrackingAction() override
Definition: TrackingAction.cc:25
TrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *aTrack) override
Definition: TrackingAction.cc:43
TrackWithHistory
Definition: TrackWithHistory.h:16
TrackingAction::g4Track_
const G4Track * g4Track_
Definition: TrackingAction.h:36
CMSSteppingVerbose
Definition: CMSSteppingVerbose.h:25
TrackingAction::extractor_
TrackInformationExtractor extractor_
Definition: TrackingAction.h:32
TrackingAction::geant4Track
const G4Track * geant4Track() const
Definition: TrackingAction.h:25
EndOfTrack
Definition: EndOfTrack.h:6
SimActivityRegistry.h
TrackingAction
Definition: TrackingAction.h:16
TrackingAction::currentTrack_
TrackWithHistory * currentTrack_
Definition: TrackingAction.h:34
TrackInformationExtractor
Definition: TrackInformationExtractor.h:20
TrackingAction::m_endOfTrackSignal
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
Definition: TrackingAction.h:29
BeginOfTrack
Definition: BeginOfTrack.h:6
sim_act::Signaler< BeginOfTrack >
TrackingAction::getTrackManager
G4TrackingManager * getTrackManager()
Definition: TrackingAction.h:26
edm::ParameterSet
Definition: ParameterSet.h:47
TrackingAction::eventAction_
EventAction * eventAction_
Definition: TrackingAction.h:33
TrackingAction::m_beginOfTrackSignal
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal
Definition: TrackingAction.h:28
ParameterSet.h
TrackInformationExtractor.h
TrackingAction::checkTrack_
bool checkTrack_
Definition: TrackingAction.h:37
TrackingAction::steppingVerbose_
CMSSteppingVerbose * steppingVerbose_
Definition: TrackingAction.h:35
TrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *aTrack) override
Definition: TrackingAction.cc:27