6 #include <Reve/EventBase.h>
17 class Event : public Reve::EventBase
20 Event(const Event&); // Not implemented
21 Event& operator=(const Event&); // Not implemented
27 AliRunLoader* fRunLoader;
32 TFile* fESDfriendFile;
33 TTree* fESDfriendTree;
34 AliESDfriend* fESDfriend;
36 static Bool_t fgUseRunLoader;
37 static Bool_t fgUseESDTree;
38 static Bool_t fgAvoidExcOnOpen;
41 static void Initialize(Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
42 Bool_t avoid_exc_on_open=kTRUE);
45 Event(TString path, Int_t ev=0);
48 void GotoEvent(Int_t event);
49 void NextEvent() { GotoEvent(fEventId + 1); }
50 void PrevEvent() { GotoEvent(fEventId - 1); }
53 Int_t GetEventId() const { return fEventId; }
54 AliRunLoader* GetRunLoader() const { return fRunLoader; }
55 TTree* GetESDTree() const { return fESDTree; }
56 AliESD* GetESD() const { return fESD; }
57 TTree* GetESDfriendTree() const { return fESDfriendTree; }
58 AliESDfriend* GetESDfriend() const { return fESDfriend; }
60 virtual const Text_t* GetTitle() const { return fPath.Data(); }
62 static AliRunLoader* AssertRunLoader();
63 static AliESD* AssertESD();
64 static AliESDfriend* AssertESDfriend();