]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/AliEventAction.h
Incorporated latest changes in AliLevel3 class.
[u/mrichter/AliRoot.git] / AliGeant4 / AliEventAction.h
CommitLineData
676fb573 1// $Id$
2// Category: event
3//
7005154f 4// Author: I. Hrivnacova
5//
6// Class AliEventAction
7// --------------------
676fb573 8// Class that defines actions at the beginning and the end of event.
9
10#ifndef ALI_EVENT_ACTION_H
11#define ALI_EVENT_ACTION_H
12
297e1c5f 13#include "AliVerbose.h"
7005154f 14#include "AliEventActionMessenger.h"
15
676fb573 16#include <G4UserEventAction.hh>
17#include <globals.hh>
18
ddfc4566 19class G4Timer;
20 // in order to avoid the odd dependency for the
21 // times system function this declaration must be the first
676fb573 22class G4Event;
23
297e1c5f 24class AliEventAction : public G4UserEventAction,
25 public AliVerbose
676fb573 26{
27 public:
28 AliEventAction();
29 // --> protected
30 // AliEventAction(const AliEventAction& right);
31 virtual ~AliEventAction();
32
33 // methods
34 virtual void BeginOfEventAction(const G4Event* event);
35 virtual void EndOfEventAction(const G4Event* event);
36
37 // set methods
676fb573 38 void SetDrawFlag(G4String drawFlag);
39
40 // get methods
676fb573 41 G4String GetDrawFlag() const;
42
43 protected:
44 AliEventAction(const AliEventAction& right);
45
46 // operators
47 AliEventAction& operator=(const AliEventAction& right);
48
49 private:
50 // methods
51 void DisplayEvent(const G4Event* event) const;
52
53 // data members
7005154f 54 AliEventActionMessenger fMessenger; //messenger
ddfc4566 55 G4Timer* fTimer; //G4Timer
676fb573 56 G4String fDrawFlag; //control drawing of the event
57};
58
59// inline methods
60
676fb573 61inline void AliEventAction::SetDrawFlag(G4String drawFlag)
62{ fDrawFlag = drawFlag; }
63
676fb573 64inline G4String AliEventAction::GetDrawFlag() const
65{ return fDrawFlag; }
66
67#endif //ALI_EVENT_ACTION_H
68
69