]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloRawAnalyzerKStandard.h
Refactoring: removal of dead code, and some cosmetics
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerKStandard.h
1 #ifndef ALICALORAWANALYZERSTANDARD_H
2 #define ALICALORAWANALYZERSTANDARD_H
3 /**************************************************************************
4  * This file is property of and copyright by                              *
5  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
6  *                                                                        *
7  * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
8  *                                                                        *
9  * Contributors are mentioned in the code where appropriate.              *
10  * Please report bugs to p.t.hille@fys.uio.no                             *
11  *                                                                        *
12  * Permission to use, copy, modify and distribute this software and its   *
13  * documentation strictly for non-commercial purposes is hereby granted   *
14  * without fee, provided that the above copyright notice appears in all   *
15  * copies and that both the copyright notice and this permission notice   *
16  * appear in the supporting documentation. The authors make no claims     *
17  * about the suitability of this software for any purpose. It is          *
18  * provided "as is" without express or implied warranty.                  *
19  **************************************************************************/
20
21 // Extraction of amplitude and peak position
22 // FRom CALO raw data using
23 // Chi square fit
24
25 #include "AliCaloRawAnalyzerFitter.h"
26 #include "AliCaloConstants.h"
27 class  TGraph;
28
29 class  AliCaloRawAnalyzerKStandard : public AliCaloRawAnalyzerFitter
30 {
31   friend class AliCaloRawAnalyzerFactory;
32
33  public:
34   virtual ~AliCaloRawAnalyzerKStandard();
35   virtual AliCaloFitResults  Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 );
36   static Double_t RawResponseFunction(Double_t *x, Double_t *par); 
37   void FitRaw(const Int_t firstTimeBin, const Int_t lastTimeBin, Float_t & amp, Float_t & time, 
38               Float_t & chi2, Bool_t & fitDone) const ;
39  
40   void FitParabola(const TGraph *gSig, Float_t & amp) const ;
41   
42  private:
43   AliCaloRawAnalyzerKStandard();
44   AliCaloRawAnalyzerKStandard(const AliCaloRawAnalyzerKStandard & );
45   AliCaloRawAnalyzerKStandard  & operator = (const AliCaloRawAnalyzerKStandard  &);
46   ClassDef(AliCaloRawAnalyzerKStandard, 2)
47 };
48
49 #endif