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
9 #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;
17 class AliSDConstruction;
20 class AliRunAction : public G4UserRunAction
25 // AliRunAction(const AliRunAction& right);
26 virtual ~AliRunAction();
29 virtual void BeginOfRunAction(const G4Run* run);
30 virtual void EndOfRunAction(const G4Run* run);
33 void SetVerboseLevel(G4int level);
36 G4int GetVerboseLevel() const;
39 AliRunAction(const AliRunAction& right);
42 AliRunAction& operator=(const AliRunAction& right);
46 AliSDConstruction* GetSDConstruction() const;
49 AliRunActionMessenger* fMessenger; //messenger
50 G4Timer* fTimer; //G4Timer
51 G4int fRunID; //run ID
52 G4int fVerboseLevel; //verbose level
57 inline void AliRunAction::SetVerboseLevel(G4int level)
58 { fVerboseLevel = level; }
60 inline G4int AliRunAction::GetVerboseLevel() const
61 { return fVerboseLevel; }
63 #endif //ALI_RUN_ACTION_H