]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0CalibWalk.h
change a bit the logic of the selection of photons in the calorimeter acceptance
[u/mrichter/AliRoot.git] / T0 / AliT0CalibWalk.h
index fd63dc407667f1c6b8b0bc7d0d036100f0bb6071..a02d39659984a32dd0c7d3bee2d015512b4b7209 100644 (file)
@@ -5,7 +5,7 @@
  * See cxx source for full Copyright notice                               */
 
 ////////////////////////////////////////////////
-//  class for T0 calibration                 //
+//  class for T0 amplitude calibration                 //
 ////////////////////////////////////////////////
 
 #include "TNamed.h"
@@ -23,31 +23,23 @@ class AliT0CalibWalk: public TNamed {
   
   
   TGraph *GetWalk(Int_t ipmt )  const {return (TGraph*)fWalk.At(ipmt);}
-  void SetWalk(Int_t ipmt) ;
   TObjArray* GetfWalk() {return &fWalk;}    
 
-  TGraph *GetQTC(Int_t ipmt )  const {return (TGraph*)fQTC.At(ipmt);}
-  // void SetQTC(Int_t ipmt) ;
-  
-  TGraph *GetAmpLED(Int_t ipmt )  const {return (TGraph*)fAmpLED.At(ipmt);}
-  //  void SetAmpLED(Int_t ipmt) ;
-  void MakeWalkCorrGraph(const char *laserFile);
-  
-  
-
+  TGraph *GetQTC(Int_t ipmt )  const {return (TGraph*)fQTC.At(ipmt);} 
+  TGraph *GetAmpLED(Int_t ipmt )  const {return (TGraph*)fAmpLED.At(ipmt);} 
+  Bool_t MakeWalkCorrGraph(const char *laserFile);
   TGraph *  GetAmpLEDRec(Int_t ipmt) const   {return (TGraph*)fAmpLEDRec.At(ipmt);}
-  void     SetAmpLEDRec(Int_t ipmt) ;
-   
+  void    GetMeanAndSigma(TH1F* hist, Float_t &mean, Float_t &sigma);
+  void SetCalibByData(Bool_t calib) {fCalibByData=calib;}
  protected:
    
    TObjArray   fWalk;  //time - amp. walk
-   TObjArray fAmpLEDRec;  //time - amp. LED-CFD for reconstruction
+   TObjArray   fAmpLEDRec;  //time - amp. LED-CFD for reconstruction
    TObjArray   fQTC;  //time - amp. walk
-   TObjArray fAmpLED;  //time - amp. LED-CFD for reconstruction
-  
+   TObjArray   fAmpLED;  //time - amp. LED-CFD for reconstruction
+   Bool_t fCalibByData;
    //
-   ClassDef(AliT0CalibWalk,2)    // T0 Sensor Calibration data
+   ClassDef(AliT0CalibWalk,6)    // T0 Amplitude Calibration data
      };
 
      typedef AliT0CalibWalk AliSTARTCalibWalk; // for backward compatibility