]>
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 | **************************************************************************/ |
ee0e160c | 9 | |
10 | #ifndef ALIEVE_PMDModule_H | |
11 | #define ALIEVE_PMDModule_H | |
12 | ||
84aff7a4 | 13 | #include <TEveUtil.h> |
14 | #include <TEveQuadSet.h> | |
ee0e160c | 15 | |
16 | #include <TObject.h> | |
17 | #include <TObjArray.h> | |
18 | #include <TTree.h> | |
f0314e4e | 19 | #include <TH1F.h> |
ee0e160c | 20 | |
ee0e160c | 21 | |
d810d0de | 22 | class AliEvePMDModule : public TEveQuadSet |
ee0e160c | 23 | { |
24 | private: | |
d810d0de | 25 | AliEvePMDModule(const AliEvePMDModule&); // Not implemented |
26 | AliEvePMDModule& operator=(const AliEvePMDModule&); // Not implemented | |
ee0e160c | 27 | |
28 | void RectGeomCellPos(Int_t ism, Int_t irow, Int_t icol, | |
29 | Float_t &xpos, Float_t &ypos); | |
30 | void GenerateBox(Int_t ism, Float_t &xism, Float_t &yism, | |
31 | Float_t &dxism, Float_t &dyism); | |
32 | ||
33 | protected: | |
f0314e4e | 34 | TH1F* fH1; |
35 | Float_t fX, fY, fZ; | |
36 | Int_t fNPads; | |
37 | Int_t fAdc; | |
ee0e160c | 38 | |
39 | static const Float_t fgkRad; | |
40 | static const Float_t fgkSqRoot3; | |
41 | static const Float_t fgkZpos; | |
42 | ||
f0314e4e | 43 | static Int_t fPreTotPads; |
44 | static Int_t fCpvTotPads; | |
45 | static Int_t fPreTotAdc; | |
46 | static Int_t fCpvTotAdc; | |
47 | ||
ee0e160c | 48 | |
49 | public: | |
d810d0de | 50 | AliEvePMDModule(); |
51 | virtual ~AliEvePMDModule() { delete fH1; } | |
ee0e160c | 52 | |
f0314e4e | 53 | Int_t GetPRETotPads() const { return fPreTotPads; } |
54 | Int_t GetCPVTotPads() const { return fCpvTotPads; } | |
55 | Int_t GetNPads() const { return fNPads; } | |
56 | Int_t GetPRETotAdc() const { return fPreTotAdc; } | |
57 | Int_t GetCPVTotAdc() const { return fCpvTotAdc; } | |
58 | Int_t GetAdc() const { return fAdc; } | |
59 | TH1F *GetHisto() const { return fH1;} | |
ee0e160c | 60 | |
61 | void DisplayInit(Int_t ism); | |
62 | void DisplayDigitsData(Int_t ism, TTree *pmdt); | |
63 | void DisplayRawData(Int_t ism, TObjArray *ddlcont); | |
64 | void SetPosition(Float_t x, Float_t y, Float_t z); | |
65 | ||
d810d0de | 66 | ClassDef(AliEvePMDModule, 1); |
67 | }; // endclass AliEvePMDModule | |
ee0e160c | 68 | |
69 | #endif |