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;
45 class AliEveTRDLoader : public TEveElementList
47 friend class AliEveTRDLoaderEditor;
49 AliEveTRDLoader(const Text_t* n="AliEveTRDLoader", const Text_t* t=0x0);
51 virtual void Paint(Option_t *option="");
52 virtual void SetDataType(TRDDataTypes type);
54 virtual void AddChambers(int sm=-1, int stk=-1, int ly=-1);
55 virtual AliEveTRDChamber* GetChamber(int d);
56 virtual Bool_t GoToEvent(int ev);
57 virtual Bool_t LoadClusters(TTree *tC);
58 virtual Bool_t LoadDigits(TTree *tD);
59 virtual Bool_t LoadTracklets(TTree *tT);
60 virtual Bool_t Open(const char *file, const char *dir = ".");
61 virtual void Unload();
64 Bool_t kLoadHits, kLoadDigits, kLoadClusters, kLoadTracks;
65 Int_t fSM, fStack, fLy; // supermodule, stack, layer
66 TString fFilename; // name of data file
67 TString fDir; // data directory
68 Int_t fEvent; // current event to be displayed
71 AliTRDv1 *fTRD; // the TRD detector
72 AliTRDgeometry *fGeo; // the TRD geometry
74 ClassDef(AliEveTRDLoader, 1) // Alieve Loader class for the TRD detector
79 class AliEveTRDLoaderEditor : public TGedFrame
82 AliEveTRDLoaderEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
83 ~AliEveTRDLoaderEditor();
85 virtual void AddChambers();
86 virtual void FileOpen();
88 virtual void SetEvent(Double_t ev){fM->fEvent = (Int_t)ev;}
89 virtual void SetModel(TObject* obj);
94 TEveGValuator *fEvent;
95 TEveGValuator *fSMNumber, *fStackNumber, *fPlaneNumber;
97 ClassDef(AliEveTRDLoaderEditor,1) // Editor for AliEveTRDLoader