]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliEventAction.h
corrected includes from g4std
[u/mrichter/AliRoot.git] / AliGeant4 / AliEventAction.h
1 // $Id$
2 // Category: event
3 //
4 // Class that defines actions at the beginning and the end of event.
5
6 #ifndef ALI_EVENT_ACTION_H
7 #define ALI_EVENT_ACTION_H 
8
9 #include <G4UserEventAction.hh>
10 #include <globals.hh>
11
12 class AliEventActionMessenger;
13
14 class G4Event;
15
16 class AliEventAction : public G4UserEventAction
17 {
18   public:
19     AliEventAction();
20     // --> protected
21     // AliEventAction(const AliEventAction& right);
22     virtual ~AliEventAction();
23     
24     // methods
25     virtual void BeginOfEventAction(const G4Event* event);
26     virtual void EndOfEventAction(const G4Event* event);
27     
28     // set methods
29     void SetVerboseLevel(G4int level);
30     void SetDrawFlag(G4String drawFlag);
31     
32     // get methods
33     G4int GetVerboseLevel() const;
34     G4String GetDrawFlag() const;
35     
36   protected:
37     AliEventAction(const AliEventAction& right);
38
39     // operators
40     AliEventAction& operator=(const AliEventAction& right);
41
42   private:
43     // methods 
44     void DisplayEvent(const G4Event* event) const;
45   
46     // data members
47     AliEventActionMessenger*  fMessenger;    //messenger
48     G4int                     fVerboseLevel; //verbose level
49     G4String                  fDrawFlag;     //control drawing of the event
50 };
51
52 // inline methods
53
54 inline void AliEventAction::SetVerboseLevel(G4int level)
55 { fVerboseLevel = level; }
56
57 inline void AliEventAction::SetDrawFlag(G4String drawFlag)
58 { fDrawFlag = drawFlag; }
59
60 inline G4int AliEventAction::GetVerboseLevel() const
61 { return fVerboseLevel; }
62
63 inline G4String AliEventAction::GetDrawFlag() const
64 { return fDrawFlag; }
65
66 #endif //ALI_EVENT_ACTION_H
67
68