]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/PMDModule.h
Runloader is updated when moving to next file (quick fix).
[u/mrichter/AliRoot.git] / EVE / Alieve / PMDModule.h
CommitLineData
ee0e160c 1// $Header$
2
3#ifndef ALIEVE_PMDModule_H
4#define ALIEVE_PMDModule_H
5
6#include <Reve/Reve.h>
7#include <Reve/QuadSet.h>
8
9#include <TObject.h>
10#include <TObjArray.h>
11#include <TTree.h>
f0314e4e 12#include <TH1F.h>
ee0e160c 13
14namespace Alieve {
15
16class PMDModule : public Reve::QuadSet
17{
18private:
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
27protected:
f0314e4e 28 TH1F* fH1;
29 Float_t fX, fY, fZ;
30 Int_t fNPads;
31 Int_t fAdc;
ee0e160c 32
33 static const Float_t fgkRad;
34 static const Float_t fgkSqRoot3;
35 static const Float_t fgkZpos;
36
f0314e4e 37 static Int_t fPreTotPads;
38 static Int_t fCpvTotPads;
39 static Int_t fPreTotAdc;
40 static Int_t fCpvTotAdc;
41
ee0e160c 42
43public:
44 PMDModule();
f0314e4e 45 virtual ~PMDModule() { delete fH1; }
ee0e160c 46
f0314e4e 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;}
ee0e160c 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