memory leakage solved, writes pedestal ascii file to be loaded to
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibPedestal.h
index 2fc5cd6006152b131f096df77e76c9963b486755..5c215c122d3c1ae2efc155d3ba6477b0404ffc32 100644 (file)
@@ -7,6 +7,7 @@
 
 class TH1F;
 class AliRawReader;
 
 class TH1F;
 class AliRawReader;
+class TTree;
 
 class AliPMDCalibPedestal : public TObject {
 
 
 class AliPMDCalibPedestal : public TObject {
 
@@ -16,15 +17,27 @@ public:
   AliPMDCalibPedestal& operator = (const  AliPMDCalibPedestal &source);
   virtual ~AliPMDCalibPedestal();
 
   AliPMDCalibPedestal& operator = (const  AliPMDCalibPedestal &source);
   virtual ~AliPMDCalibPedestal();
 
-  Bool_t ProcessEvent(AliRawReader  *rawReader);
+  Bool_t ProcessEvent(AliRawReader  *rawReader, TObjArray *pmdddlcont);
   void   Analyse(TTree *pedtree);
 
 private:
 
   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)
 };
 
 
 };