]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | #ifndef ALIEVE_ITSModule_H |
2 | #define ALIEVE_ITSModule_H | |
3 | ||
4 | #include <Reve/QuadSet.h> | |
5 | #include <Reve/RenderElement.h> | |
6 | ||
7 | #include <Alieve/ITSDigitsInfo.h> | |
8 | ||
9 | namespace Alieve { | |
10 | ||
11 | class ITSModule : public Reve::QuadSet, public Reve::RenderElement | |
12 | { | |
13 | private: | |
14 | void Init(); | |
15 | void LoadQuads(); | |
16 | ||
17 | protected: | |
18 | virtual void InitModule(); | |
19 | virtual void SetTrans(); | |
20 | ||
21 | ITSDigitsInfo* fInfo; | |
22 | ||
23 | Int_t fID; | |
24 | Int_t fDetID; | |
25 | ||
26 | Int_t fLayer; | |
27 | Int_t fLadder; | |
28 | Int_t fDet; | |
29 | ||
30 | Float_t fDx; | |
31 | Float_t fDz; | |
32 | Float_t fDy; | |
33 | ||
092578a7 | 34 | Color_t fFrameColor; |
5a5a1232 | 35 | |
36 | public: | |
37 | ITSModule(const Text_t* n="ITSModule", const Text_t* t=0, Color_t col=2) : | |
092578a7 | 38 | QuadSet(n, t), Reve::RenderElement(fFrameColor), fFrameColor(col) |
5a5a1232 | 39 | { Init(); } |
40 | ITSModule(Int_t id, ITSDigitsInfo* info, Color_t col=2); | |
41 | virtual ~ITSModule(); | |
42 | ||
43 | virtual Bool_t CanEditMainColor() { return true; } | |
44 | virtual void SetMainColor(Color_t col); | |
45 | ||
46 | virtual void SetID(Int_t id); | |
47 | virtual void Print(Option_t* opt="") const; | |
48 | ||
49 | static Short_t fgSDDThreshold; | |
50 | static Short_t fgSDDMaxVal; | |
51 | ||
52 | static Short_t fgSSDThreshold; | |
53 | static Short_t fgSSDMaxVal; | |
54 | ||
55 | ClassDef(ITSModule, 1); | |
56 | }; | |
57 | } | |
58 | #endif |