]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloRawAnalyzerKStandard.cxx
Refactoring: Functions related to the shaper response
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerKStandard.cxx
index 3850adabd0c62ca9d34d4971986446f372fee5b0..144b3c5a284a2d33e905b6675de568c8b7b35a11 100644 (file)
@@ -35,6 +35,9 @@
 #include "TGraph.h"
 #include "TRandom.h"
 
+#include "AliEMCALRawResponse.h"
+
+
 using namespace std;
 
 ClassImp( AliCaloRawAnalyzerKStandard )
@@ -56,6 +59,7 @@ AliCaloRawAnalyzerKStandard::~AliCaloRawAnalyzerKStandard()
 AliCaloFitResults
 AliCaloRawAnalyzerKStandard::Evaluate( const vector<AliCaloBunchInfo>  &bunchlist, const UInt_t altrocfg1,  const UInt_t altrocfg2 )
 {
+  //Evaluation Amplitude and TOF
   Float_t pedEstimate  = 0;
   short maxADC = 0;
   Int_t first = 0;
@@ -131,7 +135,10 @@ void
       gSig->SetPoint(i, timebin, GetReversed(timebin)); 
     }
       
-  TF1 * signalF = new TF1("signal", RawResponseFunction, 0, TIMEBINS , 5);
+  
+  //  TF1 * signalF = new TF1("signal", RawResponseFunction, 0, TIMEBINS , 5);
+  TF1 * signalF = new TF1("signal", AliEMCALRawResponse::RawResponseFunction, 0, TIMEBINS , 5);
+  
   signalF->SetParameters(10.,5., TAU  ,ORDER,0.); //set all defaults once, just to be safe
   signalF->SetParNames("amp","t0","tau","N","ped");
   signalF->FixParameter(2,TAU); 
@@ -227,9 +234,12 @@ AliCaloRawAnalyzerKStandard::FitParabola(const TGraph *gSig, Float_t & amp) cons
 
 
 //__________________________________________________________________
+
+/*
 Double_t 
-AliCaloRawAnalyzerKStandard::RawResponseFunction(Double_t *x, Double_t *par)
+AliCaloRawAnalyzerKStandard::RawResponseFunction(const Double_t *x, const Double_t *par)
 {
+  // Comment
   Double_t signal = 0.;
   Double_t tau    = par[2];
   Double_t n      = par[3];
@@ -243,4 +253,4 @@ AliCaloRawAnalyzerKStandard::RawResponseFunction(Double_t *x, Double_t *par)
   }
   return signal ;  
 }
-
+*/