]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDCalibGain.h
sdigits reading macro cleaned up
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibGain.h
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
8 class TH1F;  
9 class AliRawReader;
10
11 class 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
18   virtual ~AliPMDCalibGain() ;           // dtor
19
20   Int_t ExtractPedestal(const Char_t *rootFile);       // pedestal 
21   void  ReadTempFile(const Char_t *tempFile); // read inter file
22   void  WriteTempFile(const Char_t *tempFile);// write inter file
23
24   Bool_t ProcessEvent(AliRawReader *rawReader, TObjArray *pmdddlcont);  //Looks for iso cells
25
26   void Analyse(TTree *gaintree);
27   
28  private:
29
30   enum
31       {
32           kDet    = 2,   // Number of Planes
33           kMaxSMN = 24,  // Number of Modules
34           kMaxRow = 48,  // Number of Rows
35           kMaxCol = 96   // Number of Columns
36       };
37
38   Float_t fDetCount[kDet];                             //counter detector wise
39   Float_t fDetIso[kDet];
40   Float_t fSMIso[kDet][kMaxSMN];
41   Float_t fSMCount[kDet][kMaxSMN];                     // counter
42   Float_t fCellIso[kDet][kMaxSMN][kMaxRow][kMaxCol];   // adc of iso cells
43   Float_t fCellCount[kDet][kMaxSMN][kMaxRow][kMaxCol]; // counter
44
45   Float_t fPedMeanRMS[kDet][kMaxSMN][kMaxRow][kMaxCol];// Pedestal Mean
46   FILE    *fpw;                            // write the temp file
47
48 ClassDef(AliPMDCalibGain,5)        // description 
49 };
50 #endif // ALIPMDCALIBGAIN_H