1 #ifndef ALIEVE_TRDLoader_H
2 #define ALIEVE_TRDLoader_H
4 ////////////////////////////////////////////////////////////////////////
5 // // - ALIEVE implementation -
6 // Loader for the TRD detector
7 // - TRDLoader - loader of TRD data (simulation + measured)
8 // - TRDLoaderEditor - UI
10 // by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006
11 ////////////////////////////////////////////////////////////////////////
13 #ifndef REVE_RenderElement_H
14 #include <Reve/RenderElement.h>
25 #ifndef ROOT_TGedFrame
26 #include <TGedFrame.h>
49 class TRDLoader : public Reve::RenderElementListBase, public TNamed
51 friend class TRDLoaderEditor;
53 TRDLoader(const Text_t* n="TRDLoader", const Text_t* t=0);
57 virtual void AddChambers(const int sm=-1, const int stk=-1, const int ly=-1);
58 virtual TRDChamber* GetChamber(const int d);
59 virtual Bool_t GoToEvent(const int ev);
60 virtual Bool_t LoadClusters(TTree *tC);
61 virtual Bool_t LoadDigits(TTree *tD);
62 virtual Bool_t LoadHits(TTree *tH);
63 virtual Bool_t LoadTracklets(TTree *tT);
64 virtual Bool_t Open(const char *file, const char *dir = ".");
65 virtual void Paint(Option_t *option="");
66 virtual void Unload();
69 Bool_t kLoadHits, kLoadDigits, kLoadClusters, kLoadTracks;
70 Int_t fSM, fStack, fLy; // supermodule, stack, layer
71 TString fFilename; // name of data file
72 TString fDir; // data directory
73 Int_t fEvent; // current event to be displayed
76 AliTRDv1 *fTRD; // the TRD detector
77 AliTRDgeometry *fGeo; // the TRD geometry
78 AliRunLoader *fRunLoader; // Run Loader
80 ClassDef(TRDLoader, 1) // Alieve Loader class for the TRD detector
85 class TRDLoaderEditor : public TGedFrame
88 TRDLoaderEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
91 virtual void AddChambers();
92 virtual void FileOpen();
94 virtual void SetModel(TObject* obj);
100 Reve::RGValuator *fEvent;
102 Reve::RGValuator *fSMNumber, *fStackNumber, *fPlaneNumber;
103 TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks;
105 ClassDef(TRDLoaderEditor,1) // Editor for TRDLoader