]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TOFSector.h
4c6e46d6a540f82d70f1d556cb4033a57fd3a04e
[u/mrichter/AliRoot.git] / EVE / Alieve / TOFSector.h
1 #ifndef ALIEVE_TOFSector_H
2 #define ALIEVE_TOFSector_H
3
4 #include <Reve/QuadSet.h>
5 #include <Reve/RenderElement.h>
6
7 #include <Reve/RGBAPalette.h>
8 #include <Reve/FrameBox.h>
9
10 #include <TGeoManager.h>
11 #include <TClonesArray.h>
12 #include <TTree.h>
13
14 #include <AliTOFGeometry.h>
15
16 namespace Alieve {
17   
18   class TOFSector : public Reve::QuadSet
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();
77         
78     static Bool_t    fgStaticInitDone;
79     static void      InitStatics();
80
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     ///////////////////////////////////////////
92    
93     void SetPlate(Int_t nPlate, Bool_t r);
94
95     static Reve::FrameBox    *fgTOFsectorFrameBox;
96     static Reve::RGBAPalette *fgTOFsectorPalette;
97
98   ClassDef(TOFSector, 1);
99   }; 
100 }
101 #endif