1 #ifndef ALIPHOSRAWDECODERV1_H
2 #define ALIPHOSRAWDECODERV1_H
3 /* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
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.
12 #include "AliRawReader.h"
13 #include "AliCaloRawStream.h"
14 #include "AliPHOSRawDecoder.h"
18 class AliPHOSRawDecoderv1 : public AliPHOSRawDecoder {
22 AliPHOSRawDecoderv1();
23 AliPHOSRawDecoderv1(AliRawReader* rawReader, AliAltroMapping **mapping = NULL);
24 AliPHOSRawDecoderv1(const AliPHOSRawDecoderv1& rawDecoder);
25 AliPHOSRawDecoderv1& operator = (const AliPHOSRawDecoderv1& rawDecoder);
26 virtual ~AliPHOSRawDecoderv1();
28 virtual Bool_t NextDigit();
30 static Double_t Gamma2(Double_t dt,Double_t en,Double_t b,TArrayD * fitparams) ; // Shape of correct sample
31 //class member function (not object member function)
32 static void UnfoldingChiSquare(Int_t & nPar, Double_t * Grad, Double_t & fret, Double_t * x, Int_t iflag) ;
33 // Chi^2 of the fit. Should be static to be passed to MINUIT
34 void SetLowGainParams(Int_t n, Double_t * params){fSampleParamsLow->Set(n,params) ;} //fixed parameters of fit function
35 void SetHighGainParams(Int_t n,Double_t * params){fSampleParamsHigh->Set(n,params) ;} //fixed parameters of fit function
38 TArrayD *fSampleParamsLow ; //Fixed params of sample parameterization for Low gain
39 TArrayD *fSampleParamsHigh; //Fixed params of sample parameterization for High gain
40 TList * fToFit ; //! container to transfer parameters and data to fit
42 ClassDef(AliPHOSRawDecoderv1,1)