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 SimRunInterface;
21 class BeginOfEvent;
22 class EndOfEvent;
23 
24 class EventAction: public G4UserEventAction
25 {
26 public:
27 
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
54  bool m_debug;
55 };
56 
57 #endif
58 
59 
60 
std::string m_stopFile
Definition: EventAction.h:52
tuple t
Definition: tree.py:139
SimRunInterface * m_runInterface
Definition: EventAction.h:50
EventAction(const edm::ParameterSet &ps, SimRunInterface *, SimTrackManager *)
Definition: EventAction.cc:16
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
Definition: EventAction.h:46
void EndOfEventAction(const G4Event *evt)
Definition: EventAction.cc:48
bool m_printRandom
Definition: EventAction.h:53
void prepareForNewPrimary()
Definition: EventAction.h:43
void BeginOfEventAction(const G4Event *evt)
Definition: EventAction.cc:30
const TrackContainer * trackContainer() const
std::vector< TrackWithHistory * > TrackContainer
Definition: TrackContainer.h:8
void cleanTracksWithHistory()
const TrackContainer * trackContainer() const
Definition: EventAction.h:38
SimTrackManager * m_trackManager
Definition: EventAction.h:51
bool m_debug
Definition: EventAction.h:54
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
Definition: EventAction.cc:90
void abortEvent()
Definition: EventAction.cc:96
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
Definition: EventAction.cc:84
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal
Definition: EventAction.h:45