]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/TOFSector.h
From Annalisa: changes for the new TOF geometry classes.
[u/mrichter/AliRoot.git] / EVE / Alieve / TOFSector.h
CommitLineData
8616d353 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>
8616d353 15
16namespace 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
79 static Bool_t fgStaticInitDone;
80 static void InitStatics();
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 QuadSelected(Int_t idx);
91 ///////////////////////////////////////////
92
93 void SetPlate(Int_t nPlate, Bool_t r);
94
95 static Reve::FrameBox* fgTOFsectorFrameBox;
96
97 static Reve::RGBAPalette* fgTOFsectorPalette;
98
99 ClassDef(TOFSector, 1);
100 };
101}
102#endif