]>
Commit | Line | Data |
---|---|---|
57839add | 1 | #ifndef ALICALORAWANALYZERPEAKFINDER_H |
2 | #define ALICALORAWANALYZERPEAKFINDER_H | |
d655d7dd | 3 | |
e37e3c84 | 4 | |
d655d7dd | 5 | /************************************************************************** |
e37e3c84 | 6 | * This file is property of and copyright by * |
7 | * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 * | |
8 | * * | |
9 | * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu> * | |
d655d7dd | 10 | * * |
d655d7dd | 11 | * Contributors are mentioned in the code where appropriate. * |
e37e3c84 | 12 | * Please report bugs to p.t.hille@fys.uio.no * |
d655d7dd | 13 | * * |
14 | * Permission to use, copy, modify and distribute this software and its * | |
15 | * documentation strictly for non-commercial purposes is hereby granted * | |
16 | * without fee, provided that the above copyright notice appears in all * | |
17 | * copies and that both the copyright notice and this permission notice * | |
18 | * appear in the supporting documentation. The authors make no claims * | |
19 | * about the suitability of this software for any purpose. It is * | |
20 | * provided "as is" without express or implied warranty. * | |
21 | **************************************************************************/ | |
22 | ||
e37e3c84 | 23 | |
d655d7dd | 24 | // The Peak-Finder algorithm |
25 | // The amplitude is extracted as a | |
26 | // weighted sum of the samples using the | |
27 | // best possible weights. | |
28 | ||
29 | ||
57839add | 30 | #include "AliCaloRawAnalyzer.h" |
d655d7dd | 31 | |
32 | #define MAXSTART 3 | |
33 | #define SAMPLERANGE 15 | |
34 | #define SHIF 0.5 | |
35 | ||
57839add | 36 | class AliCaloBunchInfo; |
d655d7dd | 37 | |
e37e3c84 | 38 | |
57839add | 39 | class AliCaloRawAnalyzerPeakFinder : public AliCaloRawAnalyzer |
d655d7dd | 40 | { |
41 | public: | |
57839add | 42 | AliCaloRawAnalyzerPeakFinder(); |
43 | virtual ~AliCaloRawAnalyzerPeakFinder(); | |
44 | virtual AliCaloFitResults Evaluate( const vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2 ); | |
d655d7dd | 45 | |
46 | private: | |
e37e3c84 | 47 | AliCaloRawAnalyzerPeakFinder( const AliCaloRawAnalyzerPeakFinder & ); |
48 | AliCaloRawAnalyzerPeakFinder & operator = ( const AliCaloRawAnalyzerPeakFinder & ); | |
d655d7dd | 49 | |
48a2e3eb | 50 | void LoadVectors(); |
51 | Double_t ScanCoarse(const Double_t *const array, const int length ) const ; // Find a rough estimate of peak position and t0 | |
52 | ||
53 | // void PolTof( const double rectof ) const; | |
54 | ||
55 | double *fPFAmpVectorsCoarse[MAXSTART][SAMPLERANGE]; // Vectors for Amplitude extraction, first iteration | |
56 | double *fPFTofVectorsCoarse[MAXSTART][SAMPLERANGE]; // Vectors for TOF extraction, first iteration | |
57 | ||
58 | double *fPFAmpVectors[MAXSTART][SAMPLERANGE]; // Vectors for Amplitude extraction, second iteration | |
59 | double *fPFTofVectors[MAXSTART][SAMPLERANGE]; // Vectors for TOF extraction, second iteration | |
e37e3c84 | 60 | |
61 | // double fTof; | |
62 | // double fAmp; | |
63 | ||
64 | double fAmpA[3]; // The amplitude of the signal (eveluate 3 times using 3 differtnt phase shifts of the input samples ) | |
8ffb0474 | 65 | // double fAmp2; |
66 | // double fAmp3; | |
d655d7dd | 67 | |
e37e3c84 | 68 | ClassDef( AliCaloRawAnalyzerPeakFinder, 1 ) |
69 | ||
d655d7dd | 70 | }; |
71 | ||
72 | #endif |