1 #ifndef ALIEVE_TOFSector_H
2 #define ALIEVE_TOFSector_H
4 #include <Reve/QuadSet.h>
5 #include <Reve/RenderElement.h>
7 #include <Reve/RGBAPalette.h>
8 #include <Reve/FrameBox.h>
10 #include <TGeoManager.h>
11 #include <TClonesArray.h>
14 #include <AliTOFGeometry.h>
15 #include <AliTOFGeometryV5.h>
19 class TOFSector : public Reve::QuadSet
22 TOFSector(const TOFSector&); // Not implemented
23 TOFSector& operator=(const TOFSector&); // Not implemented
32 AliTOFGeometry *fTOFgeometry;
34 TClonesArray *fTOFarray;
44 ///////////////////////////////
63 TGeoManager *fGeoManager;
68 virtual void InitModule();
69 virtual void SetTrans();
70 TOFSector(const Text_t* n="TOFSector", const Text_t* t=0);
71 TOFSector(TGeoManager *localGeoManager, Int_t nSector);
73 TOFSector(TGeoManager *localGeoManager, Int_t nSector,
74 TClonesArray *tofArray);
75 TOFSector(TGeoManager *localGeoManager,
76 Int_t nSector, TTree *tofTree);
80 static Bool_t fgStaticInitDone;
81 static void InitStatics();
82 void SetSectorID(Int_t id);
83 void SetAutoTrans(Bool_t r){fAutoTrans=r;};
84 void SetThreshold(Short_t t);
85 void SetMaxVal(Int_t mv);
86 Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
87 Short_t GetThreshold() const {return fThreshold;};
88 Int_t GetMaxVal() const {return fMaxVal;};
89 Bool_t GetAutoTrans() const {return fAutoTrans;};
90 Int_t GetSectorID() const {return fSectorID;};
91 virtual void QuadSelected(Int_t idx);
92 ///////////////////////////////////////////
94 void SetPlate(Int_t nPlate, Bool_t r);
96 static Reve::FrameBox* fgTOFsectorFrameBox;
98 static Reve::RGBAPalette* fgTOFsectorPalette;
100 ClassDef(TOFSector, 1);