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 SimTrackManager;
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 = default;
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;
41  double eMinFine_;
42 };
43 
44 #endif
SimTrackManager * trackManager_
TrackWithHistory * currentTrackWithHistory()
const G4Track * g4Track_
G4TrackingManager * getTrackManager()
CMSSteppingVerbose * steppingVerbose_
TrackWithHistory * currentTrack_
const G4Track * geant4Track() const
TrackInformation * trkInfo_
TrackingAction(SimTrackManager *, CMSSteppingVerbose *, const edm::ParameterSet &ps)
bool saveCaloBoundaryInformation_
void PreUserTrackingAction(const G4Track *aTrack) override
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
~TrackingAction() override=default
void PostUserTrackingAction(const G4Track *aTrack) override
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal