Changes in configuration
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveITSModule.h
CommitLineData
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
17class AliEveITSModule : public TEveQuadSet
18{
19 AliEveITSModule(const AliEveITSModule&); // Not implemented
20 AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented
21
22protected:
698e2c9b 23 AliEveITSDigitsInfo* fInfo; // Source of geometry and data.
d810d0de 24
698e2c9b 25 Int_t fID; // Module id.
26 Int_t fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD).
d810d0de 27
698e2c9b 28 Int_t fLayer; // Layer (0 - 5).
29 Int_t fLadder; // Ladder.
30 Int_t fDet; // Detector.
51346b82 31
698e2c9b 32 Float_t fDx; // Digit half-size in x.
33 Float_t fDz; // Digit half-size in z.
34 Float_t fDy; // Digit half-size in y.
d810d0de 35
698e2c9b 36 static Bool_t fgStaticInitDone; // Flag for static variable initialization.
d810d0de 37
38public:
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
698e2c9b 60 static TEveFrameBox *fgSPDFrameBox; // Module frame for SPD.
61 static TEveFrameBox *fgSDDFrameBox; // Module frame for SDD.
62 static TEveFrameBox *fgSSDFrameBox; // Module frame for SSD.
d810d0de 63
698e2c9b 64 static TEveRGBAPalette *fgSPDPalette; // Signal to color mapping for SPD.
65 static TEveRGBAPalette *fgSDDPalette; // Signal to color mapping for SDD.
66 static TEveRGBAPalette *fgSSDPalette; // Signal to color mapping for SSD.
d810d0de 67
698e2c9b 68 ClassDef(AliEveITSModule, 1); // Visualization of an ITS module.
d810d0de 69};
70
71#endif