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