CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 "CLHEP/Vector/LorentzVector.h"
15 #include "CLHEP/Vector/ThreeVector.h"
16 
17 #include <vector>
18 #include <map>
19 
20 class RunManager;
21 class BeginOfEvent;
22 class EndOfEvent;
23 
24 class EventAction: public G4UserEventAction
25 {
26 public:
27 
29  RunManager*,
31  ~EventAction();
32 
33  void BeginOfEventAction(const G4Event * evt);
34  void EndOfEventAction(const G4Event * evt);
35 
36  void abortEvent();
37 
38  const TrackContainer * trackContainer() const {
40  }
41  void addTrack(TrackWithHistory* iTrack, bool inHistory, bool withAncestor);
42  void addTkCaloStateInfo(uint32_t t,const std::pair<math::XYZVectorD,math::XYZTLorentzVectorD>& p);
44 
47 
48 private:
49  //does not own the manager
53  bool m_debug;
54 };
55 
56 #endif
57 
58 
59 
std::string m_stopFile
Definition: EventAction.h:52
RunManager * m_runManager
Definition: EventAction.h:50
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
Definition: EventAction.h:46
void EndOfEventAction(const G4Event *evt)
Definition: EventAction.cc:42
void prepareForNewPrimary()
Definition: EventAction.h:43
void BeginOfEventAction(const G4Event *evt)
Definition: EventAction.cc:26
const TrackContainer * trackContainer() const
std::vector< TrackWithHistory * > TrackContainer
Definition: TrackContainer.h:8
void cleanTracksWithHistory()
EventAction(const edm::ParameterSet &ps, RunManager *, SimTrackManager *)
Definition: EventAction.cc:13
const TrackContainer * trackContainer() const
Definition: EventAction.h:38
SimTrackManager * m_trackManager
Definition: EventAction.h:51
bool m_debug
Definition: EventAction.h:53
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
Definition: EventAction.cc:75
void abortEvent()
Definition: EventAction.cc:81
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
Definition: EventAction.cc:70
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal
Definition: EventAction.h:45