X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FPHOS%2FAliHLTPHOSRawAnalyzerPeakFinder.h;h=08f089804dec8786969141b7c362fe5f440fc03a;hb=5051b84c04800e47a7ee889226cee91be7a79f31;hp=d93f573255f1539911579a3312ed881eb210029f;hpb=0a211711ffecdfe31deb6deb0504fc7cac17c5e8;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h b/HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h index d93f573255f..08f089804de 100644 --- a/HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h +++ b/HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h @@ -1,30 +1,83 @@ +//-*- Mode: C++ -*- +// $Id$ + #ifndef ALIHLTPHOSRAWANALYZERPEAKFINDER_H #define ALIHLTPHOSRAWANALYZERPEAKFINDER_H /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ -#include -#include "TObject.h" +//#include +//#include "TObject.h" #include "AliHLTPHOSRawAnalyzer.h" - +//#include "AliHLTPHOSBase.h" +//class AliHLTPHOSUtilities; class AliHLTPHOSRawAnalyzerPeakFinder : public AliHLTPHOSRawAnalyzer { public: AliHLTPHOSRawAnalyzerPeakFinder(); - AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & ); - AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder) - { - return *this; - } - + // AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & ); + // AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &) + // { + // return *this; + // } + virtual ~AliHLTPHOSRawAnalyzerPeakFinder(); - void SetTVector(double *tVector); - void SetAVector(double *aVector); - virtual void Evaluate(int start = 0, int lenght = 100); + + +/** +* Extraction of timing and energy using the Peakfinde Algorithm. +* The. The parameters "start" and "length" defines a sub array of the data array +* that will be used for the the fit. If start+length must not exeed the total length +* of the Data array. "start" must be chosen as close as possible to t0. +* The baseline must also be subtracted. +* The length of "tVector" and "aVector" mus be equal to length. +* "index + length" must not exeed the length of the data array set in the constructor. +* @param tVectPtr the peakfinder vector for timing +* @param size size in number of values of the time vector +*/ + virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0); + + + +/** +* Extraction of timing and energy using the Peakfinde Algorithm. +* The. The parameters "start" and "length" defines a sub array of the data array +* that will be used for the the fit. If start+length must not exeed the total length +* of the Data array. "start" must be chosen as close as possible to t0. +* The baseline must also be subtracted. +* The length of "tVector" and "aVector" mus be equal to length. +* "index + length" must not exeed the length of the data array set in the constructor. +* @param aVectPtr the peakfinder vector for timing +* @param size size in number of values of the time vector +*/ + virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0); + + +/** +* Extraction of timing and energy using the Peakfinde Algorithm. +* The. The parameters "start" and "length" defines a sub array of the data array +* that will be used for the the fit. If start+length must not exeed the total length +* of the Data array. "start" must be chosen as close as possible to t0. +* The baseline must also be subtracted. +* The length of "tVector" and "aVector" mus be equal to length. +* "index + length" must not exeed the length of the data array set in the constructor. +* @param start the start index of the subarray of the data array. +* @param length the number of samples to use starting from index +**/ + virtual void Evaluate(Int_t start = 0, Int_t length = 100); + private: - double *tVector; /**