]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCCalibPedestal.h
Jens changes - common base class for the Raw data calibration
[u/mrichter/AliRoot.git] / TPC / AliTPCCalibPedestal.h
index a56aff0512972210afef64a34875cdab4e8a39ef..e6bd0e1858cc5a3057e258c172e62bfedd0eafa8 100644 (file)
@@ -3,10 +3,8 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-
-
-#include <TObject.h>
 #include <TObjArray.h>
+#include "AliTPCCalibRawBase.h"
 
 class TArrayF;
 class TH2F;
@@ -21,7 +19,7 @@ class TMap;
 
 struct eventHeaderStruct;
 
-class AliTPCCalibPedestal : public TObject {
+class AliTPCCalibPedestal : public AliTPCCalibRawBase {
 
 public:
   AliTPCCalibPedestal();
@@ -31,16 +29,9 @@ public:
 
   AliTPCCalibPedestal& operator = (const  AliTPCCalibPedestal &source);
 
-  Bool_t ProcessEventFast(AliTPCRawStreamFast *rawStreamFast);
-  Bool_t ProcessEventFast(AliRawReader        *rawReader);
-
-  Bool_t ProcessEvent(AliTPCRawStream *rawStream);
-  Bool_t ProcessEvent(AliRawReader    *rawReader);
-  Bool_t ProcessEvent(eventHeaderStruct   *event);
-
-  Int_t  Update(const Int_t isector, const Int_t iRow, const Int_t iPad,
+  virtual Int_t  Update(const Int_t isector, const Int_t iRow, const Int_t iPad,
                const Int_t iTimeBin, const Float_t signal);
-  void   Analyse();
+  virtual void   Analyse();
   //
   AliTPCAltroMapping **GetAltroMapping() { return fMapping; };
   void  SetAltroMapping(AliTPCAltroMapping **mapp) { fMapping = mapp; };
@@ -56,20 +47,16 @@ public:
   const TObjArray* GetCalPadRMS(){return &fCalRocArrayRMS;}             // get calibration object
   
   TH2F* GetHistoPedestal  (Int_t sector, Bool_t force=kFALSE);          // get refernce histogram
-  void  DumpToFile(const Char_t *filename, const Char_t *dir="", Bool_t append=kFALSE);
   //
   void  SetTimeAnalysis(Bool_t time = kTRUE);                  // Use ONLY in TPCPEDESTALda on LDC for one sector!
   void  AnalyseTime(Int_t nevents);                            // Makes sense only in TPCPEDESTALda on LDC!
   TArrayF **GetTimePedestals()  const { return fTimeSignal; }  // Get array with time dependent pedestals (for one sector!)
   //
-  Int_t   GetFirstTimeBin() const { return fFirstTimeBin; }
-  Int_t   GetLastTimeBin()  const { return fLastTimeBin;  }
   Int_t   GetAdcMin()       const { return fAdcMin;       }
   Int_t   GetAdcMax()       const { return fAdcMax;       }
   Float_t GetAnaMeanDown()  const { return fAnaMeanDown;  }
   Float_t GetAnaMeanUp()    const { return fAnaMeanUp;    }
   
-  void  SetRangeTime(Int_t tMin, Int_t tMax){ fFirstTimeBin=tMin; fLastTimeBin=tMax; }  // Set time bin range that is used for the pedestal calibration
   void  SetRangeAdc (Int_t aMin, Int_t aMax){ fAdcMin=aMin; fAdcMax=aMax; }  // Set adc range for the pedestal calibration
   void  SetAnalysisTruncationRange(Float_t down, Float_t up) {fAnaMeanDown=down; fAnaMeanUp=up;}    //Set range for truncated mean analysis of the channel information
 
@@ -78,10 +65,6 @@ public:
   Bool_t TestEvent();  // Test the fast approach to fill histogram - used for test purposes
 
 private:
-
-  Int_t fFirstTimeBin;              //  First Time bin needed for analysis
-  Int_t fLastTimeBin;               //  Last Time bin needed for analysis
-
   Int_t fAdcMin;                    //  min adc channel of pedestal value
   Int_t fAdcMax;                    //  max adc channel of pedestal value
 
@@ -90,9 +73,6 @@ private:
   
   Bool_t  fTimeAnalysis;            //! Should we use the time dependent analysis? ONLY ON LDC!
 
-  AliTPCROC *fROC;                  //! ROC information
-  AliTPCAltroMapping **fMapping;    //! Altro Mapping object
-
   TObjArray fCalRocArrayPedestal;   //  Array of AliTPCCalROC class for pedestal values from gaus fit
   TObjArray fCalRocArraySigma;      //  Array of AliTPCCalROC class for noise values from gaus fit
 
@@ -110,7 +90,7 @@ private:
   AliTPCCalROC* GetCalRoc(Int_t sector, TObjArray* arr, Bool_t force);
 
 public:
-  ClassDef(AliTPCCalibPedestal, 6)  // Implementation of the TPC pedestal and noise calibration
+  ClassDef(AliTPCCalibPedestal, 7)  // Implementation of the TPC pedestal and noise calibration
 };