memory leakage solved, writes pedestal ascii file to be loaded to
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibPedestal.h
index 172b144e0e777276b22cceec15fa0ce02986f74b..5c215c122d3c1ae2efc155d3ba6477b0404ffc32 100644 (file)
@@ -17,15 +17,27 @@ public:
   AliPMDCalibPedestal& operator = (const  AliPMDCalibPedestal &source);
   virtual ~AliPMDCalibPedestal();
 
-  Bool_t ProcessEvent(AliRawReader  *rawReader);
+  Bool_t ProcessEvent(AliRawReader  *rawReader, TObjArray *pmdddlcont);
   void   Analyse(TTree *pedtree);
 
 private:
 
-  TH1F *fPedHisto[2][24][48][96];
-
-
-  ClassDef(AliPMDCalibPedestal,2)
+  enum
+      {
+         kDet    = 2,   // Number of Planes
+         kMaxSMN = 24,  // Number of Modules
+         kMaxRow = 48,  // Number of Rows
+         kMaxCol = 96   // Number of Columns
+      };
+
+  Float_t fPedVal[kDet][kMaxSMN][kMaxRow][kMaxCol];
+  Float_t fPedValSq[kDet][kMaxSMN][kMaxRow][kMaxCol];
+  Float_t fPedCount[kDet][kMaxSMN][kMaxRow][kMaxCol];
+  Int_t   fPedChain[6][51][25][64];
+  Int_t   fRunNumber;
+  Int_t   fEventNumber;
+
+  ClassDef(AliPMDCalibPedestal,5)
 };