1 //_________________________________________________________________________
2 //Created by Christine Nattrass, Rebecca Scott, Irakli Martashvili
3 //University of Tennessee at Knoxville
5 // This class is designed for the analysis of the hadronic component of
6 // transverse energy. It is used by AliAnalysisTaskHadEt.
7 //_________________________________________________________________________
8 #ifndef ALIANALYSISETCOMMON_H
9 #define ALIANALYSISETCOMMON_H
19 class AliESDtrackCuts;
23 class AliAnalysisEtCuts;
25 class AliAnalysisEtCommon : public TObject
29 AliAnalysisEtCommon();
30 virtual ~AliAnalysisEtCommon();
32 /** Analyse the event! */
33 virtual Int_t AnalyseEvent(AliVEvent *event);
36 /** Initialise the analysis, must be overloaded. */
40 /** Reset event specific values (Et etc.) */
41 virtual void ResetEventValues();
43 /** LevyPtEvaluate function */
44 static Double_t LevyPtEvaluate(const Double_t *pt, const Double_t *par);
47 AliAnalysisEtCuts * GetCuts() const { return fCuts; }
48 virtual void SetCuts(const AliAnalysisEtCuts *cuts)
49 { fCuts = (AliAnalysisEtCuts *) cuts; }
52 void SetTPCITSTrackCuts(const AliESDtrackCuts *cuts){ fEsdtrackCutsITSTPC = (AliESDtrackCuts *) cuts;}
53 void SetTPCOnlyTrackCuts(const AliESDtrackCuts *cuts){ fEsdtrackCutsTPC = (AliESDtrackCuts *) cuts;}
54 void SetITSTrackCuts(const AliESDtrackCuts *cuts){ fEsdtrackCutsITS = (AliESDtrackCuts *) cuts;}
55 void SetCentralityMethod(char *method){ fCentralityMethod = TString(method);}
56 void SetNumberOfCentralityBins(Int_t bins){fNCentBins = bins;}
57 void SetDataSet(Int_t val){fDataSet = val;}
58 Int_t DataSet()const {return fDataSet;}
62 TString fHistogramNameSuffix; /** The suffix for the histogram names */
64 AliAnalysisEtCuts *fCuts; // keeper of basic cuts
66 Int_t fDataSet;//Integer corresponding to data set. Used as a switch to set appropriate track cuts. By default set to 2010 p+p
67 //2009 = 900 GeV p+p data from 2009
68 //2010 = 7 TeV p+p data from 2010
69 //20100 = 2.76 TeV Pb+Pb data from 2010
72 //TDatabasePDG *fPdgDB;//data base used for looking up pdg codes
73 //these codes are stored as variables because otherwise there were issues using this with the plugin
75 static Int_t fgPiPlusCode;//pdg pi plus code
76 static Int_t fgPiMinusCode;//pdg pi minus code
77 static Int_t fgKPlusCode;// pdg k plus code
78 static Int_t fgKMinusCode;//pdg k minus code
79 static Int_t fgProtonCode;//pdg proton code
80 static Int_t fgAntiProtonCode;//pdg antiproton code
81 static Int_t fgLambdaCode;// pdg lambda code
82 static Int_t fgAntiLambdaCode;//pdg antilambda code
83 static Int_t fgK0SCode;//pdg k0 short code
84 static Int_t fgOmegaCode;//pdg omega code
85 static Int_t fgAntiOmegaCode;//pdg anti-omega code
86 static Int_t fgXi0Code;//pdg xi-0 code
87 static Int_t fgAntiXi0Code;//pdg anti-xi0 code
88 static Int_t fgXiCode;//pdg xi code
89 static Int_t fgAntiXiCode;//pdg anti-xi code
90 static Int_t fgSigmaCode;//pdg sigma code
91 static Int_t fgAntiSigmaCode;//pdg anti-sigma code
92 static Int_t fgK0LCode;//pdg k0 long code
93 static Int_t fgNeutronCode;//pdg neutron code
94 static Int_t fgAntiNeutronCode;//pdg anti-neutron code
95 static Int_t fgEPlusCode;//pdg positron code
96 static Int_t fgEMinusCode;//pdg electron code
97 static Int_t fgMuPlusCode;//pdg positron code
98 static Int_t fgMuMinusCode;//pdg electron code
99 static Int_t fgGammaCode;//pdg gamma code
100 static Int_t fgPi0Code;//pdg neutral pion code
101 static Int_t fgEtaCode;//pdg eta code
102 static Int_t fgOmega0Code;//pdg eta code
103 static Float_t fgPionMass;//pdg pion mass
104 static Float_t fgKaonMass;//pdg kaon mass
105 static Float_t fgProtonMass;//pdg proton mass
106 static Float_t fgElectronMass;//pdg electron mass
109 Float_t Et(TParticle *part, float mass = -1000);
110 Float_t Et(Float_t p, Float_t theta, Int_t pid, Short_t charge) const;
111 AliESDtrackCuts* fEsdtrackCutsITSTPC;//esd track cuts for ITS+TPC tracks
112 AliESDtrackCuts* fEsdtrackCutsTPC;//esd track cuts for TPC tracks (which may also contain ITS hits)
113 AliESDtrackCuts* fEsdtrackCutsITS;//esd track cuts for ITS stand alone tracks
115 static Float_t fgPtTPCCutOff;//cut off for tracks in TPC
116 static Float_t fgPtITSCutOff;//cut off for tracks in ITS
118 //Set by default to the D6T scales
119 Float_t K0Weight(Float_t pt);//Function which gives the factor to reweigh a K0 so it roughly matches the data
120 Float_t LambdaWeight(Float_t pt);//Function which gives the factor to reweigh a Lambda so it roughly matches the data
121 Float_t AntiLambdaWeight(Float_t pt);//Function which gives the factor to reweigh a Lambda so it roughly matches the data
122 TF1 *fK0PythiaD6T;//function with Levy fit parameters for K0S in PYTHIA D6T
123 TF1 *fLambdaPythiaD6T;//function with Levy fit parameters for Lambda in PYTHIA D6T
124 TF1 *fAntiLambdaPythiaD6T;//function with Levy fit parameters for AntiLambda in PYTHIA D6T
125 TF1 *fK0Data;//function with Levy fit parameters for K0S in data
126 TF1 *fLambdaData;//function with Levy fit parameters for Lambda in data
127 TF1 *fAntiLambdaData;//function with Levy fit parameters for AntiLambda in data
129 TF1 *fLambdaEnhancement;//function to describe lambda enhancement
130 TF1 *fProtonEnhancement;//function to describe anti-lambda enhancement
131 Float_t LambdaBaryonEnhancement(Float_t pt);//Function which gives the factor to reweigh a lambda or antilambda so it roughly matches baryon enhancement seen at RHIC
132 Float_t ProtonBaryonEnhancement(Float_t pt);//Function which gives the factor to reweigh a lambda or antilambda so it roughly matches baryon enhancement seen at RHIC
133 TString fCentralityMethod;//string specifying the centrality method, see https://twiki.cern.ch/twiki/bin/viewauth/ALICE/CentStudies
134 Int_t fNCentBins;//number of centrality bins (11 or 21)
135 Int_t fCentBin;//current centrality bin
139 //Declare it private to avoid compilation warning
140 AliAnalysisEtCommon & operator = (const AliAnalysisEtCommon & g) ;//cpy assignment
141 AliAnalysisEtCommon(const AliAnalysisEtCommon & g) ; // cpy ctor
143 ClassDef(AliAnalysisEtCommon, 1);
146 #endif // ALIANALYSISETCOMMON_H