44 for(
int i=0; i < 5 ; i++)
65 UInt_t altrocfg1, UInt_t altrocfg2 )
67 if( bunchvector.size() <= 0 )
77 int index =
SelectBunch( bunchvector, &maxampindex , &maxamp ) ;
86 short timebinOffset = maxampindex - (bunchvector.at(index).GetLength()-1);
87 double maxf = maxamp - ped;
98 short maxrev = maxampindex - bunchvector.at(index).GetStartBin();
106 if ( ( maxrev - first) < 2 && (last - maxrev ) < 2)
109 ndf = last - first - 1;
116 for(
int i=0; i < 5 ; i++)
126 chi2 =
CalculateChi2(amp, tof-timebinOffset+maxrev, first, last);
127 ndf = last - first - 1;
136 ndf = last - first - 1;
int fFitArrayCut
Cut on ADC value (after ped. subtraction) for signals used for fit.
Double_t Value(int index, Double_t in0, Double_t in1, Double_t in2, Double_t in3, Double_t in4)
Base class for extraction of signal amplitude and peak position.
int fOverflowCut
Value when ADC starts to saturate.
Container class to hold info from bunches/samples.
virtual AliCaloFitResults Evaluate(const std::vector< AliCaloBunchInfo > &bunchvector, UInt_t altrocfg1, UInt_t altrocfg2)
The evaluation of Peak position and amplitude using the Neural Network.
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 fitting: Neural network.
Utility Class for Neural Network fit.
AliCaloNeuralFit * fNeuralNet
Pointer to the class whick actually implements the Neural Network for EMCAL.
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
AliCaloRawAnalyzerNN()
Constructor.
Double_t fNNInput[5]
The 5 input Neurons to the network ( mix bin + to samples on each side )
Double_t fL1Phase
Phase of the ADC sampling clock relative to the LHC clock.
virtual ~AliCaloRawAnalyzerNN()
Destructor.