AliPhysics  6cf2591 (6cf2591)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskJetPP.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKJETPP_H
2 #define ALIANALYSISTASKJETPP_H
3 
4 
5 class TH1I;
6 class TH1F;
7 class TH2F;
8 class TH2D;
9 class TH1D;
10 class TArrayD;
11 class THnSparse;
12 class TProfile;
13 class TList;
14 class AliEmcalList;
15 class TClonesArray;
16 class TString;
17 class AliEmcalJet;
18 class AliRhoParameter;
19 class AliVParticle;
20 class AliLog;
21 class AliAnalysisUtils;
22 class TRandom3;
23 class AliJetContainer;
26 
27 #include <vector>
29 
30 using std::vector;
31 
32 
33 
35  public:
36 
37  enum MyContainer {
42  };
43 
44 
45 
46  // ######### CONTRUCTORS/DESTRUCTORS AND STD FUNCTIONS
48  AliAnalysisTaskJetPP(const char *name);
49  virtual ~AliAnalysisTaskJetPP();
51  void Terminate(Option_t *);
52 
53 
54  // ######### SETTERS/GETTERS
55 
57  void SetUsePileUpCut (Bool_t val) {fUsePileUpCut = val;}
58  void SetSignalJetMinArea(Double_t minArea) {fMinJetArea = minArea;}
59  void SetMC(Bool_t a) {fIsMC = a;}
60 
61  void SetAcceptanceWindows(Double_t trackEta, Double_t signalJetRadius){
62  fTrackEtaWindow = trackEta;
63  fSignalJetRadius = signalJetRadius;
65  }
66 
67  void SetCentralityType(const char* type){
68  fCentralityType = type;
69  }
70 
71  void SetVertexCut(Double_t vz){ fZVertexCut = vz; }
72  void SetMinTrackPt(Double_t mpt){ fMinTrackPt = mpt;}
73 
74 
76  Bool_t Run();
78 
79  private:
80 
81  Double_t EstimateBgKT(AliJetContainer *jetCont); // median p/A of kt jets
82  Double_t EstimateLocalBg(AliJetContainer *jetCont, AliParticleContainer *trkCont); // local bg in a perpendicular cone
83 
84  Double_t Convert(Double_t input);
85  // ######### CHECK FUNCTIONS
86  Bool_t IsTrackInAcceptance(AliVParticle* track, Bool_t isprimary=0);
87  Bool_t IsEventInAcceptance(AliVEvent* event);
88  Bool_t IsSignalJetInAcceptance(AliEmcalJet* jet, Bool_t suppressGhost=1);
89 
90 
91  // ######### STANDARD FUNCTIONS
92  void ExecOnceLocal();
93 
94  // ########## USAGE TRIGGERS
95 
96  Bool_t fUseDefaultVertexCut; // trigger if automatic vertex cut from helper class should be done
97  Bool_t fUsePileUpCut; // trigger if pileup cut should be done
98  Bool_t fIsMC; // Use MC
99 
100  // ########## JET/DIJET/RC PROPERTIES
101  Double_t fSignalJetRadius; // Radius for the signal jets
102  // ########## CUTS
103  Double_t fSignalJetEtaWindow; // +- window in eta for signal jets
104  Double_t fTrackEtaWindow; //gc +- window in eta for tracks
105  Double_t fMinTrackPt; //gc Min track pt to be accepted
106  Double_t fMinJetArea; // Min jet area to be accepted
107  TString fCentralityType; //gc Used centrality estimate (V0A, V0C, V0M, ...)
108 
109  Double_t fZVertexCut; //zvertex cut
110 
111  // ########## GENERAL ////VARS
112  AliAnalysisUtils* fHelperClass;
114 
115 
120 
125 
130 
135 
140 
145 
150 
155 
156 
159 
160  ClassDef(AliAnalysisTaskJetPP, 1); // Charged jet analysis for pA
161 
162 };
163 #endif
AliAnalysisTaskJetPP & operator=(const AliAnalysisTaskJetPP &)
Double_t EstimateBgKT(AliJetContainer *jetCont)
Bool_t IsSignalJetInAcceptance(AliEmcalJet *jet, Bool_t suppressGhost=1)
double Double_t
Definition: External.C:58
Definition: External.C:236
TH1D * fhXVertex
Z vertex before cut.
TH2D * fhRemx
Track phi-pt distribution.
Bool_t IsTrackInAcceptance(AliVParticle *track, Bool_t isprimary=0)
void SetCentralityType(const char *type)
TH1D * fhZVertex
Response matrix.
TH1D * fhJetPtConeRho
pt spectrum of AKT jets without kt bgk
TH2D * fhInvPtQVsEta[2]
Inverse pt vs phi.
TH2D * fhTrackPhiCG
Multiplicity.
TH2D * fhTrackPhiTPCG
Global tracks.
TH1D * fhRecTrkPt
Pt spectrum of MC jets.
TH1D * fhPrimGenTrkPt
Y vertex.
TH2D * fhTrackEtaPt
Jet eta-pt distribution.
TH1D * fhMult
Pt spectrum of fake tracks.
TH2D * fhInvPtQVsPhiCSide[2]
Inverse pt vs phi in away-side rapidity.
TH1D * fhTrackPt
Jet constituent pt.
Double_t EstimateLocalBg(AliJetContainer *jetCont, AliParticleContainer *trkCont)
void SetMinTrackPt(Double_t mpt)
TH1D * fhJetConstituentPt
Histogram for pilup/vertex cuts.
Container for particles within the EMCAL framework.
TH1D * fhJetPt
gc trigger if tracks/jets are loaded initiates calling ExecOnce
void SetVertexCut(Double_t vz)
Double_t Convert(Double_t input)
Definition: External.C:204
TH2D * fhTrackPhiPt
Jet phi-pt distribution.
TH2D * fhJetAreaPt
local KT bgk
void SetUseDefaultVertexCut(Bool_t val)
TH1D * fhJetPtRho
ptspectrum of KT jets
Definition: External.C:228
Definition: External.C:212
TH2D * fhInvPtQVsPhiASide[2]
Inverse pt vs eta.
TH2D * fhJetPhiPt
Track eta-pt distribution.
TH1D * fhYVertex
X vertex.
Bool_t fInitializedLocal
gc Vertex selection helper
TH1D * fhKTJetPt
pt spectrum of AKT jets
TH2D * fhSigmaPtOverPtVsPt[2]
Inverse pt vs pi in close-side rapidity.
Enhanced TList-derived class that implements correct merging for pt_hard binned production.
Definition: AliEmcalList.h:25
TH1D * fhCuts
Jet background times area.
TH2D * fhInvPtQVsPhi[2]
complementary tracks
AliAnalysisUtils * fHelperClass
TH1D * fhAtimesRho
pt spectrum of AKT jets without local bgk
void SetUsePileUpCut(Bool_t val)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
TH1D * fhZVertexBC
Z vertex.
const char Option_t
Definition: External.C:48
Bool_t IsEventInAcceptance(AliVEvent *event)
bool Bool_t
Definition: External.C:53
ClassDef(AliAnalysisTaskJetPP, 1)
void SetSignalJetMinArea(Double_t minArea)
TH1D * fhGenJetPt
Pt spectrum of MC particle.
Container structure for EMCAL clusters.
Container for jet within the EMCAL jet framework.
void SetAcceptanceWindows(Double_t trackEta, Double_t signalJetRadius)
TH1D * fhFakeTrkPt
Pt spectrum of correctly reconstructed tracks.
TH2D * fhJetEtaPt
Jet Area-pt distribution.