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 */
6 // Class of HMPID to manage digits ---> pads
11 //#include "TTreePlayer.h"
17 #include "AliHMPIDParam.h"
18 #include "AliHMPIDRawStream.h"
20 class AliHMPIDCalib: public TObject {
25 virtual ~AliHMPIDCalib();
27 // void FillPedestal(Int_t nDDL,Int_t row, Int_t dil,Int_t adr,Int_t q);
28 void FillPedestal(Int_t pad,Int_t q); //absolute pad number and the charge of the pad
29 void FillErrors(Int_t nDDL,Int_t nErrType, Int_t nErr);
30 Bool_t CalcPedestal(ULong_t runNum, Int_t nDDL, Char_t* name, Int_t nEv); //number of the DDL, name of the output file and the number of events processed
31 Bool_t WriteErrors(ULong_t runNum, Int_t nDDL, Char_t* name, Int_t nEv); //number of the DDL, name of the output file and the number of events processed
34 kNRows = 24, // Number of rows (starting from 1 !)//was25
35 kNDILOGICAdd = 10, // Number of DILOGIC addresses in a row (starting from 1 !) //was11
36 kNPadAdd = 48, // Number of pad row
41 Bool_t faddl[11]; //check is ddl is filled
42 Float_t fsq[kNDDL][kNRows][kNDILOGICAdd][kNPadAdd]; //Sum of pad Q
43 Float_t fsq2[kNDDL][kNRows][kNDILOGICAdd][kNPadAdd]; //Sum of pad Q^2
44 Int_t fNumOfErr[kNDDL][AliHMPIDRawStream::kSumErr]; // Store the numner of errors for a given error type and a given DDL
45 ClassDef(AliHMPIDCalib,2) //HMPID calibration and pedestal class