]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/AliEvePMDModule.h
06ce2bac9cc0024c3101b89595475baf6fe6536a
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEvePMDModule.h
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          *
7  * full copyright notice.                                                 * 
8  **************************************************************************/
9
10 #ifndef ALIEVE_PMDModule_H
11 #define ALIEVE_PMDModule_H
12
13 #include <TEveUtil.h>
14 #include <TEveQuadSet.h>
15
16 #include <TObject.h>
17 #include <TObjArray.h>
18 #include <TTree.h>
19 #include <TH1F.h>
20
21
22 class AliEvePMDModule : public TEveQuadSet
23 {
24 private:
25   AliEvePMDModule(const AliEvePMDModule&);            // Not implemented
26   AliEvePMDModule& operator=(const AliEvePMDModule&); // Not implemented
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:
34   TH1F*                fH1;
35   Float_t              fX, fY, fZ;
36   Int_t                fNPads;
37   Int_t                fAdc;
38
39   static const Float_t fgkRad;
40   static const Float_t fgkSqRoot3;
41   static const Float_t fgkZpos;
42
43   static Int_t         fPreTotPads;
44   static Int_t         fCpvTotPads;
45   static Int_t         fPreTotAdc;
46   static Int_t         fCpvTotAdc;
47
48
49 public:
50   AliEvePMDModule();
51   virtual ~AliEvePMDModule() { delete fH1; }
52
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;}
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
66   ClassDef(AliEvePMDModule, 1);
67 }; // endclass AliEvePMDModule
68
69 #endif