4 // Author: I. Hrivnacova
6 // Class AliEventAction
7 // --------------------
8 // Class that defines actions at the beginning and the end of event.
10 #ifndef ALI_EVENT_ACTION_H
11 #define ALI_EVENT_ACTION_H
13 #include "AliVerbose.h"
14 #include "AliEventActionMessenger.h"
16 #include <G4UserEventAction.hh>
20 // in order to avoid the odd dependency for the
21 // times system function this declaration must be the first
24 class AliEventAction : public G4UserEventAction,
30 // AliEventAction(const AliEventAction& right);
31 virtual ~AliEventAction();
34 virtual void BeginOfEventAction(const G4Event* event);
35 virtual void EndOfEventAction(const G4Event* event);
38 void SetDrawFlag(G4String drawFlag);
41 G4String GetDrawFlag() const;
44 AliEventAction(const AliEventAction& right);
47 AliEventAction& operator=(const AliEventAction& right);
51 void DisplayEvent(const G4Event* event) const;
54 AliEventActionMessenger fMessenger; //messenger
55 G4Timer* fTimer; //G4Timer
56 G4String fDrawFlag; //control drawing of the event
61 inline void AliEventAction::SetDrawFlag(G4String drawFlag)
62 { fDrawFlag = drawFlag; }
64 inline G4String AliEventAction::GetDrawFlag() const
67 #endif //ALI_EVENT_ACTION_H