]>
Commit | Line | Data |
---|---|---|
8616d353 | 1 | #ifndef ALIEVE_TOFSector_H |
2 | #define ALIEVE_TOFSector_H | |
3 | ||
84aff7a4 | 4 | #include <TEveQuadSet.h> |
5 | #include <TEveElement.h> | |
8616d353 | 6 | |
84aff7a4 | 7 | #include <TEveRGBAPalette.h> |
8 | #include <TEveFrameBox.h> | |
8616d353 | 9 | |
10 | #include <TGeoManager.h> | |
11 | #include <TClonesArray.h> | |
12 | #include <TTree.h> | |
13 | ||
14 | #include <AliTOFGeometry.h> | |
8616d353 | 15 | |
16 | namespace Alieve { | |
17 | ||
84aff7a4 | 18 | class TOFSector : public TEveQuadSet |
8616d353 | 19 | |
20 | { | |
21 | TOFSector(const TOFSector&); // Not implemented | |
22 | TOFSector& operator=(const TOFSector&); // Not implemented | |
23 | ||
24 | //Int_t fSectorID; | |
25 | private: | |
26 | ||
27 | void LoadQuads(); | |
28 | ||
29 | protected: | |
30 | ||
31 | AliTOFGeometry *fTOFgeometry; | |
32 | ||
33 | TClonesArray *fTOFarray; | |
34 | TTree *fTOFtree; | |
35 | ||
36 | Int_t fSector; | |
37 | //Int_t fPlate; | |
38 | //Int_t fStrip; | |
39 | ||
40 | Float_t fDx; | |
41 | Float_t fDy; | |
42 | Float_t fDz; | |
43 | /////////////////////////////// | |
44 | ||
45 | Bool_t fAutoTrans; | |
46 | Int_t fMinTime; | |
47 | Int_t fMaxTime; | |
48 | Short_t fThreshold; | |
49 | Int_t fMaxVal; | |
50 | Int_t fSectorID; | |
51 | Bool_t *fPlateFlag; | |
52 | ||
53 | Bool_t fPlateFlag0; | |
54 | Bool_t fPlateFlag1; | |
55 | Bool_t fPlateFlag2; | |
56 | Bool_t fPlateFlag3; | |
57 | Bool_t fPlateFlag4; | |
58 | ||
59 | Color_t fFrameColor; | |
60 | Bool_t fRnrFrame; | |
61 | ||
62 | TGeoManager *fGeoManager; | |
63 | ||
64 | public: | |
65 | // Bool_t fAutoTrans; | |
66 | ||
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); | |
71 | ||
72 | TOFSector(TGeoManager *localGeoManager, Int_t nSector, | |
73 | TClonesArray *tofArray); | |
74 | TOFSector(TGeoManager *localGeoManager, | |
75 | Int_t nSector, TTree *tofTree); | |
76 | virtual ~TOFSector(); | |
32e219c2 | 77 | |
8616d353 | 78 | static Bool_t fgStaticInitDone; |
79 | static void InitStatics(); | |
32e219c2 | 80 | |
8616d353 | 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;}; | |
32e219c2 | 90 | virtual void DigitSelected(Int_t idx); |
8616d353 | 91 | /////////////////////////////////////////// |
92 | ||
93 | void SetPlate(Int_t nPlate, Bool_t r); | |
94 | ||
84aff7a4 | 95 | static TEveFrameBox *fgTOFsectorFrameBox; |
96 | static TEveRGBAPalette *fgTOFsectorPalette; | |
8616d353 | 97 | |
98 | ClassDef(TOFSector, 1); | |
99 | }; | |
100 | } | |
101 | #endif |