AliPhysics  2797316 (2797316)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskDmesonJets.h
Go to the documentation of this file.
1 
13 #ifndef ALIANALYSISTASKDMESONJETS_H
14 #define ALIANALYSISTASKDMESONJETS_H
15 
16 /**************************************************************************
17 * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
18 * *
19 * Author: The ALICE Off-line Project. *
20 * Contributors are mentioned in the code where appropriate. *
21 * *
22 * Permission to use, copy, modify and distribute this software and its *
23 * documentation strictly for non-commercial purposes is hereby granted *
24 * without fee, provided that the above copyright notice appears in all *
25 * copies and that both the copyright notice and this permission notice *
26 * appear in the supporting documentation. The authors make no claims *
27 * about the suitability of this software for any purpose. It is *
28 * provided "as is" without express or implied warranty. *
29 **************************************************************************/
30 
31 class TClonesArray;
32 class AliRDHFCuts;
33 class AliAODEvent;
34 class AliAODRecoDecay;
37 class AliVParticle;
38 class AliAODMCParticle;
43 class THnSparse;
44 class AliFJWrapper;
45 class THashList;
46 class TTree;
47 class AliEMCALGeometry;
48 
49 #include <list>
50 #include <vector>
51 #include <map>
52 
53 #include "AliTLorentzVector.h"
54 #include "THistManager.h"
55 
57 #include "AliJetContainer.h"
58 
60 {
61  public:
62 
66 
71  kUnknownQuark = BIT(0),
72  kFromDown = BIT(1),
73  kFromUp = BIT(2),
74  kFromStrange = BIT(3),
75  kFromCharm = BIT(4),
76  kFromBottom = BIT(5),
77  kFromTop = BIT(6),
78  kFromGluon = BIT(7)
79  };
80 
82  kDecayOther = BIT(0),
83  kDecayD0toKpi = BIT(1),
86  };
87 
88  enum EAxis_t {
89  kPositionD = BIT(0) , // Add the D meson eta/phi axis in the THnSparse
90  kInvMass = BIT(1) , // Add the invariant mass axis in the THnSparse
91  k2ProngInvMass = BIT(2) , // Add the 2 prong invariant mass axis in the THnSparse (for D* this is the inv mass of the D0)
92  kSoftPionPt = BIT(3) , // Add the soft pion pt axis in the THnSparse (for D*)
93  kDeltaR = BIT(4) , // Add the delta R axis in the THnSparse
94  kDeltaEta = BIT(5) , // Add the delta eta axis in the THnSparse
95  kDeltaPhi = BIT(6) , // Add the delta phi axis in the THnSparse
96  kPositionJet = BIT(7) , // Add the jet eta/phi axis in the THnSparse
97  kJetConstituents = BIT(8) // Add the jet constituent axis in the THnSparse
98  };
99 
105  class AliJetInfo {
106  public:
108  AliJetInfo(Double_t px, Double_t py, Double_t pz, Double_t E, Int_t nconst, Double_t nef, Double_t cpt, Double_t npt) :
109  fMomentum(px, py, pz, E), fNConstituents(nconst), fNEF(nef), fMaxChargedPt(cpt), fMaxNeutralPt(npt) {}
110 
111  virtual ~AliJetInfo() {;}
112 
113  Double_t Pt() const { return fMomentum.Pt() ; }
114  Double_t Eta() const { return fMomentum.Eta() ; }
115  Double_t Phi() const { return fMomentum.Phi() ; }
116  Double_t Phi_0_2pi() const { return fMomentum.Phi_0_2pi(); }
117  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
118  Double_t GetDistance(const AliJetInfo& jet) const;
119 
121  Int_t fNConstituents ;
122  Double_t fNEF ;
123  Double_t fMaxChargedPt ;
124  Double_t fMaxNeutralPt ;
125 
127  ClassDef(AliJetInfo, 1);
129  };
130 
137  public:
139 
140  virtual ~AliDmesonJetInfo() {;}
141 
142  AliVParticle *fDmesonParticle ;
144  Double_t fSoftPionPt ;
145  Double_t fInvMass2Prong ;
146  std::map<std::string, AliJetInfo>
147  fJets ;
148  Int_t fMCLabel ;
149  Bool_t fReconstructed ;
150 
151  const AliJetInfo* GetJet(std::string n) const;
152  AliJetInfo* GetJet(std::string n);
153  void Reset();
154  Double_t GetZ(std::string n) const;
155  Double_t GetDistance(std::string n, Double_t& deta, Double_t& dphi) const;
156  Double_t GetDistance(std::string n) const;
157  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
158  Double_t GetDistance(const AliJetInfo& jet) const;
159  void Print() const;
160 
162  ClassDef(AliDmesonJetInfo, 1);
164  };
165 
172  public:
173  AliJetInfoSummary() : fPt(0), fEta(0), fPhi(0), fR(0), fZ(0) {;}
174  AliJetInfoSummary(const AliDmesonJetInfo& source, std::string n);
175  virtual ~AliJetInfoSummary() {}
176 
177  virtual void Reset();
178  virtual void Set(const AliDmesonJetInfo& source, std::string n);
179  virtual void Set(const AliJetInfo& source);
180 
182  Double32_t fPt ; //[0,409.6,13]
184  Double32_t fEta ; //[-2.048,2.048,10]
186  Double32_t fPhi ; //[0,2*pi,10]
188  Double32_t fR ; //[0,2.56,7]
190  Double32_t fZ ; //[0,1.024,10]
191 
193  ClassDef(AliJetInfoSummary, 3);
195  };
196 
203  public:
204  AliDmesonInfoSummary() : fPt(0), fEta(0), fPhi(0) {;}
205  AliDmesonInfoSummary(const AliDmesonJetInfo& source);
207 
208  virtual void Reset();
209  virtual void Set(const AliDmesonJetInfo& source);
210 
212  Double32_t fPt ; //[0,204.8,12]
214  Double32_t fEta ; //[-2.048,2.048,10]
216  Double32_t fPhi ; //[0,2*pi,10]
217 
219  ClassDef(AliDmesonInfoSummary, 2);
221  };
222 
229  public:
231  AliD0InfoSummary(const AliDmesonJetInfo& source);
232  virtual ~AliD0InfoSummary() {}
233 
234  virtual void Reset();
235  virtual void Set(const AliDmesonJetInfo& source);
236 
238  Double32_t fInvMass ; //[0,6.5536,16]
239 
241  ClassDef(AliD0InfoSummary, 2);
243  };
244 
251  public:
253  AliDStarInfoSummary(const AliDmesonJetInfo& source);
254  virtual ~AliDStarInfoSummary() {}
255 
256  virtual void Reset();
257  virtual void Set(const AliDmesonJetInfo& source);
258 
260  Double32_t f2ProngInvMass ; //[0,8.192,14]
262  Double32_t fDeltaInvMass ; //[0,0.8192,16]
263 
265  ClassDef(AliDStarInfoSummary, 2);
267  };
268 
269  class AliHFJetDefinition : public TObject {
270  public:
272  AliHFJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco);
273  AliHFJetDefinition(const AliHFJetDefinition &source);
274 
276 
277  const char* GetName() const;
278 
279  void SetJetPhiRange(Double_t min, Double_t max) { fMinJetPhi = min; fMaxJetPhi = max; }
280  void SetJetEtaRange(Double_t min, Double_t max) { fMinJetEta = min; fMaxJetEta = max; }
281  void SetJetPtRange(Double_t min, Double_t max) { fMinJetPt = min; fMaxJetPt = max; }
282  void SetChargedPtRange(Double_t min, Double_t max) { fMinChargedPt = min; fMaxChargedPt = max; }
283  void SetNeutralPtRange(Double_t min, Double_t max) { fMinNeutralPt = min; fMaxNeutralPt = max; }
284  void SetAcceptanceType(UInt_t a) { fAcceptance = a ; }
285  Double_t GetRadius() const { return fRadius; }
286 
287  Bool_t IsJetInAcceptance(const AliJetInfo& jet) const;
288  Bool_t IsJetInAcceptance(const AliDmesonJetInfo& dMesonJet, std::string n) const;
289 
290  friend bool operator< (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
291  friend inline bool operator> (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return rhs < lhs ; }
292  friend inline bool operator<=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs > rhs) ; }
293  friend inline bool operator>=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs < rhs) ; }
294 
295  friend bool operator==(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
296  friend inline bool operator!=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs == rhs); }
297 
298  protected:
300  friend class AnalysisEngine;
301 
302  void SetDetectorJetEtaPhiRange(const AliEMCALGeometry* const geom, Int_t run);
303 
305  Double_t fRadius ;
308  UInt_t fAcceptance ;
309  Double_t fMinJetPt ;
310  Double_t fMaxJetPt ;
311  Double_t fMinJetPhi ;
312  Double_t fMaxJetPhi ;
313  Double_t fMinJetEta ;
314  Double_t fMaxJetEta ;
315  Double_t fMinChargedPt ;
316  Double_t fMaxChargedPt ;
317  Double_t fMinNeutralPt ;
318  Double_t fMaxNeutralPt ;
319  std::vector<AliJetInfo> fJets ;
320 
321  private:
323  ClassDef(AliHFJetDefinition, 3);
325  };
326 
332  class AnalysisEngine : public TObject {
333  public:
334  typedef std::pair<AliJetInfo*, Double_t> jet_distance_pair;
335 
336  static EMesonOrigin_t CheckOrigin(const AliAODMCParticle* part, TClonesArray* mcArray);
337  static EMesonDecayChannel_t CheckDecayChannel(const AliAODMCParticle* part, TClonesArray* mcArray);
338 
339  AnalysisEngine();
340  AnalysisEngine(ECandidateType_t type, EMCMode_t MCmode, AliRDHFCuts* cuts = 0, Int_t nBins=80, Double_t range = 0.50);
341  AnalysisEngine(const AnalysisEngine &source);
342  AnalysisEngine& operator=(const AnalysisEngine& source);
343 
344  virtual ~AnalysisEngine();
345 
347  void SetMCMode(EMCMode_t m) { fMCMode = m ; }
348  void SetNMassBins(Int_t n) { fNMassBins = n ; }
349  void SetMassRange(Double_t min, Double_t max) { fMinMass = min ; fMaxMass = max ; }
350  void AdoptRDHFCuts(AliRDHFCuts* cuts);
351  void SetRDHFCuts(AliRDHFCuts* cuts);
352  void SetRejectedOriginMap(UInt_t m) { fRejectedOrigin = m ; }
353  void SetAcceptedDecayMap(UInt_t m) { fAcceptedDecay = m ; }
354 
355  const char* GetCandidateName() const { return fCandidateName.Data(); }
356  const char* GetName() const;
357  const char* GetName(const AliHFJetDefinition& jetDef) const;
358 
359  EMCMode_t GetMCMode() const { return fMCMode ; }
361 
364  std::vector<AliHFJetDefinition>::iterator FindJetDefinition(const AliHFJetDefinition& eng);
365  std::vector<AliAnalysisTaskDmesonJets::AliHFJetDefinition>& GetJetDefinitions() { return fJetDefinitions; }
366  Bool_t IsAnyJetInAcceptance(const AliDmesonJetInfo& dMesonJet) const;
367 
368 #if !(defined(__CINT__) || defined(__MAKECINT__))
369  std::map<int, AliDmesonJetInfo>& GetDmesons() { return fDmesonJets; }
370 #endif
371 
372  void Init(const AliEMCALGeometry* const geom, Int_t runNumber);
373 
374  TTree* BuildTree(const char* taskName);
375  TTree* GetTree() const { return fTree; }
376  Bool_t FillTree(Bool_t applyKinCuts);
377 
378  void AssignDataSlot(Int_t n) { fDataSlotNumber = n; }
379  Int_t GetDataSlotNumber() const { return fDataSlotNumber; }
380 
381  void BuildHnSparse(UInt_t enabledAxis);
382  Bool_t FillHnSparse(Bool_t applyKinCuts);
383  Bool_t FillHnSparse(THnSparse* h, const AliDmesonJetInfo& DmesonJet, std::string n);
384 
385  Bool_t FillQA(Bool_t applyKinCuts);
386 
387  Bool_t IsInhibit() const { return fInhibit; }
388 
389  jet_distance_pair FindJetMacthedToGeneratedDMeson(const AliDmesonJetInfo& dmeson, AliHFJetDefinition& jetDef, Double_t dMax, Bool_t applyKinCuts);
390 
391  friend bool operator< (const AnalysisEngine& lhs, const AnalysisEngine& rhs);
392  friend inline bool operator> (const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return rhs < lhs ; }
393  friend inline bool operator<=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs > rhs) ; }
394  friend inline bool operator>=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs < rhs) ; }
395 
396  friend bool operator==(const AnalysisEngine& lhs, const AnalysisEngine& rhs);
397  friend inline bool operator!=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs == rhs); }
398 
399  protected:
400  void RunAnalysis();
401  void FindJets(AliHFJetDefinition& jetDef);
402 
404  TString fCandidateName ;
405  UInt_t fCandidatePDG ;
406  UChar_t fNDaughters ;
407  TArrayI fPDGdaughters ;
408  TString fBranchName ;
410  Int_t fNMassBins ;
411  Double_t fMinMass ;
412  Double_t fMaxMass ;
414  UInt_t fRejectedOrigin ;
415  UInt_t fAcceptedDecay ;
416  Bool_t fInhibit ;
417  std::vector<AliHFJetDefinition> fJetDefinitions ;
418  Float_t fPtBinWidth ;
419  Float_t fMaxPt ;
421  TTree *fTree ;
424  std::map<int, AliDmesonJetInfo> fDmesonJets ;
425  TClonesArray *fCandidateArray ;
429  AliAODEvent *fAodEvent ;
432 
434 
435  private:
436 
437  void AddInputVectors(AliEmcalContainer* cont, Int_t offset, TH2* rejectHist=0);
438  void SetCandidateProperties(Double_t range);
439  AliAODMCParticle* MatchToMC() const;
442 
443  Bool_t ExtractRecoDecayAttributes(const AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, UInt_t i);
444  Bool_t ExtractD0Attributes(const AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, UInt_t i);
445  Bool_t ExtractDstarAttributes(const AliAODRecoCascadeHF* DstarCand, AliDmesonJetInfo& DmesonJet, UInt_t i);
446  Bool_t FindJet(AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, AliHFJetDefinition& jetDef);
447 
449  ClassDef(AnalysisEngine, 2);
451  };
452 
454  AliAnalysisTaskDmesonJets(const char* name, Int_t nOutputTrees=2);
455  virtual ~AliAnalysisTaskDmesonJets();
456 
457  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString cutfname = "");
458  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, EMCMode_t bkgMode, const AliHFJetDefinition& jetDef, TString cutfname = "");
459  std::list<AnalysisEngine>::iterator FindAnalysisEngine(const AnalysisEngine& eng);
460 
462  void SetShowInvMass(Bool_t b = kTRUE) { fEnabledAxis = b ? fEnabledAxis | kInvMass : fEnabledAxis & ~kInvMass ; }
465  void SetShowDeltaR(Bool_t b = kTRUE) { fEnabledAxis = b ? fEnabledAxis | kDeltaR : fEnabledAxis & ~kDeltaR ; }
466  void SetShowDeltaEta(Bool_t b = kTRUE) { fEnabledAxis = b ? fEnabledAxis | kDeltaEta : fEnabledAxis & ~kDeltaEta ; }
467  void SetShowDeltaPhi(Bool_t b = kTRUE) { fEnabledAxis = b ? fEnabledAxis | kDeltaPhi : fEnabledAxis & ~kDeltaPhi ; }
470 
473 
474  virtual void UserCreateOutputObjects();
475  virtual void ExecOnce();
476  virtual Bool_t Run();
477  virtual Bool_t FillHistograms();
478 
479  protected:
480 
482 
483  AliRDHFCuts* LoadDMesonCutsFromFile(TString cutfname, TString cutsname);
484 
485  static const char* GetHFEventRejectionReasonLabel(UInt_t& bitmap);
486  static void CalculateMassLimits(Double_t range, Int_t pdg, Int_t nbins, Double_t& minMass, Double_t& maxMass);
487 
488  Int_t PostDataFromAnalysisEngine(const AnalysisEngine& eng);
489 
490  std::list<AnalysisEngine>
492  UInt_t fEnabledAxis ;
496  Int_t fNOutputTrees ;
497  AliAODEvent *fAodEvent ;
499 
500  private:
501 
504 
506  ClassDef(AliAnalysisTaskDmesonJets, 6);
508 };
509 
510 #endif
friend bool operator<=(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Int_t pdg
void Print() const
Prints the content of this object in the standard output.
AliDmesonInfoSummary * fCurrentDmesonJetInfo
! Current D meson jet info
std::list< AnalysisEngine > fAnalysisEngines
Array of analysis parameters.
AliJetContainer::EJetType_t EJetType_t
Analysis task for D meson jets.
UInt_t fRejectedOrigin
Bit mask with D meson origins that are rejected.
virtual void Set(const AliDmesonJetInfo &source)
Invariant mass of the D0 meson candidate in GeV/c2.
Bool_t IsJetInAcceptance(const AliJetInfo &jet) const
AliJetInfo(Double_t px, Double_t py, Double_t pz, Double_t E, Int_t nconst, Double_t nef, Double_t cpt, Double_t npt)
Double_t fSoftPionPt
! Transverse momentum of the soft pion of the D* candidate
AliRDHFCuts * fRDHFCuts
D meson candidates cuts.
Lightweight class that encapsulates D meson jets.
ERecoScheme_t fRecoScheme
Jet recombination scheme (pt scheme, E scheme, ...)
virtual void SetOutputTypeInternal(EOutputType_t b)
Double_t fMaxNeutralPt
Transverse momentum of the leading neutral particle (or cluster)
void RunDetectorLevelAnalysis()
Run a detector level analysis.
jet_distance_pair FindJetMacthedToGeneratedDMeson(const AliDmesonJetInfo &dmeson, AliHFJetDefinition &jetDef, Double_t dMax, Bool_t applyKinCuts)
friend bool operator<(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Declaration of class AliTLorentzVector.
virtual void UserCreateOutputObjects()
Creates the output containers.
Double32_t fInvMass
Invariant mass of the D0 meson candidate in GeV/c2.
Lightweight class that encapsulates D meson jets.
Double_t fInvMass2Prong
! 2-prong mass of the D* candidate (w/o the soft pion)
friend bool operator==(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Double_t fMinChargedPt
Minimum pt of the leading charged particle (or track)
static void CalculateMassLimits(Double_t range, Int_t pdg, Int_t nbins, Double_t &minMass, Double_t &maxMass)
AliAODEvent * fAodEvent
! AOD event
AliJetContainer::EJetAlgo_t EJetAlgo_t
Bool_t FindJet(AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, AliHFJetDefinition &jetDef)
UInt_t fEnabledAxis
Use bit defined in EAxis_t to enable axis in the THnSparse.
std::vector< AliAnalysisTaskDmesonJets::AliHFJetDefinition > & GetJetDefinitions()
EMCMode_t fMCMode
MC mode: No MC (data and MC detector level), background-only (MC), signal-only (MC), MC truth (particle level)
AnalysisEngine()
This is the default constructor, used for ROOT I/O purposes.
Int_t fDataSlotNumber
! Data slot where the tree output is posted
friend bool operator>(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
void Init(const AliEMCALGeometry *const geom, Int_t runNumber)
Initialize the analysis engine.
AliVParticle * fDmesonParticle
! pointer to the particle object
Container for particles within the EMCAL framework.
Select tracks based on specific prescriptions of HF analysis.
Double32_t fPt
Transverse momentum of the jet in GeV/c.
ECandidateType_t fCandidateType
Candidate type.
Double_t GetDistance(std::string n, Double_t &deta, Double_t &dphi) const
Int_t fMCLabel
! MC label, i.e. index of the generator level D meson (only for detector level D meson candidates) ...
friend bool operator!=(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
Double32_t fR
Distance between D meson and jet axis.
virtual void Set(const AliDmesonJetInfo &source)
EJetType_t fJetType
Jet type (charged, full, neutral)
std::pair< AliJetInfo *, Double_t > jet_distance_pair
Double32_t fPt
Transverse momentum of the D meson in GeV/c.
virtual void Set(const AliDmesonJetInfo &source)
AliTLorentzVector fD
! 4-momentum of the D meson candidate
Double_t GetDistance(const AliJetInfo &jet, Double_t &deta, Double_t &dphi) const
AliAnalysisTaskDmesonJets()
This is the default constructor, used for ROOT I/O purposes.
AliClusterContainer * fClusterContainer
! Cluster container
virtual void Reset()
Reset the current object.
AnalysisEngine & operator=(const AnalysisEngine &source)
Struct that encapsulates analysis parameters.
std::vector< AliHFJetDefinition >::iterator FindJetDefinition(const AliHFJetDefinition &eng)
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
Double_t Phi_0_2pi() const
Double_t fMinNeutralPt
Minimum pt of the leading neutral particle (or cluster)
void SetShowSoftPionPt(Bool_t b=kTRUE)
AliRDHFCuts * LoadDMesonCutsFromFile(TString cutfname, TString cutsname)
std::list< AnalysisEngine >::iterator FindAnalysisEngine(const AnalysisEngine &eng)
std::vector< AliHFJetDefinition > fJetDefinitions
Jet definitions.
Double_t fMaxNeutralPt
Maximum pt of the leading neutral particle (or cluster)
Double_t fMaxMass
Max mass in histogram axis.
EJetAlgo_t fJetAlgo
Jet algorithm (kt, anti-kt,...)
static const char * GetHFEventRejectionReasonLabel(UInt_t &bitmap)
Lightweight class that encapsulates D*.
friend bool operator!=(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
friend bool operator<(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
AliAnalysisTaskDmesonJets & operator=(const AliAnalysisTaskDmesonJets &source)
Bool_t ExtractDstarAttributes(const AliAODRecoCascadeHF *DstarCand, AliDmesonJetInfo &DmesonJet, UInt_t i)
const AliJetInfo * GetJet(std::string n) const
Double_t fNEF
Neutral Energy Fraction of the jet.
TClonesArray * fCandidateArray
! D meson candidate array
AliAODMCParticle * MatchToMC() const
virtual ~AliAnalysisTaskDmesonJets()
This is the standard destructor.
Bool_t ExtractD0Attributes(const AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, UInt_t i)
std::vector< AliJetInfo > fJets
! Inclusive jets reconstructed in the current event (includes D meson candidate daughters, if any)
void SetShow2ProngInvMass(Bool_t b=kTRUE)
Select MC particles based on specific prescriptions of HF analysis.
static EMesonDecayChannel_t CheckDecayChannel(const AliAODMCParticle *part, TClonesArray *mcArray)
Double_t fMaxChargedPt
Transverse momentum of the leading charged particle (or track)
friend bool operator>=(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
friend bool operator==(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
friend bool operator>=(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Double_t fMaxChargedPt
Maximum pt of the leading charged particle (or track)
std::map< std::string, AliJetInfo > fJets
! list of jets
void AddInputVectors(AliEmcalContainer *cont, Int_t offset, TH2 *rejectHist=0)
Double32_t fDeltaInvMass
< Difference between the Kpipi and the Kpi invariant masses in GeV/c2
Double_t minMass
void RunParticleLevelAnalysis()
Run a particle level analysis.
std::map< int, AliDmesonJetInfo > & GetDmesons()
std::map< int, AliDmesonJetInfo > fDmesonJets
! Array containing the D meson jets
Bool_t fApplyKinematicCuts
Apply jet kinematic cuts.
const char * GetName() const
Generate a name for this jet definition.
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
UInt_t fAcceptedDecay
Bit mask with D meson decays that are accepted.
void SetDetectorJetEtaPhiRange(const AliEMCALGeometry *const geom, Int_t run)
Bool_t fReconstructed
! Whether this D meson was reconstructed (only for particle level D mesons)
Bool_t ExtractRecoDecayAttributes(const AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, UInt_t i)
Int_t fNConstituents
Number of constituents of the jet.
EOutputType_t fOutputType
Output type: none, TTree or THnSparse.
AnalysisEngine * AddAnalysisEngine(ECandidateType_t type, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString cutfname="")
void SetShowJetConstituents(Bool_t b=kTRUE)
TArrayI fPDGdaughters
List of the PDG code of the daughters.
friend bool operator<=(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
const Int_t nbins
Double_t maxMass
AliJetContainer::ERecoScheme_t ERecoScheme_t
TString fBranchName
AOD branch where the D meson candidate are found.
Int_t fNOutputTrees
Maximum number of output trees.
AliHFJetDefinition()
This is the default constructor, used for ROOT I/O purposes.
AliHFJetDefinition & operator=(const AliHFJetDefinition &source)
friend bool operator>(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
AliTLorentzVector fMomentum
4-momentum of the jet
AliHFAODMCParticleContainer * fMCContainer
! MC particle container
AliJetInfoSummary ** fCurrentJetInfo
! Current jet info
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
AliHFJetDefinition * AddJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco)
Container structure for EMCAL clusters.
Lightweight class that encapsulates D0.
AliHFTrackContainer * fTrackContainer
! Track container
void SetShowPositionJet(Bool_t b=kTRUE)
Bool_t IsAnyJetInAcceptance(const AliDmesonJetInfo &dMesonJet) const
Int_t PostDataFromAnalysisEngine(const AnalysisEngine &eng)
static EMesonOrigin_t CheckOrigin(const AliAODMCParticle *part, TClonesArray *mcArray)
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
THistManager fHistManager
Histogram manager.
void Reset()
Reset all fields to their default values.
virtual void Set(const AliDmesonJetInfo &source, std::string n)
Double_t fMinMass
Min mass in histogram axis.