AliPhysics  a4b41ad (a4b41ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskFlavourJetCorrelations.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKFLAVOURJETCORRELATIONS_H
2 #define ALIANALYSISTASKFLAVOURJETCORRELATIONS_H
3 /**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5 * *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
8 * *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
17 
18 //-----------------------------------------------------------------------
19 // Author : S. Antônio (University of São Paulo) antonio.silva@cern.ch
20 // A. Grelli, Utrecht University
21 // C. Bianchin, Utrecht University
22 // X. Zhang, LBNL
23 //-----------------------------------------------------------------------
24 
25 
26 #include <TH2F.h>
27 #include "AliAODEvent.h"
29 
30 class TParticle;
31 class TClonesArray;
32 class THnSparse;
33 class AliMCParticle;
34 class AliAODMCParticle;
35 class AliRDHFCuts;
36 class AliEmcalJet;
37 class AliAODRecoDecayHF;
39 class AliAODEvent;
42 class AliJetContainer;
43 
45 {
46 
47 public:
48 
51 
55 
56  virtual void UserCreateOutputObjects();
57  virtual Bool_t Run();
58  virtual void Terminate(Option_t *);
59  virtual void Init();
60  virtual void LocalInit() {Init();}
61 
62  // inizializations
64 
65  // set MC usage
66  void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;}
67  Bool_t GetMC() const {return fUseMCInfo;}
68  // set usage of reconstructed tracks
69  void SetUseReco(Bool_t reco) {fUseReco=reco;}
70  Bool_t GetUseReco() const {return fUseReco;}
71 
72  void SetMassLimits(Double_t range, Int_t pdg);
73  void SetMassLimits(Double_t lowlimit, Double_t uplimit);
74 
77 
80 
82  Bool_t GetUseSBArray() const {return fUseSBArray;}
83 
84  // Array of D0 width for the Dstar
86  void ConstituentCorrelationMethod(Bool_t IsBkg, AliAODEvent* aodEvent);
87  void AngularCorrelationMethod(Bool_t IsBkg, AliAODEvent* aodEvent);
89  void FillDJetHistograms(AliEmcalJet* jet, Double_t rho, Bool_t IsBkg, AliAODEvent* aodEvent);
90  void GetHFJet(AliEmcalJet*& jet, Bool_t IsBkg);
91  void FillHistogramsD0JetCorr(AliAODRecoDecayHF* candidate, Double_t z, Double_t ptD, Double_t ptj, Bool_t IsBkg, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc, AliAODEvent* aodEvent);
92  void FillHistogramsDstarJetCorr(AliAODRecoCascadeHF* dstar, Double_t z, Double_t ptD, Double_t ptj, Bool_t IsBkg, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc);
93  void FillHistogramsMCGenDJetCorr(Double_t z,Double_t ptD,Double_t ptjet, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc);
94  void FindMCJet(AliEmcalJet*& mcjet);
96  Bool_t InEMCalAcceptance(AliVParticle *vpart);
97 
102 
103 
104 private:
105 
108 
109  Double_t Z(AliVParticle* part, AliEmcalJet* jet, Double_t rho) const;
110  Double_t Z(AliVParticle* part, AliEmcalJet* jet) const;
111  Double_t Z(Double_t* p, Double_t *pj) const;
112  Double_t ZT(Double_t* p, Double_t *pj) const;
113  Float_t DeltaR(AliEmcalJet *p1, AliVParticle *p2, Double_t rho) const;
114  Float_t CheckDeltaR(AliEmcalJet *p1, AliVParticle *p2) const;
115 
116 
117  Bool_t fUseMCInfo; // Use MC info
118  Bool_t fUseReco; // use reconstructed tracks when running on MC
119  Int_t fCandidateType; // Dstar or D0
120  Int_t fCorrelationMethod; // Method to correlate D mesons and jets
121  Int_t fPDGmother; // PDG code of D meson
122  Int_t fNProngs; // number of prong of the decay channel
123  Int_t fPDGdaughters[4]; // PDG codes of daughters
124  Float_t fSigmaD0[30]; // Sigma of D0 for D*
125  TString fBranchName; // AOD branch name
126  AliRDHFCuts *fCuts; // Cuts
127 
128  Double_t fMinMass; // mass lower limit histogram
129  Double_t fMaxMass; // mass upper limit histogram
130 
131  TClonesArray *fCandidateArray;
132  TClonesArray *fSideBandArray;
133  Bool_t fAnalyseDBkg; // flag to switch off/on the SB analysis (default is off)
134  Bool_t fBuildRM; // flag to switch on/off the Response Matrix (Needs MC)
135 
136  Int_t fNAxesBigSparse; // number of axis
139 
140  // Histograms
142  TH1F* fhCentDjet;
143  //generic jet and jet track distributions
144  TH1F* fhPtJetTrks;
145  TH1F* fhPhiJetTrks;
146  TH1F* fhEtaJetTrks;
147  TH1F* fhPtJet;
148  TH1F* fhPhiJet;
149  TH1F* fhEtaJet;
150 
151  //D mesons
155  TH1F* fhPtPion;
156  //main histograms
158  THnSparse* fhsDphiz;
159  THnSparse* fResponseMatrix;
160 
161 
162  ClassDef(AliAnalysisTaskFlavourJetCorrelations,7); // class for charm-jet CorrelationsExch
163 };
164 
165 #endif
Int_t pdg
double Double_t
Definition: External.C:58
Definition: External.C:236
Double_t Z(AliVParticle *part, AliEmcalJet *jet, Double_t rho) const
AliAnalysisTaskFlavourJetCorrelations & operator=(const AliAnalysisTaskFlavourJetCorrelations &source)
char Char_t
Definition: External.C:18
TCanvas * c
Definition: TestFitELoss.C:172
void FillHistogramsDstarJetCorr(AliAODRecoCascadeHF *dstar, Double_t z, Double_t ptD, Double_t ptj, Bool_t IsBkg, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc)
void AngularCorrelationMethod(Bool_t IsBkg, AliAODEvent *aodEvent)
Container for particles within the EMCAL framework.
int Int_t
Definition: External.C:63
void FillDJetHistograms(AliEmcalJet *jet, Double_t rho, Bool_t IsBkg, AliAODEvent *aodEvent)
Definition: External.C:204
void FillHistogramsD0JetCorr(AliAODRecoDecayHF *candidate, Double_t z, Double_t ptD, Double_t ptj, Bool_t IsBkg, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc, AliAODEvent *aodEvent)
float Float_t
Definition: External.C:68
Float_t CheckDeltaR(AliEmcalJet *p1, AliVParticle *p2) const
ClassDef(AliAnalysisTaskFlavourJetCorrelations, 7)
void ConstituentCorrelationMethod(Bool_t IsBkg, AliAODEvent *aodEvent)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
Bool_t SetD0WidthForDStar(Int_t nptbins, Float_t *width)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
void FillHistogramsMCGenDJetCorr(Double_t z, Double_t ptD, Double_t ptjet, Bool_t bDInEMCalAcc, Bool_t bJetInEMCalAcc)
Container structure for EMCAL clusters.
Float_t DeltaR(AliEmcalJet *p1, AliVParticle *p2, Double_t rho) const
Int_t nptbins
Container for jet within the EMCAL jet framework.
TClonesArray * fSideBandArray
contains candidates selected by AliRDHFCuts
Bool_t fAnalyseDBkg
contains candidates selected by AliRDHFCuts::IsSelected(kTracks), to be used for side bands (DStar ca...