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 AliEveTOFSector_H
10 #define AliEveTOFSector_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 Text_t* n="AliEveTOFSector", const Text_t* t=0);
29 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
31 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
32 TClonesArray *tofArray);
33 AliEveTOFSector(TGeoManager *localGeoManager,
34 Int_t nSector, TTree *tofTree);
35 virtual ~AliEveTOFSector();
37 virtual void InitModule();
38 virtual void SetTrans();
40 static Bool_t fgStaticInitDone;
41 static void InitStatics();
43 void SetSectorID(Int_t id);
44 void SetAutoTrans(Bool_t r){fAutoTrans=r;};
45 void SetThreshold(Short_t t);
46 void SetMaxVal(Int_t mv);
47 Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
48 Short_t GetThreshold() const {return fThreshold;};
49 Int_t GetMaxVal() const {return fMaxVal;};
50 Bool_t GetAutoTrans() const {return fAutoTrans;};
51 Int_t GetSectorID() const {return fSectorID;};
52 virtual void DigitSelected(Int_t idx);
53 ///////////////////////////////////////////
55 void SetPlate(Int_t nPlate, Bool_t r);
57 static TEveFrameBox *fgTOFsectorFrameBox;
58 static TEveRGBAPalette *fgTOFsectorPalette;
61 AliTOFGeometry *fTOFgeometry;
63 TClonesArray *fTOFarray;
73 ///////////////////////////////
89 //Color_t fFrameColor;
92 TGeoManager *fGeoManager;
97 AliEveTOFSector(const AliEveTOFSector&); // Not implemented
98 AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
100 ClassDef(AliEveTOFSector, 0); // Representation of a TOF sector.