]>
Commit | Line | Data |
---|---|---|
d810d0de | 1 | // $Id$ |
2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
9 | #ifndef ALIEVE_ITSModule_H | |
10 | #define ALIEVE_ITSModule_H | |
11 | ||
12 | #include <TEveQuadSet.h> | |
13 | ||
cb4245bb | 14 | #include <EveDet/AliEveITSDigitsInfo.h> |
d810d0de | 15 | |
16 | ||
17 | class AliEveITSModule : public TEveQuadSet | |
18 | { | |
19 | AliEveITSModule(const AliEveITSModule&); // Not implemented | |
20 | AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented | |
21 | ||
22 | protected: | |
51346b82 | 23 | AliEveITSDigitsInfo* fInfo; |
d810d0de | 24 | |
25 | Int_t fID; // Module id | |
26 | Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD) | |
27 | ||
28 | Int_t fLayer; | |
29 | Int_t fLadder; | |
30 | Int_t fDet; | |
51346b82 | 31 | |
d810d0de | 32 | Float_t fDx; |
33 | Float_t fDz; | |
34 | Float_t fDy; | |
35 | ||
36 | static Bool_t fgStaticInitDone; | |
37 | ||
38 | public: | |
39 | AliEveITSModule(const Text_t* n="AliEveITSModule", const Text_t* t=0); | |
40 | AliEveITSModule(Int_t gid, AliEveITSDigitsInfo* info); | |
41 | virtual ~AliEveITSModule(); | |
42 | ||
43 | static void InitStatics(AliEveITSDigitsInfo* info); | |
44 | ||
45 | AliEveITSDigitsInfo* GetDigitsInfo() const { return fInfo; } | |
46 | void SetDigitsInfo(AliEveITSDigitsInfo* info); | |
51346b82 | 47 | |
d810d0de | 48 | Int_t GetSubDetID() const { return fDetID; } |
49 | ||
50 | Int_t GetID() const { return fID; } | |
51 | void SetID(Int_t gid, Bool_t tran=kTRUE); | |
52 | ||
53 | virtual void LoadQuads(); | |
54 | void SetTrans(); | |
55 | ||
56 | virtual void DigitSelected(Int_t idx); | |
57 | ||
58 | virtual void Print(Option_t* opt="") const; | |
59 | ||
60 | static TEveFrameBox* fgSPDFrameBox; | |
61 | static TEveFrameBox* fgSDDFrameBox; | |
62 | static TEveFrameBox* fgSSDFrameBox; | |
63 | ||
64 | static TEveRGBAPalette* fgSPDPalette; | |
65 | static TEveRGBAPalette* fgSDDPalette; | |
66 | static TEveRGBAPalette* fgSSDPalette; | |
67 | ||
68 | ClassDef(AliEveITSModule, 1); | |
69 | }; | |
70 | ||
71 | #endif |