1 #include "AliHLTPHOSRawAnalyzer.h"
8 AliHLTPHOSRawAnalyzer:: AliHLTPHOSRawAnalyzer():fFloatDataPtr(0), fSampleFrequency(10), fTau(2), fDTof(99999), fDAmpl(99999), n(99999)
17 * Attemps to level the basline to zero.
18 * The baseline will be calculated from the pretrigger samples and subtracted from the
20 * If pretrigger samples are not present then the basline correction will be incorrect.
21 * @param dataPtr array for wich to correct the basline
22 * @param N the number of pretrigger samples used to calculate the baseline.
25 AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, int N)
27 fFloatDataPtr = dataPtr;
29 cout << "Baseline correction not yet implemeted" << endl;
30 } //end BaselineCorrection
33 * Shifts the basline with the amount given by baselineValue
34 * If pretrigger samples are not present then the basline correction will be incorrect.
35 * @param dataPtr array for wich to correct the basline
36 * @param BaslineValue the basline value to subtract..
39 AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, double baselineValue)
41 fFloatDataPtr = dataPtr;
42 printf("\nbaselineValue = %f\n", baselineValue);
43 cout << "Baseline correction not yet implemeted" << endl;
44 } //end BaslineCorrection
48 * Gives the timing in entities of sample indexes
49 * Physical time is found by multiplying with the sampling intervall (Ts).
52 AliHLTPHOSRawAnalyzer::GetTiming()
59 * Gives the time in entities of ADC channels (quantization levels).
60 * Absolute enrgy is found by multiplying with offline calibration constants.
63 AliHLTPHOSRawAnalyzer::GetEnergy()
70 * Set data array. Overrides data data array set in the constructor.
73 AliHLTPHOSRawAnalyzer::SetData(double *data)
77 cout << "Set data not yet implemented" << endl;