]>
Commit | Line | Data |
---|---|---|
9e9f5ff6 | 1 | // -*- mode: c++ -*- |
2 | ||
3 | #ifndef ALICALORAWANALYZERFITTER_H | |
4 | #define ALICALORAWANALYZERFITTER_H | |
5 | ||
6 | /************************************************************************** | |
7 | * This file is property of and copyright by the Experimental Nuclear * | |
8 | * Physics Group, Yale University, US 2011 * | |
9 | * * | |
10 | * Author: Per Thomas Hille <perthomas.hille@yale.edu> for the ALICE * | |
11 | * experiment. Contributors are mentioned in the code where appropriate. * | |
12 | * Please report bugs to perthomas.hille@yale.edu * | |
13 | * * | |
14 | * Permission to use, copy, modify and distribute this software and its * | |
15 | * documentation strictly for non-commercial purposes is hereby granted * | |
16 | * without fee, provided that the above copyright notice appears in all * | |
17 | * copies and that both the copyright notice and this permission notice * | |
18 | * appear in the supporting documentation. The authors make no claims * | |
19 | * about the suitability of this software for any purpose. It is * | |
20 | * provided "as is" without express or implied warranty. * | |
21 | **************************************************************************/ | |
22 | ||
23 | #include "AliCaloRawAnalyzer.h" | |
24 | #include "AliCaloConstants.h" | |
25 | ||
9e9f5ff6 | 26 | using namespace ALTRO; |
27 | using namespace EMCAL; | |
28 | ||
29 | class TF1; | |
30 | class TGraph; | |
31 | ||
9e9f5ff6 | 32 | class AliCaloRawAnalyzerFitter : public AliCaloRawAnalyzer |
33 | { | |
34 | public: | |
6656f267 | 35 | |
9e9f5ff6 | 36 | AliCaloRawAnalyzerFitter( const char *name, const char *nameshort ); |
6656f267 | 37 | |
9e9f5ff6 | 38 | virtual ~AliCaloRawAnalyzerFitter(); |
52fa3af1 | 39 | |
9e9f5ff6 | 40 | TF1 * GetFit() const { return fTf1; }; |
4074cc41 | 41 | |
9e9f5ff6 | 42 | void PrintFitResult(const TF1 *f) const; |
43 | ||
52fa3af1 | 44 | protected: |
45 | ||
46 | const double fkEulerSquared; // e^2 = 7.389056098930650227 | |
47 | TF1 * fTf1; // Analytical formula of the Semi Gaussian to be fitted | |
48 | double fXaxis[ALTROMAXSAMPLES]; // Axis if time bins, ( used by TGraph ) | |
9e9f5ff6 | 49 | |
50 | private: | |
52fa3af1 | 51 | |
52 | AliCaloRawAnalyzerFitter( const AliCaloRawAnalyzerFitter & ); | |
53 | AliCaloRawAnalyzerFitter & operator = (const AliCaloRawAnalyzerFitter & ); | |
9e9f5ff6 | 54 | AliCaloRawAnalyzerFitter(); |
9e9f5ff6 | 55 | }; |
56 | ||
57 | #endif |