]>
Commit | Line | Data |
---|---|---|
57839add | 1 | #ifndef ALICALORAWANALYZERLMS_H |
2 | #define ALICALORAWANALYZERLMS_H | |
d655d7dd | 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 | ||
22 | // Extraction of amplitude and peak position | |
57839add | 23 | // FRom CALO raw data using |
d655d7dd | 24 | // Chi square fit |
25 | ||
396baaf6 | 26 | #include "AliCaloRawAnalyzerFitter.h" |
92d9f317 | 27 | #include "AliCaloConstants.h" |
d655d7dd | 28 | |
92d9f317 | 29 | using namespace ALTRO; |
d655d7dd | 30 | |
31 | class TF1; | |
32 | class TGraph; | |
33 | ||
396baaf6 | 34 | class AliCaloRawAnalyzerLMS : public AliCaloRawAnalyzerFitter |
d655d7dd | 35 | { |
92d9f317 | 36 | friend class AliCaloRawAnalyzerFactory; |
37 | ||
d655d7dd | 38 | public: |
92d9f317 | 39 | // AliCaloRawAnalyzerLMS(); |
57839add | 40 | virtual ~AliCaloRawAnalyzerLMS(); |
ce95bae9 | 41 | virtual AliCaloFitResults Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2 ); |
396baaf6 | 42 | //void PrintFitResult(const TF1 *f) const; |
43 | ||
44 | // virtual void InitFormula( TF1* f); | |
d655d7dd | 45 | |
f57baa2d | 46 | // shaper tau value, in time-bins, and flag for keeping tau fixed |
396baaf6 | 47 | // Float_t GetTau() const { return fTau;}; |
48 | // void SetTau(Float_t f) { fTau = f; }; | |
49 | // Bool_t GetFixTau() const { return fFixTau; }; | |
50 | // void SetFixTau(Bool_t b) { fFixTau = b; }; | |
f57baa2d | 51 | |
b1954e56 | 52 | // extra interfaces |
396baaf6 | 53 | // TF1 * GetFit() const { return fTf1; }; |
b1954e56 | 54 | |
d655d7dd | 55 | private: |
92d9f317 | 56 | AliCaloRawAnalyzerLMS(); |
57839add | 57 | AliCaloRawAnalyzerLMS(const AliCaloRawAnalyzerLMS & ); |
58 | AliCaloRawAnalyzerLMS & operator = (const AliCaloRawAnalyzerLMS &); | |
d655d7dd | 59 | |
396baaf6 | 60 | // double fXaxis[ALTROMAXSAMPLES]; //Axis if time bins, ( used by TGraph ) |
61 | ||
62 | //const double fkEulerSquared; //e^2 = 7.389056098930650227 | |
63 | ||
64 | // TF1 *fTf1; // Analytical formula of the Semi Gaussian to be fitted | |
d655d7dd | 65 | |
396baaf6 | 66 | // Float_t fTau; // shaper tau, in time bins |
67 | // Bool_t fFixTau; // flag if tau should be fix | |
f57baa2d | 68 | |
69 | ClassDef(AliCaloRawAnalyzerLMS, 2) | |
e37e3c84 | 70 | |
d655d7dd | 71 | }; |
72 | ||
73 | #endif |