]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/totEt/AliAnalysisEtRecEffCorrection.h
Making corrections second order in cluster multiplicity
[u/mrichter/AliRoot.git] / PWGLF / totEt / AliAnalysisEtRecEffCorrection.h
CommitLineData
b2c10007 1//_________________________________________________________________________
2// Utility Class for transverse energy studies
3//
4//*-- Authors: Oystein Djuvsland (Bergen)
5//_________________________________________________________________________
6
7
8#ifndef ALIANALYSISETRECEFFCORRECTION_H
9#define ALIANALYSISETRECEFFCORRECTION_H
10
11#include "Rtypes.h"
12#include "TArrayD.h"
13#include "TNamed.h"
14#include "TF1.h"
15
16class AliAnalysisEtRecEffCorrection : public TNamed
17{
18
19public:
20
21//! Default constructor
22 AliAnalysisEtRecEffCorrection();
23
24//! Constructor
25 AliAnalysisEtRecEffCorrection(TString name, const TF1& correction, const Double_t maxEnergy);
26
27//! Copy constructor
28 AliAnalysisEtRecEffCorrection(const AliAnalysisEtRecEffCorrection &obj);
29
30//! Destructor
31 virtual ~AliAnalysisEtRecEffCorrection();
32
33//! Assignment operator
34 AliAnalysisEtRecEffCorrection& operator=(const AliAnalysisEtRecEffCorrection& other);
35
36//! Equality operator
37 bool operator==(const AliAnalysisEtRecEffCorrection &other) const;
38
39// Getters
40
41 TF1 EnergyCorrection() const {
02c62614 42 return *fEnergyCorrection;
b2c10007 43 }
44
45 Double_t MaxEnergy() const {
46 return fMaxEnergy;
47 }
48
49// Setters
50
51 void SetCorrections(const TF1 &corrections) {
02c62614 52 *fEnergyCorrection = corrections;
b2c10007 53 }
54
55 void SetMaxenergy(Double_t maxEnergy) {
56 fMaxEnergy = maxEnergy;
57 }
58
59
60 Double_t CorrectedEnergy(Double_t energy); // Calculate corrected cluster E_T
61
62private:
63
64 // Energy correction function
02c62614 65 TF1 *fEnergyCorrection;
b2c10007 66
67
68
69// MaxEnergy
70 Double_t fMaxEnergy; // MaxEnergy
71
72 ClassDef(AliAnalysisEtRecEffCorrection, 1);
73};
74
75#endif //ALIANALYSISETRECEFFCORRECTION_H
76