#include "TFile.h"
#include "AliCaloPeakFinderVectors.h"
#include <iostream>
+//#include "AliEMCALRawUtils.h"
+
using namespace std;
AliCaloRawAnalyzerPeakFinder::AliCaloRawAnalyzerPeakFinder() :AliCaloRawAnalyzer("Peak-Finder", "PF"),
- fAmp(0),
+// fAmp(0),
fPeakFinderVectors(0),
fRunOnAlien(false),
fIsInitialized(false)
int first = 0;
int last = 0;
short maxrev = maxampindex - bunchvector.at(index).GetStartBin();
- SelectSubarray( fReversed, bunchvector.at(index).GetLength(), maxrev, &first, &last);
+ SelectSubarray( fReversed, bunchvector.at(index).GetLength(), maxrev, &first, &last, fFitArrayCut);
int nsamples = last - first;
if( ( nsamples ) >= fNsampleCut ) // no if statement needed really; keep for readability
fAmp = maxf;
}
- tof = timebinOffset - 0.01*tof/fAmp; // clock ticks
+ // tof = timebinOffset - 0.01*tof/fAmp; // clock ticks
+ tof = timebinOffset - 0.01*tof/fAmp - fL1Phase/TIMEBINWITH; // clock
+
// use local-array time for chi2 estimate
Float_t chi2 = CalculateChi2(fAmp, tof-timebinOffset+maxrev, first, last);
Int_t ndf = last - first - 1; // nsamples - 2