Correcting the comments changed in the previous commit
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibGain.h
CommitLineData
4fc06b3a 1#ifndef ALIPMDCALIBGAIN_H
2#define ALIPMDCALIBGAIN_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6#include "TObject.h"
7
8class TH1F;
9class AliRawReader;
10
11class AliPMDCalibGain : public TObject
12{
13 public:
14 AliPMDCalibGain() ; // ctor
15 AliPMDCalibGain(const AliPMDCalibGain &pmdcalibgain); // copy constructor
16 AliPMDCalibGain &operator=(const AliPMDCalibGain &pmdcalibgain); // assignment op
17
1da50520 18 virtual ~AliPMDCalibGain() ; // dtor
19
7c11ad1f 20 Int_t ExtractPedestal(const Char_t *rootFile); // pedestal
21 Int_t ExtractHotChannel(const Char_t *rootFile); // Hotchannel root file
22 void ReadTempFile(const Char_t *tempFile); // read inter file
23 void WriteTempFile(const Char_t *tempFile); // write inter file
4fc06b3a 24
338c285a 25 Bool_t ProcessEvent(AliRawReader *rawReader, TObjArray *pmdddlcont); //Looks for iso cells
4fc06b3a 26
9d1486e3 27 void Analyse(TTree *gaintree, TTree *meantree);
28 void FindHotCell(TTree *hottree, Float_t xvar); // finds hot cell
4fc06b3a 29
30 private:
31
32 enum
33 {
0ab3a530 34 kDet = 2, // Number of Planes
7c11ad1f 35 kMaxSMN = 24, // Number of Modules per plane
4fc06b3a 36 kMaxRow = 48, // Number of Rows
37 kMaxCol = 96 // Number of Columns
38 };
39
0ab3a530 40 Float_t fSMIso[kDet][kMaxSMN];
1da50520 41 Float_t fSMCount[kDet][kMaxSMN]; // counter
42 Float_t fCellIso[kDet][kMaxSMN][kMaxRow][kMaxCol]; // adc of iso cells
7c11ad1f 43 Float_t fCellCount[kDet][kMaxSMN][kMaxRow][kMaxCol]; // counter of iso cell
44 Float_t fNhitCell[kDet][kMaxSMN][kMaxRow][kMaxCol]; // counter
1da50520 45 Float_t fPedMeanRMS[kDet][kMaxSMN][kMaxRow][kMaxCol];// Pedestal Mean
7c11ad1f 46 Float_t fHotFlag[kDet][kMaxSMN][kMaxRow][kMaxCol]; // HotChannel Flag
47
48 Float_t fCountSm[kDet][kMaxSMN]; // event counter for each module
49 Float_t fTempnhit[kDet][kMaxSMN]; // hit frequency of each module
50 Float_t fTempnhitSq[kDet][kMaxSMN]; // square of hit freq. of each mod.
51 FILE *fpw; // write the temp file
52
9d1486e3 53ClassDef(AliPMDCalibGain,7) // description
4fc06b3a 54};
55#endif // ALIPMDCALIBGAIN_H