1 #ifndef ALIEVE_TRDLoader_H
2 #define ALIEVE_TRDLoader_H
4 ////////////////////////////////////////////////////////////////////////
5 // // - ALIEVE implementation -
6 // Loader for the TRD detector - base class
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>
21 #ifndef ROOT_TGedFrame
22 #include <TGedFrame.h>
37 class TRDLoaderManager;
46 class TRDLoader : public Reve::RenderElementList
48 friend class TRDLoaderEditor;
50 TRDLoader(const Text_t* n="TRDLoader", const Text_t* t=0x0);
52 virtual void Paint(Option_t *option="");
53 virtual void SetDataType(TRDDataTypes type);
55 virtual void AddChambers(int sm=-1, int stk=-1, int ly=-1);
56 virtual TRDChamber* GetChamber(int d);
57 virtual Bool_t GoToEvent(int ev);
58 virtual Bool_t LoadClusters(TTree *tC);
59 virtual Bool_t LoadDigits(TTree *tD);
60 virtual Bool_t LoadTracklets(TTree *tT);
61 virtual Bool_t Open(const char *file, const char *dir = ".");
62 virtual void Unload();
65 Bool_t kLoadHits, kLoadDigits, kLoadClusters, kLoadTracks;
66 Int_t fSM, fStack, fLy; // supermodule, stack, layer
67 TString fFilename; // name of data file
68 TString fDir; // data directory
69 Int_t fEvent; // current event to be displayed
72 AliTRDv1 *fTRD; // the TRD detector
73 AliTRDgeometry *fGeo; // the TRD geometry
75 ClassDef(TRDLoader, 1) // Alieve Loader class for the TRD detector
80 class TRDLoaderEditor : public TGedFrame
83 TRDLoaderEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
86 virtual void AddChambers();
87 virtual void FileOpen();
89 virtual void SetEvent(Double_t ev){fM->fEvent = (Int_t)ev;}
90 virtual void SetModel(TObject* obj);
95 Reve::RGValuator *fEvent;
96 Reve::RGValuator *fSMNumber, *fStackNumber, *fPlaneNumber;
98 ClassDef(TRDLoaderEditor,1) // Editor for TRDLoader