]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliCaloRawAnalyzerPeakFinder.h
row and col are correctly put in sigmaY
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerPeakFinder.h
CommitLineData
57839add 1#ifndef ALICALORAWANALYZERPEAKFINDER_H
2#define ALICALORAWANALYZERPEAKFINDER_H
d655d7dd 3
4/**************************************************************************
5 * This file is property of and copyright by the Experimental Nuclear *
6 * Physics Group, Dep. of Physics *
7 * University of Oslo, Norway, 2007 *
8 * *
9 * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
10 * Contributors are mentioned in the code where appropriate. *
11 * Please report bugs to perthi@fys.uio.no *
12 * *
13 * Permission to use, copy, modify and distribute this software and its *
14 * documentation strictly for non-commercial purposes is hereby granted *
15 * without fee, provided that the above copyright notice appears in all *
16 * copies and that both the copyright notice and this permission notice *
17 * appear in the supporting documentation. The authors make no claims *
18 * about the suitability of this software for any purpose. It is *
19 * provided "as is" without express or implied warranty. *
20 **************************************************************************/
21
22// The Peak-Finder algorithm
23// The amplitude is extracted as a
24// weighted sum of the samples using the
25// best possible weights.
26
27
57839add 28#include "AliCaloRawAnalyzer.h"
d655d7dd 29
30#define MAXSTART 3
31#define SAMPLERANGE 15
32#define SHIF 0.5
33
57839add 34class AliCaloBunchInfo;
d655d7dd 35
57839add 36class AliCaloRawAnalyzerPeakFinder : public AliCaloRawAnalyzer
d655d7dd 37{
38 public:
57839add 39 AliCaloRawAnalyzerPeakFinder();
40 virtual ~AliCaloRawAnalyzerPeakFinder();
41 virtual AliCaloFitResults Evaluate( const vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2 );
d655d7dd 42
43 private:
57839add 44 // AliCaloRawAnalyzerPeakFinder( const AliCaloRawAnalyzerPeakFinder & );
45 // AliCaloRawAnalyzerPeakFinder & operator = ( const AliCaloRawAnalyzerPeakFinder & );
d655d7dd 46
47 void LoadVectors();
48 double *fPFAmpVectors[MAXSTART][SAMPLERANGE]; // Vectors for Amplitude extraction
49 double *fPFTofVectors[MAXSTART][SAMPLERANGE]; // Vectors for TOF extraction
50 double fTof;
51 double fAmp;
8ffb0474 52 double fAmpA[3];
53 // double fAmp2;
54 // double fAmp3;
d655d7dd 55
56};
57
58#endif