4 // Class that defines actions at the beginning and the end of event.
6 #ifndef ALI_EVENT_ACTION_H
7 #define ALI_EVENT_ACTION_H
9 #include <G4UserEventAction.hh>
12 class AliEventActionMessenger;
16 class AliEventAction : public G4UserEventAction
21 // AliEventAction(const AliEventAction& right);
22 virtual ~AliEventAction();
25 virtual void BeginOfEventAction(const G4Event* event);
26 virtual void EndOfEventAction(const G4Event* event);
29 void SetVerboseLevel(G4int level);
30 void SetDrawFlag(G4String drawFlag);
33 G4int GetVerboseLevel() const;
34 G4String GetDrawFlag() const;
37 AliEventAction(const AliEventAction& right);
40 AliEventAction& operator=(const AliEventAction& right);
44 void DisplayEvent(const G4Event* event) const;
47 AliEventActionMessenger* fMessenger; //messenger
48 G4int fVerboseLevel; //verbose level
49 G4String fDrawFlag; //control drawing of the event
54 inline void AliEventAction::SetVerboseLevel(G4int level)
55 { fVerboseLevel = level; }
57 inline void AliEventAction::SetDrawFlag(G4String drawFlag)
58 { fDrawFlag = drawFlag; }
60 inline G4int AliEventAction::GetVerboseLevel() const
61 { return fVerboseLevel; }
63 inline G4String AliEventAction::GetDrawFlag() const
66 #endif //ALI_EVENT_ACTION_H