8 #include <Reve/EventBase.h>
22 class Event : public Reve::EventBase
25 Event(const Event&); // Not implemented
26 Event& operator=(const Event&); // Not implemented
32 AliRunLoader* fRunLoader;
37 AliESDfriend* fESDfriend;
38 Bool_t fESDfriendExists;
40 TList fNewEventCommands;
42 static TString fgCdbUri;
43 static Bool_t fgAssertRunLoader;
44 static Bool_t fgAssertESDTree;
46 static AliMagF* fgMagField;
49 static void SetCdbUri(const Text_t* cdb) { if (cdb) fgCdbUri = cdb; }
50 static void SetAssertElements(Bool_t assertRunloader, Bool_t assertEsd)
51 { fgAssertRunLoader = assertRunloader; fgAssertESDTree = assertEsd; }
54 Event(TString path, Int_t ev=0);
57 void GotoEvent(Int_t event);
58 void NextEvent() { GotoEvent(fEventId + 1); }
59 void PrevEvent() { GotoEvent(fEventId - 1); }
62 virtual void AfterNewEventLoaded();
64 TList& GetNewEventCommands() { return fNewEventCommands; }
65 void AddNewEventCommand(const Text_t* cmd);
67 Int_t GetEventId() const { return fEventId; }
68 AliRunLoader* GetRunLoader() const { return fRunLoader; }
69 TTree* GetESDTree() const { return fESDTree; }
70 AliESD* GetESD() const { return fESD; }
71 AliESDfriend* GetESDfriend() const { return fESDfriend; }
72 Bool_t GetESDfriendExists() const { return fESDfriendExists; }
73 virtual const Text_t* GetTitle() const { return fPath.Data(); }
75 static AliRunLoader* AssertRunLoader();
76 static AliESD* AssertESD();
77 static AliESDfriend* AssertESDfriend();
79 static AliMagF* AssertMagField();
81 static TGeoManager* AssertGeometry();