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_TOFSector_H
10 #define ALIEVE_TOFSector_H
12 #include <TEveQuadSet.h>
13 #include <TEveElement.h>
15 #include <TEveRGBAPalette.h>
16 #include <TEveFrameBox.h>
18 #include <TGeoManager.h>
19 #include <TClonesArray.h>
22 #include <AliTOFGeometry.h>
25 class AliEveTOFSector : public TEveQuadSet
28 AliEveTOFSector(const AliEveTOFSector&); // Not implemented
29 AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
38 AliTOFGeometry *fTOFgeometry;
40 TClonesArray *fTOFarray;
50 ///////////////////////////////
69 TGeoManager *fGeoManager;
74 virtual void InitModule();
75 virtual void SetTrans();
76 AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
77 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
79 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
80 TClonesArray *tofArray);
81 AliEveTOFSector(TGeoManager *localGeoManager,
82 Int_t nSector, TTree *tofTree);
83 virtual ~AliEveTOFSector();
85 static Bool_t fgStaticInitDone;
86 static void InitStatics();
88 void SetSectorID(Int_t id);
89 void SetAutoTrans(Bool_t r){fAutoTrans=r;};
90 void SetThreshold(Short_t t);
91 void SetMaxVal(Int_t mv);
92 Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
93 Short_t GetThreshold() const {return fThreshold;};
94 Int_t GetMaxVal() const {return fMaxVal;};
95 Bool_t GetAutoTrans() const {return fAutoTrans;};
96 Int_t GetSectorID() const {return fSectorID;};
97 virtual void DigitSelected(Int_t idx);
98 ///////////////////////////////////////////
100 void SetPlate(Int_t nPlate, Bool_t r);
102 static TEveFrameBox *fgTOFsectorFrameBox;
103 static TEveRGBAPalette *fgTOFsectorPalette;
105 ClassDef(AliEveTOFSector, 1);