1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
6 * Permission to use, copy, modify and distribute this software and its *
7 * documentation strictly for non-commercial purposes is hereby granted *
8 * without fee, provided that the above copyright notice appears in all *
9 * copies and that both the copyright notice and this permission notice *
10 * appear in the supporting documentation. The authors make no claims *
11 * about the suitability of this software for any purpose. It is *
12 * provided "as is" without express or implied warranty. *
13 **************************************************************************/
15 #ifndef ALIHLTPHOSPHYSICSANALYZERPEAKFITTER_H
16 #define ALIHLTPHOSPHYSICSANALYZERPEAKFITTER_H
19 * Class does fitting on an histogram
21 * @file AliHLTPHOSPhysicsAnalyzerPeakFitter.h
22 * @author Oystein Djuvsland
24 * @brief Fitter for PHOS HLT
27 // see below for class documentation
29 // refer to README to build package
31 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
34 //#include "AliHLTPHOSClusterDataStruct.h"
35 #include "AliHLTDataTypes.h"
40 * @class AliHLTPHOSPhysicsAnalyzerPeakFitter
42 * Makes a fit on a histogram, either a Lorentzian fit or
45 * @ingroup alihlt_phos
47 class AliHLTPHOSPhysicsAnalyzerPeakFitter
53 AliHLTPHOSPhysicsAnalyzerPeakFitter();
56 virtual ~AliHLTPHOSPhysicsAnalyzerPeakFitter();
58 /** Copy constructor */
59 AliHLTPHOSPhysicsAnalyzerPeakFitter(const AliHLTPHOSPhysicsAnalyzerPeakFitter &);
61 /** Assignment operator */
62 AliHLTPHOSPhysicsAnalyzerPeakFitter & operator = (const AliHLTPHOSPhysicsAnalyzerPeakFitter &) {return *this;}
65 void SetHistogram(TH1F* histPtr) { fRootHistPtr = histPtr; }
67 /** Fit with a gaussian */
70 /** Fit with a lorentzian */
71 Int_t FitLorentzian();
76 /** Factor for low gain */
77 Float_t fGainLow; //COMMENT
79 /** Factor for high gain */
80 Float_t fGainHigh; //COMMENT
82 /** Pointer to the ROOT histogram */
83 TH1F* fRootHistPtr; //! transient
85 ClassDef(AliHLTPHOSPhysicsAnalyzerPeakFitter, 1);