#ifndef ExR05EventAction_h #define ExR05EventAction_h 1 #include "G4UserEventAction.hh" class G4Event; class RecorderBase; class ExR05EventAction : public G4UserEventAction { public: // If the constructor is called with a RecordBase arguement, // then we'll perform some record keeping in UserEventAction. ExR05EventAction(RecorderBase* r = 0); ~ExR05EventAction(); public: void BeginOfEventAction(const G4Event*); void EndOfEventAction(const G4Event*); private: // Save the RecorderBase object to be called by the UserEventAction. RecorderBase * recorder; }; #endif