1 #ifndef ALIEVETOFSECTOR_H
2 #define ALIEVETOFSECTOR_H
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 **************************************************************************/
11 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
14 // Class to visualize the TOF digit information
15 // in TOF sector frame
18 #include <TEveQuadSet.h>
26 class TEveRGBAPalette;
31 class AliEveTOFSector : public TEveQuadSet
34 AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
35 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
37 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
38 TClonesArray *tofArray);
39 AliEveTOFSector(TGeoManager *localGeoManager,
40 Int_t nSector, TTree *tofTree);
41 virtual ~AliEveTOFSector();
43 virtual void InitModule();
44 virtual void SetTrans();
46 static void InitStatics();
48 void SetSectorID(Int_t id);
49 void SetAutoTrans(Bool_t r){fAutoTrans=r;};
50 void SetThreshold(Short_t t);
51 void SetMaxVal(Int_t mv);
52 Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
53 Short_t GetThreshold() const {return fThreshold;};
54 Int_t GetMaxVal() const {return fMaxVal;};
55 Bool_t GetAutoTrans() const {return fAutoTrans;};
56 Int_t GetSectorID() const {return fSectorID;};
57 virtual void DigitSelected(Int_t idx);
58 ///////////////////////////////////////////
60 void SetPlate(Int_t nPlate, Bool_t r);
64 static Bool_t fgStaticInitDone; // flag to check on/off inizialization
65 static TEveFrameBox *fgTOFsectorFrameBox; // EVE container for TOF sector
66 static TEveRGBAPalette *fgTOFsectorPalette; // EVE container for setting of visualization parameters
68 AliTOFGeometry *fTOFgeometry; // pointer to the TOF geometry container class
70 TClonesArray *fTOFarray; // TOF digit array container
71 TTree *fTOFtree; // TOF digit tree container
73 Int_t fSector; // TOF sector index
77 Float_t fDx; // x position of TOF digit (in TOF strip RF)
78 Float_t fDy; // y position of TOF digit (in TOF strip RF)
79 Float_t fDz; // z position of TOF digit (in TOF strip RF)
80 ///////////////////////////////
82 Bool_t fAutoTrans; // to choose if visualize the TOF sector in ALICE RF or in local RF
85 Short_t fThreshold; // threshold to cut on visualization
86 Int_t fMaxVal; // max value to cut on visualization
87 Int_t fSectorID; // TOF sector identifier
88 Bool_t *fPlateFlag; // flag to switch on/off the TOF module visualization inside a TOF SM
96 //Color_t fFrameColor;
99 TGeoManager *fGeoManager; // pointer to the ALICE geometry
104 AliEveTOFSector(const AliEveTOFSector&); // Not implemented
105 AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
107 ClassDef(AliEveTOFSector, 0); // Representation of a TOF sector.