Coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRawFitterv2.h
CommitLineData
379c5c09 1#ifndef ALIPHOSRAWFITTERV2_H
2#define ALIPHOSRAWFITTERV2_H
3/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: $ */
7
6a265faf 8// This class extracts amplitude, t0 and quality of the PHOS "samples"
9// ising FastFit and two-exponent parameterization
379c5c09 10
11#include "AliPHOSRawFitterv0.h"
6a265faf 12class TArrayD ;
379c5c09 13
14class AliPHOSRawFitterv2 : public AliPHOSRawFitterv0 {
15
16public:
17
18 AliPHOSRawFitterv2();
19 AliPHOSRawFitterv2(const AliPHOSRawFitterv2& rawFitter);
20 AliPHOSRawFitterv2& operator = (const AliPHOSRawFitterv2& rawFitter);
21 virtual ~AliPHOSRawFitterv2();
22
92236b27 23 virtual Bool_t Eval(const UShort_t *signal, Int_t sigStart, Int_t sigLength);
6a265faf 24 void SetRawParams(Double_t alpha, Double_t beta){fAlpha=alpha; fBeta=beta;}
379c5c09 25
6a265faf 26private:
27 Bool_t FindAmpT(TArrayD samples, TArrayD times) ;
28 void FindMax() ;
379c5c09 29
30private:
6a265faf 31 Double_t fAlpha ; //Parameter of sample shape
32 Double_t fBeta ; //Parameter of sample shape
33 Double_t fMax ; //Maximum of parameterization
379c5c09 34
6a265faf 35 ClassDef(AliPHOSRawFitterv2,2)
379c5c09 36};
37
38#endif