]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: run | |
3 | // | |
4 | // Class that defines actions at the beginning and the end of run. | |
5 | ||
6 | #ifndef ALI_RUN_ACTION_H | |
7 | #define ALI_RUN_ACTION_H | |
8 | ||
9 | #include <globals.hh> | |
10 | #include <G4UserRunAction.hh> | |
11 | ||
12 | class G4Timer; | |
13 | // in order to avoid the odd dependency for the | |
14 | // times system function this declaration must be the first | |
15 | ||
16 | class AliRunActionMessenger; | |
17 | class G4Run; | |
18 | ||
19 | class AliRunAction : public G4UserRunAction | |
20 | { | |
21 | public: | |
22 | AliRunAction(); | |
23 | // --> protected | |
24 | // AliRunAction(const AliRunAction& right); | |
25 | virtual ~AliRunAction(); | |
26 | ||
27 | // methods | |
28 | virtual void BeginOfRunAction(const G4Run* run); | |
29 | virtual void EndOfRunAction(const G4Run* run); | |
30 | ||
31 | // set methods | |
32 | void SetVerboseLevel(G4int level); | |
33 | ||
34 | // get methods | |
35 | G4int GetVerboseLevel() const; | |
36 | ||
37 | protected: | |
38 | AliRunAction(const AliRunAction& right); | |
39 | ||
40 | // operators | |
41 | AliRunAction& operator=(const AliRunAction& right); | |
42 | ||
43 | private: | |
44 | // data members | |
45 | AliRunActionMessenger* fMessenger; //messenger | |
46 | G4Timer* fTimer; //G4Timer | |
47 | G4int fRunID; //run ID | |
48 | G4int fVerboseLevel; //verbose level | |
49 | }; | |
50 | ||
51 | // inline methods | |
52 | ||
53 | inline void AliRunAction::SetVerboseLevel(G4int level) | |
54 | { fVerboseLevel = level; } | |
55 | ||
56 | inline G4int AliRunAction::GetVerboseLevel() const | |
57 | { return fVerboseLevel; } | |
58 | ||
59 | #endif //ALI_RUN_ACTION_H | |
60 |