]>
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 | **************************************************************************/ |
a15e6d7d | 9 | #ifndef AliEveITSModule_H |
10 | #define AliEveITSModule_H | |
d810d0de | 11 | |
12 | #include <TEveQuadSet.h> | |
13 | ||
cb4245bb | 14 | #include <EveDet/AliEveITSDigitsInfo.h> |
d810d0de | 15 | |
16 | ||
17 | class AliEveITSModule : public TEveQuadSet | |
18 | { | |
d810d0de | 19 | public: |
20 | AliEveITSModule(const Text_t* n="AliEveITSModule", const Text_t* t=0); | |
21 | AliEveITSModule(Int_t gid, AliEveITSDigitsInfo* info); | |
22 | virtual ~AliEveITSModule(); | |
23 | ||
24 | static void InitStatics(AliEveITSDigitsInfo* info); | |
25 | ||
26 | AliEveITSDigitsInfo* GetDigitsInfo() const { return fInfo; } | |
27 | void SetDigitsInfo(AliEveITSDigitsInfo* info); | |
51346b82 | 28 | |
d810d0de | 29 | Int_t GetSubDetID() const { return fDetID; } |
30 | ||
31 | Int_t GetID() const { return fID; } | |
32 | void SetID(Int_t gid, Bool_t tran=kTRUE); | |
33 | ||
34 | virtual void LoadQuads(); | |
35 | void SetTrans(); | |
36 | ||
37 | virtual void DigitSelected(Int_t idx); | |
38 | ||
39 | virtual void Print(Option_t* opt="") const; | |
40 | ||
105fb267 | 41 | static TEveFrameBox *fgSPDFrameBox; // Module frame for SPD. |
42 | static TEveFrameBox *fgSPDFrameBoxDead; // Dead-module frame for SPD. | |
43 | static TEveFrameBox *fgSDDFrameBox; // Module frame for SDD. | |
44 | static TEveFrameBox *fgSDDFrameBoxDead; // Dead-module frame for SPD. | |
45 | static TEveFrameBox *fgSSDFrameBox; // Module frame for SSD. | |
46 | static TEveFrameBox *fgSSDFrameBoxDead; // Dead-module frame for SPD. | |
d810d0de | 47 | |
698e2c9b | 48 | static TEveRGBAPalette *fgSPDPalette; // Signal to color mapping for SPD. |
49 | static TEveRGBAPalette *fgSDDPalette; // Signal to color mapping for SDD. | |
50 | static TEveRGBAPalette *fgSSDPalette; // Signal to color mapping for SSD. | |
d810d0de | 51 | |
4b456ebb | 52 | protected: |
53 | AliEveITSDigitsInfo* fInfo; // Source of geometry and data. | |
54 | ||
55 | Int_t fID; // Module id. | |
56 | Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD). | |
57 | ||
58 | Int_t fLayer; // Layer (0 - 5). | |
59 | Int_t fLadder; // Ladder. | |
60 | Int_t fDet; // Detector. | |
61 | ||
62 | Float_t fDx; // Digit half-size in x. | |
63 | Float_t fDz; // Digit half-size in z. | |
64 | Float_t fDy; // Digit half-size in y. | |
65 | ||
66 | static Bool_t fgStaticInitDone; // Flag for static variable initialization. | |
67 | ||
68 | private: | |
69 | AliEveITSModule(const AliEveITSModule&); // Not implemented | |
70 | AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented | |
71 | ||
72 | ClassDef(AliEveITSModule, 0); // Visualization of an ITS module. | |
d810d0de | 73 | }; |
74 | ||
75 | #endif |