]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/PMDModule.h
Remove EVE/Reve/ sub-module.
[u/mrichter/AliRoot.git] / EVE / Alieve / PMDModule.h
1 // $Header$
2
3 #ifndef ALIEVE_PMDModule_H
4 #define ALIEVE_PMDModule_H
5
6 #include <TEveUtil.h>
7 #include <TEveQuadSet.h>
8
9 #include <TObject.h>
10 #include <TObjArray.h>
11 #include <TTree.h>
12 #include <TH1F.h>
13
14 namespace Alieve {
15
16 class PMDModule : public TEveQuadSet
17 {
18 private:
19   PMDModule(const PMDModule&);            // Not implemented
20   PMDModule& operator=(const PMDModule&); // Not implemented
21
22   void RectGeomCellPos(Int_t ism, Int_t irow, Int_t icol,
23                        Float_t &xpos, Float_t &ypos);
24   void GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
25                    Float_t &dxism, Float_t &dyism);
26
27 protected:
28   TH1F*                fH1;
29   Float_t              fX, fY, fZ;
30   Int_t                fNPads;
31   Int_t                fAdc;
32
33   static const Float_t fgkRad;
34   static const Float_t fgkSqRoot3;
35   static const Float_t fgkZpos;
36
37   static Int_t         fPreTotPads;
38   static Int_t         fCpvTotPads;
39   static Int_t         fPreTotAdc;
40   static Int_t         fCpvTotAdc;
41
42
43 public:
44   PMDModule();
45   virtual ~PMDModule() { delete fH1; }
46
47   Int_t GetPRETotPads() const { return fPreTotPads; }
48   Int_t GetCPVTotPads() const { return fCpvTotPads; }
49   Int_t GetNPads()      const { return fNPads; }
50   Int_t GetPRETotAdc()  const { return fPreTotAdc; }
51   Int_t GetCPVTotAdc()  const { return fCpvTotAdc; }
52   Int_t GetAdc()        const { return fAdc; }
53   TH1F *GetHisto()      const { return fH1;}
54
55   void DisplayInit(Int_t ism);
56   void DisplayDigitsData(Int_t ism, TTree *pmdt);
57   void DisplayRawData(Int_t ism,   TObjArray *ddlcont);
58   void SetPosition(Float_t x, Float_t y, Float_t z);
59
60   ClassDef(PMDModule, 1);
61 }; // endclass PMDModule
62
63 }
64
65 #endif