Use two-level selection, implement callback QuadSelected() to print out the digit...
[u/mrichter/AliRoot.git] / EVE / Alieve / ITSModule.h
CommitLineData
5a5a1232 1#ifndef ALIEVE_ITSModule_H
2#define ALIEVE_ITSModule_H
3
4#include <Reve/QuadSet.h>
5a5a1232 5
6#include <Alieve/ITSDigitsInfo.h>
7
8namespace Alieve {
9
9efc978d 10class ITSModule : public Reve::QuadSet
5a5a1232 11{
265ecb21 12 ITSModule(const ITSModule&); // Not implemented
13 ITSModule& operator=(const ITSModule&); // Not implemented
14
5a5a1232 15protected:
9c8221e9 16 void LoadQuads();
17 void SetTrans();
5a5a1232 18
19 ITSDigitsInfo* fInfo;
20
9efc978d 21 Int_t fID; // Module id
22 Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD)
5a5a1232 23
24 Int_t fLayer;
25 Int_t fLadder;
26 Int_t fDet;
27
28 Float_t fDx;
29 Float_t fDz;
30 Float_t fDy;
31
9c8221e9 32 static Bool_t fgStaticInitDone;
33
5a5a1232 34public:
9efc978d 35 ITSModule(const Text_t* n="ITSModule", const Text_t* t=0);
9c8221e9 36 ITSModule(Int_t gid, ITSDigitsInfo* info);
5a5a1232 37 virtual ~ITSModule();
38
9c8221e9 39 static void InitStatics(ITSDigitsInfo* info);
40
9efc978d 41 ITSDigitsInfo* GetDigitsInfo() const { return fInfo; }
42 void SetDigitsInfo(ITSDigitsInfo* info);
43
44 Int_t GetID() const { return fID; }
9c8221e9 45 void SetID(Int_t gid);
5a5a1232 46
ffa36681 47 virtual void QuadSelected(Int_t idx);
48
5a5a1232 49 virtual void Print(Option_t* opt="") const;
50
9efc978d 51 static Reve::FrameBox* fgSPDFrameBox;
52 static Reve::FrameBox* fgSDDFrameBox;
53 static Reve::FrameBox* fgSSDFrameBox;
5a5a1232 54
9efc978d 55 static Reve::RGBAPalette* fgSPDPalette;
56 static Reve::RGBAPalette* fgSDDPalette;
57 static Reve::RGBAPalette* fgSSDPalette;
5a5a1232 58
59 ClassDef(ITSModule, 1);
9efc978d 60};
61
5a5a1232 62}
9efc978d 63
5a5a1232 64#endif