// $Id$ // Category: event // // Author: I. Hrivnacova // // Class AliEventAction // -------------------- // Class that defines actions at the beginning and the end of event. #ifndef ALI_EVENT_ACTION_H #define ALI_EVENT_ACTION_H #include "AliEventActionMessenger.h" #include #include class G4Timer; // in order to avoid the odd dependency for the // times system function this declaration must be the first class G4Event; class AliEventAction : public G4UserEventAction { public: AliEventAction(); // --> protected // AliEventAction(const AliEventAction& right); virtual ~AliEventAction(); // methods virtual void BeginOfEventAction(const G4Event* event); virtual void EndOfEventAction(const G4Event* event); // set methods void SetVerboseLevel(G4int level); void SetDrawFlag(G4String drawFlag); // get methods G4int GetVerboseLevel() const; G4String GetDrawFlag() const; protected: AliEventAction(const AliEventAction& right); // operators AliEventAction& operator=(const AliEventAction& right); private: // methods void DisplayEvent(const G4Event* event) const; // data members AliEventActionMessenger fMessenger; //messenger G4Timer* fTimer; //G4Timer G4int fVerboseLevel; //verbose level G4String fDrawFlag; //control drawing of the event }; // inline methods inline void AliEventAction::SetVerboseLevel(G4int level) { fVerboseLevel = level; } inline void AliEventAction::SetDrawFlag(G4String drawFlag) { fDrawFlag = drawFlag; } inline G4int AliEventAction::GetVerboseLevel() const { return fVerboseLevel; } inline G4String AliEventAction::GetDrawFlag() const { return fDrawFlag; } #endif //ALI_EVENT_ACTION_H