]>
Commit | Line | Data |
---|---|---|
de39a0ff | 1 | #ifndef ALICALORAWANALYZERFAKEALTRO_H |
2 | #define ALICALORAWANALYZERFAKEALTRO_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* | |
8 | ||
9 | ||
10 | Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3 | |
11 | */ | |
12 | ||
13 | #include "AliCaloRawAnalyzer.h" | |
14 | ||
15 | ||
16 | class TF1; | |
17 | class TGraph; | |
18 | ||
19 | class AliCaloRawAnalyzerFakeALTRO : public AliCaloRawAnalyzer | |
20 | { | |
92d9f317 | 21 | friend class AliCaloRawAnalyzerFactory; |
22 | ||
de39a0ff | 23 | public: |
92d9f317 | 24 | //AliCaloRawAnalyzerFakeALTRO(); |
de39a0ff | 25 | virtual ~AliCaloRawAnalyzerFakeALTRO(); |
92d9f317 | 26 | |
de39a0ff | 27 | virtual AliCaloFitResults Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2 ); |
28 | void PrintFitResult(const TF1 *f) const; | |
29 | ||
30 | // shaper tau value, in time-bins, and flag for keeping tau fixed | |
31 | Float_t GetTau() const { return fTau;}; | |
32 | void SetTau(Float_t f) { fTau = f; }; | |
33 | Bool_t GetFixTau() const { return fFixTau; }; | |
34 | void SetFixTau(Bool_t b) { fFixTau = b; }; | |
35 | ||
36 | // extra interfaces | |
37 | TF1 * GetFit() const { return fTf1; }; | |
38 | ||
39 | private: | |
92d9f317 | 40 | AliCaloRawAnalyzerFakeALTRO(); |
de39a0ff | 41 | AliCaloRawAnalyzerFakeALTRO(const AliCaloRawAnalyzerFakeALTRO & ); |
42 | AliCaloRawAnalyzerFakeALTRO & operator = (const AliCaloRawAnalyzerFakeALTRO &); | |
43 | ||
92d9f317 | 44 | double fXaxis[ALTROMAXSAMPLES]; //Axis if time bins, ( used by TGraph ) |
de39a0ff | 45 | const double fkEulerSquared; //e^2 = 7.389056098930650227 |
46 | TF1 *fTf1; // Analytical formula of the Semi Gaussian to be fitted | |
47 | ||
48 | Float_t fTau; // shaper tau, in time bins | |
49 | Bool_t fFixTau; // flag if tau should be fix | |
50 | ||
51 | ClassDef(AliCaloRawAnalyzerFakeALTRO,1) | |
52 | ||
53 | }; | |
54 | ||
55 | #endif |