CMS 3D CMS Logo

EventAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_EventAction_H
2 #define SimG4Core_EventAction_H
3 
5 
11 
12 #include "G4UserEventAction.hh"
13 
14 #include <vector>
15 #include <map>
16 #include <string>
17 
18 class SimRunInterface;
19 class BeginOfEvent;
20 class EndOfEvent;
21 class CMSSteppingVerbose;
22 
23 class EventAction : public G4UserEventAction {
24 public:
26  ~EventAction() override;
27 
28  void BeginOfEventAction(const G4Event* evt) override;
29  void EndOfEventAction(const G4Event* evt) override;
30 
31  void abortEvent();
32 
33  inline const TrackContainer* trackContainer() const { return m_trackManager->trackContainer(); }
34 
35  inline void addTrack(TrackWithHistory* iTrack, bool inHistory, bool withAncestor) {
36  m_trackManager->addTrack(iTrack, inHistory, withAncestor);
37  }
38 
39  void addTkCaloStateInfo(uint32_t t, const std::pair<math::XYZVectorD, math::XYZTLorentzVectorD>& p);
40 
42 
45 
46 private:
52  bool m_debug;
53 };
54 
55 #endif
SimTrackManager
Definition: SimTrackManager.h:35
EventAction::~EventAction
~EventAction() override
Definition: EventAction.cc:27
EventAction::trackContainer
const TrackContainer * trackContainer() const
Definition: EventAction.h:33
EventAction
Definition: EventAction.h:23
EventAction::m_beginOfEventSignal
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal
Definition: EventAction.h:43
EventAction::m_endOfEventSignal
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
Definition: EventAction.h:44
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
EventAction::BeginOfEventAction
void BeginOfEventAction(const G4Event *evt) override
Definition: EventAction.cc:29
TrackWithHistory
Definition: TrackWithHistory.h:16
EventAction::prepareForNewPrimary
void prepareForNewPrimary()
Definition: EventAction.h:41
EventAction::m_runInterface
SimRunInterface * m_runInterface
Definition: EventAction.h:47
CMSSteppingVerbose
Definition: CMSSteppingVerbose.h:25
SimActivityRegistry.h
EventAction::m_printRandom
bool m_printRandom
Definition: EventAction.h:51
OrderedSet.t
t
Definition: OrderedSet.py:90
EndOfEvent
Definition: EndOfEvent.h:6
sim_act::Signaler< BeginOfEvent >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
EventAction::m_SteppingVerbose
CMSSteppingVerbose * m_SteppingVerbose
Definition: EventAction.h:49
SimTrackManager::addTrack
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
Definition: SimTrackManager.h:63
G4SimEvent.h
SimTrackManager::cleanTracksWithHistory
void cleanTracksWithHistory()
Definition: SimTrackManager.cc:291
BeginOfEvent
Definition: BeginOfEvent.h:6
EventAction::abortEvent
void abortEvent()
Definition: EventAction.cc:76
EventAction::m_debug
bool m_debug
Definition: EventAction.h:52
EventAction::EndOfEventAction
void EndOfEventAction(const G4Event *evt) override
Definition: EventAction.cc:45
TrackContainer
std::vector< TrackWithHistory * > TrackContainer
Definition: TrackContainer.h:8
EventAction::m_trackManager
SimTrackManager * m_trackManager
Definition: EventAction.h:48
EventAction::addTkCaloStateInfo
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
Definition: EventAction.cc:72
SimTrackManager.h
EventAction::EventAction
EventAction(const edm::ParameterSet &ps, SimRunInterface *, SimTrackManager *, CMSSteppingVerbose *)
Definition: EventAction.cc:14
EventAction::m_stopFile
std::string m_stopFile
Definition: EventAction.h:50
ParameterSet.h
TrackContainer.h
EventAction::addTrack
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
Definition: EventAction.h:35
SimTrackManager::trackContainer
const TrackContainer * trackContainer() const
Definition: SimTrackManager.h:52
TrackWithHistory.h
SimRunInterface
Definition: SimRunInterface.h:18