CMS 3D CMS Logo

BeginOfEvent.h
Go to the documentation of this file.
1 #ifndef SimG4Core_BeginOfEvent_H
2 #define SimG4Core_BeginOfEvent_H
3 
4 #include "G4Event.hh"
5 
6 class BeginOfEvent {
7 public:
8  BeginOfEvent(const G4Event* tEvent) : anEvent(tEvent) {}
9  const G4Event* operator()() const { return anEvent; }
10 
11 private:
12  const G4Event* anEvent;
13 };
14 
15 #endif
BeginOfEvent::BeginOfEvent
BeginOfEvent(const G4Event *tEvent)
Definition: BeginOfEvent.h:8
BeginOfEvent::anEvent
const G4Event * anEvent
Definition: BeginOfEvent.h:12
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfEvent::operator()
const G4Event * operator()() const
Definition: BeginOfEvent.h:9