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>
18 class TOFSector : public Reve::QuadSet
21 TOFSector(const TOFSector&); // Not implemented
22 TOFSector& operator=(const TOFSector&); // Not implemented
31 AliTOFGeometry *fTOFgeometry;
33 TClonesArray *fTOFarray;
43 ///////////////////////////////
62 TGeoManager *fGeoManager;
67 virtual void InitModule();
68 virtual void SetTrans();
69 TOFSector(const Text_t* n="TOFSector", const Text_t* t=0);
70 TOFSector(TGeoManager *localGeoManager, Int_t nSector);
72 TOFSector(TGeoManager *localGeoManager, Int_t nSector,
73 TClonesArray *tofArray);
74 TOFSector(TGeoManager *localGeoManager,
75 Int_t nSector, TTree *tofTree);
78 static Bool_t fgStaticInitDone;
79 static void InitStatics();
81 void SetSectorID(Int_t id);
82 void SetAutoTrans(Bool_t r){fAutoTrans=r;};
83 void SetThreshold(Short_t t);
84 void SetMaxVal(Int_t mv);
85 Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
86 Short_t GetThreshold() const {return fThreshold;};
87 Int_t GetMaxVal() const {return fMaxVal;};
88 Bool_t GetAutoTrans() const {return fAutoTrans;};
89 Int_t GetSectorID() const {return fSectorID;};
90 virtual void DigitSelected(Int_t idx);
91 ///////////////////////////////////////////
93 void SetPlate(Int_t nPlate, Bool_t r);
95 static Reve::FrameBox *fgTOFsectorFrameBox;
96 static Reve::RGBAPalette *fgTOFsectorPalette;
98 ClassDef(TOFSector, 1);