]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/PMDrec/AliPMDCalibGain.h
EVE executable
[u/mrichter/AliRoot.git] / PMD / PMDrec / 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;
82795f89 10class TTree;
4fc06b3a 11
12class AliPMDCalibGain : public TObject
13{
14 public:
15 AliPMDCalibGain() ; // ctor
16 AliPMDCalibGain(const AliPMDCalibGain &pmdcalibgain); // copy constructor
17 AliPMDCalibGain &operator=(const AliPMDCalibGain &pmdcalibgain); // assignment op
18
1da50520 19 virtual ~AliPMDCalibGain() ; // dtor
20
7c11ad1f 21 Int_t ExtractPedestal(const Char_t *rootFile); // pedestal
22 Int_t ExtractHotChannel(const Char_t *rootFile); // Hotchannel root file
23 void ReadTempFile(const Char_t *tempFile); // read inter file
24 void WriteTempFile(const Char_t *tempFile); // write inter file
4fc06b3a 25
338c285a 26 Bool_t ProcessEvent(AliRawReader *rawReader, TObjArray *pmdddlcont); //Looks for iso cells
4fc06b3a 27
9d1486e3 28 void Analyse(TTree *gaintree, TTree *meantree);
29 void FindHotCell(TTree *hottree, Float_t xvar); // finds hot cell
4fc06b3a 30
31 private:
32
33 enum
34 {
0ab3a530 35 kDet = 2, // Number of Planes
7c11ad1f 36 kMaxSMN = 24, // Number of Modules per plane
4fc06b3a 37 kMaxRow = 48, // Number of Rows
38 kMaxCol = 96 // Number of Columns
39 };
40
0ab3a530 41 Float_t fSMIso[kDet][kMaxSMN];
1da50520 42 Float_t fSMCount[kDet][kMaxSMN]; // counter
43 Float_t fCellIso[kDet][kMaxSMN][kMaxRow][kMaxCol]; // adc of iso cells
7c11ad1f 44 Float_t fCellCount[kDet][kMaxSMN][kMaxRow][kMaxCol]; // counter of iso cell
45 Float_t fNhitCell[kDet][kMaxSMN][kMaxRow][kMaxCol]; // counter
1da50520 46 Float_t fPedMeanRMS[kDet][kMaxSMN][kMaxRow][kMaxCol];// Pedestal Mean
7c11ad1f 47 Float_t fHotFlag[kDet][kMaxSMN][kMaxRow][kMaxCol]; // HotChannel Flag
48
49 Float_t fCountSm[kDet][kMaxSMN]; // event counter for each module
50 Float_t fTempnhit[kDet][kMaxSMN]; // hit frequency of each module
51 Float_t fTempnhitSq[kDet][kMaxSMN]; // square of hit freq. of each mod.
52 FILE *fpw; // write the temp file
53
9d1486e3 54ClassDef(AliPMDCalibGain,7) // description
4fc06b3a 55};
56#endif // ALIPMDCALIBGAIN_H