CMS 3D CMS Logo

TrackingAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_TrackingAction_H
2 #define SimG4Core_TrackingAction_H
3 
6 
7 #include "G4UserTrackingAction.hh"
8 
9 class EventAction;
10 class TrackWithHistory;
11 class BeginOfTrack;
12 class EndOfTrack;
13 class CMSSteppingVerbose;
14 class TrackInformation;
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:
34  const G4Track* g4Track_ = nullptr;
40  double eMinFine_;
41 };
42 
43 #endif
TrackWithHistory * currentTrackWithHistory()
const G4Track * g4Track_
G4TrackingManager * getTrackManager()
CMSSteppingVerbose * steppingVerbose_
TrackWithHistory * currentTrack_
const G4Track * geant4Track() const
TrackInformation * trkInfo_
~TrackingAction() override
EventAction * eventAction_
TrackingAction(EventAction *ea, const edm::ParameterSet &ps, CMSSteppingVerbose *)
bool saveCaloBoundaryInformation_
void PreUserTrackingAction(const G4Track *aTrack) override
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
void PostUserTrackingAction(const G4Track *aTrack) override
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal