#include "TGraph.h"
#include "TRandom.h"
+#include "AliEMCALRawResponse.h"
+
+
using namespace std;
ClassImp( 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;
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);
//__________________________________________________________________
+
+/*
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];
}
return signal ;
}
-
+*/