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 AliESDfriend* fESDfriend;
33 Bool_t fESDfriendExists;
35 TList fNewEventCommands;
37 static Bool_t fgUseRunLoader;
38 static Bool_t fgUseESDTree;
39 static Bool_t fgAvoidExcOnOpen;
42 static void Initialize(Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
43 Bool_t avoid_exc_on_open=kTRUE);
46 Event(TString path, Int_t ev=0);
49 void GotoEvent(Int_t event);
50 void NextEvent() { GotoEvent(fEventId + 1); }
51 void PrevEvent() { GotoEvent(fEventId - 1); }
54 virtual void AfterNewEventLoaded();
56 TList& GetNewEventCommands() { return fNewEventCommands; }
57 void AddNewEventCommand(const Text_t* cmd);
59 Int_t GetEventId() const { return fEventId; }
60 AliRunLoader* GetRunLoader() const { return fRunLoader; }
61 TTree* GetESDTree() const { return fESDTree; }
62 AliESD* GetESD() const { return fESD; }
63 AliESDfriend* GetESDfriend() const { return fESDfriend; }
64 Bool_t GetESDfriendExists() const { return fESDfriendExists; }
65 virtual const Text_t* GetTitle() const { return fPath.Data(); }
67 static AliRunLoader* AssertRunLoader();
68 static AliESD* AssertESD();
69 static AliESDfriend* AssertESDfriend();