]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/totEt/AliAnalysisEtCommon.h
addressing remaining current rulechecker violations that did not seem to be false...
[u/mrichter/AliRoot.git] / PWG4 / totEt / AliAnalysisEtCommon.h
CommitLineData
7d2d1773 1//_________________________________________________________________________
2//Created by Christine Nattrass, Rebecca Scott, Irakli Martashvili
3//University of Tennessee at Knoxville
4//
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
10
11#include "TString.h"
0f6416f3 12#include "TObject.h"
7d2d1773 13
14class TH2F;
15class TH1F;
964c8159 16class TF1;
7d2d1773 17class AliVEvent;
18class TList;
19class AliESDtrackCuts;
20class Rtypes;
21class TParticle;
22class TDatabasePDG;
23class AliAnalysisEtCuts;
24
0f6416f3 25class AliAnalysisEtCommon : public TObject
7d2d1773 26{
27public:
28
29 AliAnalysisEtCommon();
30 virtual ~AliAnalysisEtCommon();
31
32 /** Analyse the event! */
33 virtual Int_t AnalyseEvent(AliVEvent *event);
34
35
36 /** Initialise the analysis, must be overloaded. */
37 virtual void Init();
38
39
40 /** Reset event specific values (Et etc.) */
41 virtual void ResetEventValues();
42
c32af3dd 43 /** LevyPtEvaluate function */
44 static Double_t LevyPtEvaluate(const Double_t *pt, const Double_t *par);
45
7d2d1773 46 /** Cuts info */
47 AliAnalysisEtCuts * GetCuts() const { return fCuts; }
48 virtual void SetCuts(const AliAnalysisEtCuts *cuts)
49 { fCuts = (AliAnalysisEtCuts *) cuts; }
50
51
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;}
bf205f52 55 void SetCentralityMethod(char *method){ fCentralityMethod = TString(method);}
56 void SetNumberOfCentralityBins(Int_t bins){fNCentBins = bins;}
964c8159 57 void SetDataSet(Int_t val){fDataSet = val;}
58 Int_t DataSet()const {return fDataSet;}
7d2d1773 59
60protected:
61
62 TString fHistogramNameSuffix; /** The suffix for the histogram names */
63
64 AliAnalysisEtCuts *fCuts; // keeper of basic cuts
65
964c8159 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
f43fc416 69 //20100 = 2.76 TeV Pb+Pb data from 2010
964c8159 70
7d2d1773 71 /** PDG Database */
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
74
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
107
108
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
114
115 static Float_t fgPtTPCCutOff;//cut off for tracks in TPC
116 static Float_t fgPtITSCutOff;//cut off for tracks in ITS
117
964c8159 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
7d2d1773 128
b610fb37 129 TF1 *fLambdaEnhancement;//function to describe lambda enhancement
130 TF1 *fProtonEnhancement;//function to describe anti-lambda enhancement
f43fc416 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
bf205f52 133 TString fCentralityMethod;//string specifying the centrality method, see https://twiki.cern.ch/twiki/bin/viewauth/ALICE/CentStudies
c1854447 134 Int_t fNCentBins;//number of centrality bins (11 or 21)
b89c2382 135 Int_t fCentBin;//current centrality bin
f43fc416 136
137
7d2d1773 138 private:
139 //Declare it private to avoid compilation warning
140 AliAnalysisEtCommon & operator = (const AliAnalysisEtCommon & g) ;//cpy assignment
141 AliAnalysisEtCommon(const AliAnalysisEtCommon & g) ; // cpy ctor
142
143 ClassDef(AliAnalysisEtCommon, 1);
144};
145
146#endif // ALIANALYSISETCOMMON_H