8 #include <Reve/EventBase.h>
21 class Event : public Reve::EventBase
24 Event(const Event&); // Not implemented
25 Event& operator=(const Event&); // Not implemented
31 AliRunLoader* fRunLoader;
36 AliESDfriend* fESDfriend;
37 Bool_t fESDfriendExists;
39 TList fNewEventCommands;
41 static Bool_t fgUseRunLoader;
42 static Bool_t fgUseESDTree;
43 static Bool_t fgAvoidExcOnOpen;
45 static AliMagF* fgMagField;
48 static void Initialize(Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
49 Bool_t avoid_exc_on_open=kTRUE);
52 Event(TString path, Int_t ev=0);
55 void GotoEvent(Int_t event);
56 void NextEvent() { GotoEvent(fEventId + 1); }
57 void PrevEvent() { GotoEvent(fEventId - 1); }
60 virtual void AfterNewEventLoaded();
62 TList& GetNewEventCommands() { return fNewEventCommands; }
63 void AddNewEventCommand(const Text_t* cmd);
65 Int_t GetEventId() const { return fEventId; }
66 AliRunLoader* GetRunLoader() const { return fRunLoader; }
67 TTree* GetESDTree() const { return fESDTree; }
68 AliESD* GetESD() const { return fESD; }
69 AliESDfriend* GetESDfriend() const { return fESDfriend; }
70 Bool_t GetESDfriendExists() const { return fESDfriendExists; }
71 virtual const Text_t* GetTitle() const { return fPath.Data(); }
73 static AliRunLoader* AssertRunLoader();
74 static AliESD* AssertESD();
75 static AliESDfriend* AssertESDfriend();
77 static AliMagF* AssertMagField();