45 int index =
SelectBunch( bunchvector, &maxampindex, &maxamp );
50 Float_t maxf = TMath::MaxElement( bunchvector.at(index).GetLength(),
fReversed );
51 short timebinOffset = maxampindex - (bunchvector.at(index).GetLength()-1);
63 int maxrev = maxampindex - bunchvector.at(index).GetStartBin();
68 Int_t ndf = last - first - 1;
int fFitArrayCut
Cut on ADC value (after ped. subtraction) for signals used for fit.
Raw data fitting: crude fit.
Base class for extraction of signal amplitude and peak position.
Float_t fAmpCut
Max ADC - pedestal must be higher than this befor attemting to extract the amplitude.
virtual AliCaloFitResults Evaluate(const std::vector< AliCaloBunchInfo > &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2)
Extract signal.
int fOverflowCut
Value when ADC starts to saturate.
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.
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
Double_t fL1Phase
Phase of the ADC sampling clock relative to the LHC clock.
AliCaloRawAnalyzerCrude()
Constructor.