]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/AliRunAction.h
AliPrimaryGeneratorAction update commented
[u/mrichter/AliRoot.git] / AliGeant4 / AliRunAction.h
CommitLineData
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
676fb573 9#include <G4UserRunAction.hh>
c97337f9 10#include <globals.hh>
676fb573 11
12class G4Timer;
13 // in order to avoid the odd dependency for the
14 // times system function this declaration must be the first
15
16class AliRunActionMessenger;
17class G4Run;
18
19class 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
53inline void AliRunAction::SetVerboseLevel(G4int level)
54{ fVerboseLevel = level; }
55
56inline G4int AliRunAction::GetVerboseLevel() const
57{ return fVerboseLevel; }
58
59#endif //ALI_RUN_ACTION_H
60