4 // Class that defines actions at the beginning and the end of run.
6 #ifndef ALI_RUN_ACTION_H
7 #define ALI_RUN_ACTION_H
10 #include <G4UserRunAction.hh>
13 // in order to avoid the odd dependency for the
14 // times system function this declaration must be the first
16 class AliRunActionMessenger;
19 class AliRunAction : public G4UserRunAction
24 // AliRunAction(const AliRunAction& right);
25 virtual ~AliRunAction();
28 virtual void BeginOfRunAction(const G4Run* run);
29 virtual void EndOfRunAction(const G4Run* run);
32 void SetVerboseLevel(G4int level);
35 G4int GetVerboseLevel() const;
38 AliRunAction(const AliRunAction& right);
41 AliRunAction& operator=(const AliRunAction& right);
45 AliRunActionMessenger* fMessenger; //messenger
46 G4Timer* fTimer; //G4Timer
47 G4int fRunID; //run ID
48 G4int fVerboseLevel; //verbose level
53 inline void AliRunAction::SetVerboseLevel(G4int level)
54 { fVerboseLevel = level; }
56 inline G4int AliRunAction::GetVerboseLevel() const
57 { return fVerboseLevel; }
59 #endif //ALI_RUN_ACTION_H