4 // Author: I. Hrivnacova
8 // Class that defines actions at the beginning and the end of run.
10 #ifndef ALI_RUN_ACTION_H
11 #define ALI_RUN_ACTION_H
13 #include "AliRunActionMessenger.h"
15 #include <G4UserRunAction.hh>
19 // in order to avoid the odd dependency for the
20 // times system function this declaration must be the first
22 class AliSDConstruction;
25 class AliRunAction : public G4UserRunAction
30 // AliRunAction(const AliRunAction& right);
31 virtual ~AliRunAction();
34 virtual void BeginOfRunAction(const G4Run* run);
35 virtual void EndOfRunAction(const G4Run* run);
38 void SetVerboseLevel(G4int level);
41 G4int GetVerboseLevel() const;
44 AliRunAction(const AliRunAction& right);
47 AliRunAction& operator=(const AliRunAction& right);
51 AliSDConstruction* GetSDConstruction() const;
54 AliRunActionMessenger fMessenger; //messenger
55 G4Timer* fTimer; //G4Timer
56 G4int fRunID; //run ID
57 G4int fVerboseLevel; //verbose level
62 inline void AliRunAction::SetVerboseLevel(G4int level)
63 { fVerboseLevel = level; }
65 inline G4int AliRunAction::GetVerboseLevel() const
66 { return fVerboseLevel; }
68 #endif //ALI_RUN_ACTION_H