]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDCalib.h
674da2e92037debbb5f17e2b1af0d6bd343794d2
[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 <TH2.h>
15 #include <TH1S.h>
16 #include <TMath.h>
17 #include "AliHMPIDParam.h"
18 #include "AliHMPIDRawStream.h"
19
20 class AliHMPIDCalib: public TObject { 
21
22
23 public:
24   AliHMPIDCalib();
25   virtual ~AliHMPIDCalib();
26           void Init();
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
32
33    enum {
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
37       kNDDL = 14
38     };
39         
40 protected: 
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        
46 };
47 #endif