]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | // This class extracts the PHOS "digits" of current event | |
9 | // (amplitude,time, position,gain) from the raw stream | |
10 | // provided by AliRawReader. See cxx source for use case. | |
11 | ||
12 | #include "AliPHOSRawFitterv0.h" | |
13 | class TList; | |
14 | ||
15 | class AliPHOSRawFitterv2 : public AliPHOSRawFitterv0 { | |
16 | ||
17 | public: | |
18 | ||
19 | AliPHOSRawFitterv2(); | |
20 | AliPHOSRawFitterv2(const AliPHOSRawFitterv2& rawFitter); | |
21 | AliPHOSRawFitterv2& operator = (const AliPHOSRawFitterv2& rawFitter); | |
22 | virtual ~AliPHOSRawFitterv2(); | |
23 | ||
92236b27 | 24 | virtual Bool_t Eval(const UShort_t *signal, Int_t sigStart, Int_t sigLength); |
379c5c09 | 25 | |
26 | void SetNTimeSamples(Short_t n=25) { fNtimeSamples=n ;} | |
27 | void SetLowGainTParams (Double_t *pars){ for(Int_t i=0;i<3;i++) fLGpar[i]=pars[i] ;} | |
28 | void SetHighGainTParams(Double_t *pars){ for(Int_t i=0;i<3;i++) fHGpar[i]=pars[i] ;} | |
29 | void SetRMScut(Double_t cut=2.) { fRMScut = cut ;} | |
30 | ||
31 | private: | |
32 | Short_t fNtimeSamples ; //Number of samples (after start) used to extract time | |
33 | Double_t fLGpar[3] ; //parameters for shape parameterization | |
34 | Double_t fHGpar[3] ; //parameters for shape parameterization | |
35 | Double_t fRMScut ; //cut to estmate goodness of sample | |
36 | ||
37 | ClassDef(AliPHOSRawFitterv2,1) | |
38 | }; | |
39 | ||
40 | #endif |