]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/EventAlieve.h
Fix effc++ warnings.
[u/mrichter/AliRoot.git] / EVE / Alieve / EventAlieve.h
1 // $Header$
2
3 #ifndef ALIEVE_Event_H
4 #define ALIEVE_Event_H
5
6 #include <Reve/EventBase.h>
7
8 class AliRunLoader;
9 class AliESD;
10 class AliESDfriend;
11
12 class TFile;
13 class TTree;
14
15 namespace Alieve {
16
17 class Event : public Reve::EventBase
18 {
19 private:
20   Event(const Event&);            // Not implemented
21   Event& operator=(const Event&); // Not implemented
22
23 protected:
24   TString       fPath;
25   Int_t         fEventId;
26
27   AliRunLoader* fRunLoader;
28
29   TFile*        fESDFile;
30   TTree*        fESDTree;
31   AliESD*       fESD;
32   TFile*        fESDfriendFile;
33   TTree*        fESDfriendTree;
34   AliESDfriend* fESDfriend;
35
36   static Bool_t fgUseRunLoader;
37   static Bool_t fgUseESDTree;
38
39 public:
40   static void Initialize(Bool_t use_runloader=true, Bool_t use_esd=true);
41
42   Event();
43   Event(TString path, Int_t ev=0);
44
45   void Open();
46   void GotoEvent(Int_t event);
47   void NextEvent() { GotoEvent(fEventId + 1); }
48   void PrevEvent() { GotoEvent(fEventId - 1); }
49   void Close();
50
51   Int_t         GetEventId()   const { return fEventId; }
52   AliRunLoader* GetRunLoader() const { return fRunLoader; }
53   TTree*        GetESDTree()   const { return fESDTree; }
54   AliESD*       GetESD()       const { return fESD; }
55   TTree*        GetESDfriendTree() const { return fESDfriendTree; }
56   AliESDfriend* GetESDfriend()     const { return fESDfriend; }
57
58   virtual const Text_t* GetTitle() const { return fPath.Data(); }
59
60   static AliRunLoader* AssertRunLoader();
61   static AliESD*       AssertESD();
62   static AliESDfriend* AssertESDfriend();
63
64   ClassDef(Event, 1);
65 }; // endclass Event
66
67 extern Event* gEvent;
68
69 }
70
71 #endif