52 UInt_t altrocfg1, UInt_t altrocfg2 )
56 int index =
SelectBunch( bunchvector, &maxampindex, &maxamp );
61 Float_t maxf = TMath::MaxElement( bunchvector.at(index).GetLength(),
fReversed );
62 short timebinOffset = maxampindex - (bunchvector.at(index).GetLength()-1);
73 int maxrev = maxampindex - bunchvector.at(index).GetStartBin();
77 int nsamples = last - first + 1;
81 Double_t ordered[1008];
83 for(
int i=0; i < nsamples ; i++ )
97 eSignal, dTau, dAmp, eAmp, dTime0, eTime, chi2);
98 Double_t dTimeMax = dTime0 + timebinOffset - (maxrev - first)
101 return AliCaloFitResults(maxamp,ped,
Ret::kFitPar,dAmp,timemax,(
int)timemax,chi2,
Ret::kDummy,
Ret::kDummy,
AliCaloFitSubarray(index,maxrev,first,last));
107 Int_t ndf = last - first - 1;
108 return AliCaloFitResults( maxamp, ped,
Ret::kCrude, maxf, time, (
int)time, chi2, ndf,
Ret::kDummy,
AliCaloFitSubarray(index, maxrev, first, last) );
int fFitArrayCut
Cut on ADC value (after ped. subtraction) for signals used for fit.
AliCaloRawAnalyzerFastFit()
Constructor.
Raw data fitting: special fast fit.
Float_t fAmpCut
Max ADC - pedestal must be higher than this befor attemting to extract the amplitude.
int fOverflowCut
Value when ADC starts to saturate.
int fNsampleCut
Minimum number of sample require before attemting to extract signal parameters.
virtual void FastFit(Int_t *t, Int_t *y, Int_t nPoints, Double_t sig, Double_t tau, Double_t n, Double_t ped, Double_t tMax)
Fast fit.
Container class to hold info from bunches/samples.
int SelectBunch(const std::vector< AliCaloBunchInfo > &bunchvector, short *maxampbin, short *maxamplitude)
We select the bunch with the highest amplitude unless any time constraints is set.
const double TIMEBINWITH
each sample is 100 ns
Container class to hold results from fitting.
Raw data fitters base class.
double fXaxis[ALTROMAXSAMPLES]
Axis if time bins, ( used by TGraph )
Algo::fitAlgorithm fAlgo
Which algorithm to use.
void SelectSubarray(const Double_t *date, int length, short maxindex, int *first, int *last, int cut) const
Float_t ReverseAndSubtractPed(const AliCaloBunchInfo *bunch, UInt_t altrocfg1, UInt_t altrocfg2, double *outarray) const
Double_t fReversed[ALTROMAXSAMPLES]
Reversed sequence of samples (pedestalsubtracted)
Double_t CalculateChi2(const Double_t amp, const Double_t time, const Int_t first, const Int_t last, const Double_t adcErr=1, const Double_t tau=2.35) const
virtual AliCaloFitResults Evaluate(const std::vector< AliCaloBunchInfo > &bunchvector, UInt_t altrocfg1, UInt_t altrocfg2)
Execute algorithm.
Double_t fL1Phase
Phase of the ADC sampling clock relative to the LHC clock.