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