Added QA code from Hans Hjersing Dalsgaard <canute@nbi.dk>
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDCalib.h
CommitLineData
21f61e25 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//.
3e60bb92 10
11//#include "TTreePlayer.h"
12//#include <TTree.h>
21f61e25 13#include <TH1.h>
0f1281b2 14#include <TH2.h>
15#include <TH1S.h>
3e60bb92 16#include <TMath.h>
0f1281b2 17#include "AliHMPIDParam.h"
18#include "AliHMPIDRawStream.h"
21f61e25 19
20class AliHMPIDCalib: public TObject {
21
22
23public:
24 AliHMPIDCalib();
25 virtual ~AliHMPIDCalib();
26 void Init();
0f1281b2 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
21f61e25 32
3e60bb92 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 };
21f61e25 39
40protected:
5a7dbe51 41 Bool_t faddl[11]; //check is ddl is filled
3e60bb92 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
0f1281b2 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
21f61e25 46};
47#endif