]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEvePMDModule.h
Additional odifications to compile without ZeroMQ
[u/mrichter/AliRoot.git] / EVE / EveDet / 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 AliEvePMDModule_H
11 #define AliEvePMDModule_H
12
13 #include <TEveQuadSet.h>
14
15 class TH1F;
16 class TTree;
17
18 class AliEvePMDModule : public TEveQuadSet
19 {
20 public:
21   AliEvePMDModule();
22   virtual ~AliEvePMDModule();
23
24   static Int_t GetPRETotPads() { return fgPreTotPads; }
25   static Int_t GetCPVTotPads() { return fgCpvTotPads; }
26   static Int_t GetPRETotAdc()  { return fgPreTotAdc;  }
27   static Int_t GetCPVTotAdc()  { return fgCpvTotAdc;  }
28
29   Int_t GetNPads()      const { return fNPads; }
30   Int_t GetAdc()        const { return fAdc;   }
31   TH1F *GetHisto()      const { return fH1;    }
32
33   void DisplayInit(Int_t ism);
34   void DisplayDigitsData(Int_t ism, TTree *pmdt);
35   void DisplayRawData(Int_t ism,   TObjArray *ddlcont);
36   void SetPosition(Float_t x, Float_t y, Float_t z);
37
38 protected:
39   TH1F*        fH1;         // histogram
40   Float_t      fX, fY, fZ;  // coordinates
41   Int_t        fNPads;      // number of pads
42   Int_t        fAdc;        // ad count
43
44   static const Float_t fgkRad;      // fooconst
45   static const Float_t fgkSqRoot3;  // fooconst
46   static const Float_t fgkZpos;     // position of PMD
47
48   static Int_t fgPreTotPads; // total pre pads
49   static Int_t fgCpvTotPads; // total cpv pads
50   static Int_t fgPreTotAdc;  // total pre signal
51   static Int_t fgCpvTotAdc;  // total cpv signal
52
53 private:
54   void RectGeomCellPos(Int_t ism, Int_t irow, Int_t icol,
55                        Float_t &xpos, Float_t &ypos);
56   void GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
57                    Float_t &dxism, Float_t &dyism);
58
59   AliEvePMDModule(const AliEvePMDModule&);            // Not implemented
60   AliEvePMDModule& operator=(const AliEvePMDModule&); // Not implemented
61
62   ClassDef(AliEvePMDModule, 0);
63 }; // endclass AliEvePMDModule
64
65 #endif