2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
9 #ifndef ALIEVE_TRDLoader_H
10 #define ALIEVE_TRDLoader_H
12 ////////////////////////////////////////////////////////////////////////
13 // // - ALIEVE implementation -
14 // Loader for the TRD detector - base class
15 // - AliEveTRDLoader - loader of TRD data (simulation + measured)
16 // - AliEveTRDLoaderEditor - UI
18 // by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006
19 ////////////////////////////////////////////////////////////////////////
21 #include <TEveElement.h>
22 #include <TGedFrame.h>
35 class AliEveTRDChamber;
36 class AliEveTRDLoaderManager;
38 class AliEveTRDLoader : public TEveElementList
40 friend class AliEveTRDLoaderEditor;
43 AliEveTRDLoader(const AliEveTRDLoader&); // Not implemented
44 AliEveTRDLoader& operator=(const AliEveTRDLoader&); // Not implemented
57 AliEveTRDLoader(const Text_t* n="AliEveTRDLoader", const Text_t* t=0);
59 virtual void Paint(Option_t *option="");
60 virtual void SetDataType(TRDDataTypes type);
63 virtual void AddChambers(int sm=-1, int stk=-1, int ly=-1);
64 virtual AliEveTRDChamber* GetChamber(int d);
65 virtual Bool_t GoToEvent(int ev);
66 virtual Bool_t LoadClusters(TTree *tC);
67 virtual Bool_t LoadDigits(TTree *tD);
68 virtual Bool_t LoadTracklets(TTree *tT);
69 virtual Bool_t Open(const char *file, const char *dir = ".");
70 virtual void Unload();
73 Bool_t fLoadHits, fLoadDigits, fLoadClusters, fLoadTracks; // flags for data-loading
74 Int_t fSM, fStack, fLy; // supermodule, stack, layer
75 TString fFilename; // name of data file
76 TString fDir; // data directory
77 Int_t fEvent; // current event to be displayed
80 AliTRDv1 *fTRD; // the TRD detector
81 AliTRDgeometry *fGeo; // the TRD geometry
83 ClassDef(AliEveTRDLoader, 1); // Alieve Loader class for the TRD detector
87 class AliEveTRDLoaderEditor : public TGedFrame
90 AliEveTRDLoaderEditor(const AliEveTRDLoaderEditor&); // Not implemented
91 AliEveTRDLoaderEditor& operator=(const AliEveTRDLoaderEditor&); // Not implemented
94 AliEveTRDLoaderEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
95 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
96 ~AliEveTRDLoaderEditor();
98 virtual void AddChambers();
99 virtual void FileOpen();
101 virtual void SetEvent(Double_t ev){fM->fEvent = (Int_t)ev;}
102 virtual void SetModel(TObject* obj);
107 TEveGValuator *fEvent;
108 TEveGValuator *fSMNumber, *fStackNumber, *fPlaneNumber;
110 ClassDef(AliEveTRDLoaderEditor,1); // Editor for AliEveTRDLoader