New version of the PMD DA avoiding the creation of huge amount of histograms. Now...
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibPedestal.h
index 7234657d29dba88a53a1b81ea7a374443a849414..861c557dad07c8333a50ff6156c9a68232f537ed 100644 (file)
@@ -7,6 +7,7 @@
 
 class TH1F;
 class AliRawReader;
+class TTree;
 
 class AliPMDCalibPedestal : public TObject {
 
@@ -17,14 +18,24 @@ public:
   virtual ~AliPMDCalibPedestal();
 
   Bool_t ProcessEvent(AliRawReader  *rawReader);
-  void   Analyse();
+  void   Analyse(TTree *pedtree);
 
 private:
 
-  TH1F *fPedHisto[2][24][96][96];
+  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];
+  
 
-  ClassDef(AliPMDCalibPedestal,1)
+  ClassDef(AliPMDCalibPedestal,3)
 };