]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDCalib.h
Calibration object splitted in: pedestal + E calib + reco parameters
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDCalib.h
1 #ifndef AliHMPIDCalib_h
2 #define AliHMPIDCalib_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 // Class of HMPID to manage digits ---> pads
7 //.
8 //.
9 //.
10
11 //#include "TTreePlayer.h"
12 //#include <TTree.h>
13 #include <TH1.h>
14 #include <TMath.h>
15
16 class AliHMPIDCalib: public TObject { 
17
18
19 public:
20   AliHMPIDCalib();
21   virtual ~AliHMPIDCalib();
22           void Init();
23           void FillPedestal(Int_t nDDL,Int_t row, Int_t dil,Int_t adr,Int_t q);
24         Bool_t CalcPedestal(Int_t nDDL, Char_t* name, Int_t nEv);
25
26    enum {
27       kNRows       = 24,                                    // Number of rows (starting from 1 !)//was25
28       kNDILOGICAdd = 10,                                    // Number of DILOGIC addresses in a row (starting from 1 !) //was11
29       kNPadAdd     = 48,                                    // Number of pad row
30       kNDDL = 14
31     };
32         
33 protected: 
34     Bool_t  faddl[11];                                                            //check is ddl is filled
35     Float_t fsq[kNDDL][kNRows][kNDILOGICAdd][kNPadAdd];                           //Sum of pad Q
36     Float_t fsq2[kNDDL][kNRows][kNDILOGICAdd][kNPadAdd];                          //Sum of pad Q^2
37     ClassDef(AliHMPIDCalib,1)                                                     //HMPID calibration and pedestal class        
38 };
39 #endif