]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCCalibData.h
Update of PID config file bt Silvia
[u/mrichter/AliRoot.git] / ZDC / AliZDCCalibData.h
index b973b4f4ed7f8a962b63441aa5b3eeb9a85698ba..2048d1e84a8e72b98e80c5ee90911178964e1f06 100644 (file)
 
 #include "TNamed.h"
 #include "TH1.h"
-#include "AliZDC.h"
 #include "AliCDBEntry.h"
 
+class AliZDC;
+
 class AliZDCCalibData: public TNamed {
 
  public:
@@ -24,31 +25,67 @@ class AliZDCCalibData: public TNamed {
   void Reset();
   virtual void  Print(Option_t *) const; 
   //
-  Float_t  GetMeanPed(Int_t channel)           const {return fMeanPedestal[channel];}
-  Float_t* GetMeanPed()   const {return (float*)fMeanPedestal;}
-  Float_t  GetOOTPed(Int_t channel)    const {return fOOTPedestal[channel];}
-  Float_t* GetOOTPed()   const {return (float*)fOOTPedestal;}
+  Float_t  GetMeanPed(Int_t channel)              const {return fMeanPedestal[channel];}
+  Float_t* GetMeanPed()                   const {return (float*)fMeanPedestal;}
+  Float_t  GetMeanPedWidth(Int_t channel)  const {return fMeanPedWidth[channel];}
+  Float_t* GetMeanPedWidth()                      const {return (float*)fMeanPedWidth;}
+  Float_t  GetOOTPed(Int_t channel)       const {return fOOTPedestal[channel];}
+  Float_t* GetOOTPed()                    const {return (float*)fOOTPedestal;}
+  Float_t  GetOOTPedWidth(Int_t channel)   const {return fOOTPedWidth[channel];}
+  Float_t* GetOOTPedWidth()               const {return (float*)fOOTPedWidth;}
+  Float_t  GetPedCorrCoeff0(Int_t channel) const {return fPedCorrCoeff[0][channel];}
+  Float_t  GetPedCorrCoeff1(Int_t channel) const {return fPedCorrCoeff[1][channel];}
+  Float_t* GetPedCorrCoeff()              const {return (float*)fPedCorrCoeff;}
+  //
   Float_t  GetEnCalib(Int_t channel)   const {return fEnCalibration[channel];}
-  Float_t* GetEnCalib()   const {return (float*)fEnCalibration;}
+  Float_t* GetEnCalib()                const {return (float*)fEnCalibration;}
+  //
+  Float_t  GetPMTHVVal(Int_t channel)   const {return fPMTHVVal[channel];}
+  Float_t* GetPMTHVVal()                 const {return (float*)fPMTHVVal;}
+   //
+  Float_t  GetZDCTablePos(Int_t channel) const {return fZDCTablePos[channel];}
+  Float_t* GetZDCTablePos()             const {return (float*)fZDCTablePos;}
+  //
+  void  SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;}
+  void  SetMeanPed(Float_t* MeanPed);
+  void  SetMeanPedWidth(Int_t channel, Float_t val) {fMeanPedWidth[channel]=val;}
+  void  SetMeanPedWidth(Float_t* MeanPedWidth);
+  void  SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;}
+  void  SetOOTPed(Float_t* OOTPed);
+  void  SetOOTPedWidth(Int_t channel, Float_t val) {fOOTPedWidth[channel]=val;}
+  void  SetOOTPedWidth(Float_t* OOTPedWidth);
+  void  SetPedCorrCoeff(Int_t channel, Float_t valCoeff0, Float_t valCoeff1)
+       {fPedCorrCoeff[0][channel]=valCoeff0; fPedCorrCoeff[1][channel]=valCoeff1;}
+  void  SetPedCorrCoeff(Float_t* PedCorrCoeff);
+  void  SetPedCorrCoeff(Float_t* PedCorrCoeff0, Float_t* PedCorrCoeff1);
+  //
+  void         SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
+  void         SetEnCalib(Float_t* EnCalib);
+  //
+  void         SetPMTHVVal(Int_t channel, Float_t val) {fPMTHVVal[channel]=val;}
+  void         SetPMTHVVal(Float_t* HVVal);
   //
-  void     SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;}
-  void     SetMeanPed(Float_t* MeanPed);
-  void     SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;}
-  void     SetOOTPed(Float_t* OOTPed);
-  void            SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
-  void            SetEnCalib(Float_t* EnCalib);
+  void         SetZDCTablePos(Int_t channel, Float_t val) {fZDCTablePos[channel]=val;}
+  void         SetZDCTablePos(Float_t* ZDCTablePos);
   //
-  void     PrepHistos();
-  TH1F*    GetHistMeanPed() const {return fHistMeanPed;}
-  void     CleanHistos();
+  void  SetDCSCalibData(Float_t* DCSData);
 
  protected:
-  Float_t  fMeanPedestal[47];  // Mean pedestal values (0 = high gain, 1 = low gain)
-  Float_t  fOOTPedestal[44];   // "Out of Time" pedestal values
-  Float_t  fEnCalibration[6];  // Coeff. for energy calibration
-  TH1F*    fHistMeanPed;        //! histos for drawing mean pedestals
+  // --- Pedestals
+  Float_t  fMeanPedestal[47];   // Mean pedestal values 
+  Float_t  fMeanPedWidth[47];   // Mean pedestal values 
+  Float_t  fOOTPedestal[44];    // "Out of Time" pedestal values
+  Float_t  fOOTPedWidth[44];    // "Out of Time" pedestal values
+  Float_t  fPedCorrCoeff[2][44]; // Fit of correlation in-time vs. out-of-time
+  // --- E calibration
+  Float_t  fEnCalibration[6];   // Coeff. for energy calibration
+  // --- PMTs HV values
+  Float_t  fPMTHVVal[22];       // PMTs HV values
+  // --- Values for alignement
+  Float_t  fZDCTablePos[4];     // Vertical value for ZDC tables
   //
-  ClassDef(AliZDCCalibData,2)    // ZDC  Calibration data
+  ClassDef(AliZDCCalibData,4)    // ZDC  Calibration data
 };
 
 #endif