]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliRunAction.h
fDirs moved to AliHBTReader
[u/mrichter/AliRoot.git] / AliGeant4 / AliRunAction.h
1 // $Id$
2 // Category: run
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class AliRunAction
7 // ------------------
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
13 #include "AliVerbose.h"
14
15 #include <G4UserRunAction.hh>
16 #include <globals.hh>
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
22 class AliSDConstruction;
23 class G4Run;
24
25 class AliRunAction : public G4UserRunAction,
26                      public AliVerbose
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
38   protected:
39     AliRunAction(const AliRunAction& right);
40
41     // operators
42     AliRunAction& operator=(const AliRunAction& right);
43
44   private:
45     // methods
46     AliSDConstruction* GetSDConstruction() const;
47
48     // data members
49     G4Timer*  fTimer; //G4Timer
50     G4int     fRunID; //run ID
51 };
52
53 #endif //ALI_RUN_ACTION_H
54