AliPhysics  fde8a9f (fde8a9f)
 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),
80  };
81 
83  kAnyDecay = 0,
84  kUnknownDecay = BIT(0),
85  kDecayD0toKpi = BIT(1),
87  };
88 
89  enum EAxis_t {
90  kPositionD = BIT(0) , // Add the D meson eta/phi axis in the THnSparse
91  kInvMass = BIT(1) , // Add the invariant mass axis in the THnSparse
92  k2ProngInvMass = BIT(2) , // Add the 2 prong invariant mass axis in the THnSparse (for D* this is the inv mass of the D0)
93  kSoftPionPt = BIT(3) , // Add the soft pion pt axis in the THnSparse (for D*)
94  kDeltaR = BIT(4) , // Add the delta R axis in the THnSparse
95  kDeltaEta = BIT(5) , // Add the delta eta axis in the THnSparse
96  kDeltaPhi = BIT(6) , // Add the delta phi axis in the THnSparse
97  kPositionJet = BIT(7) , // Add the jet eta/phi axis in the THnSparse
98  kJetConstituents = BIT(8) // Add the jet constituent axis in the THnSparse
99  };
100 
106  class AliJetInfo {
107  public:
109  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) :
110  fMomentum(px, py, pz, E), fNConstituents(nconst), fNEF(nef), fMaxChargedPt(cpt), fMaxNeutralPt(npt) {}
111 
112  virtual ~AliJetInfo() {;}
113 
114  Double_t Pt() const { return fMomentum.Pt() ; }
115  Double_t Eta() const { return fMomentum.Eta() ; }
116  Double_t Phi() const { return fMomentum.Phi() ; }
117  Double_t Phi_0_2pi() const { return fMomentum.Phi_0_2pi(); }
118  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
119  Double_t GetDistance(const AliJetInfo& jet) const;
120 
126 
128  ClassDef(AliJetInfo, 1);
130  };
131 
138  public:
140  AliDmesonJetInfo(const AliDmesonJetInfo &source);
142  virtual ~AliDmesonJetInfo() {;}
143 
144  AliVParticle *fDmesonParticle ;
148  std::map<std::string, AliJetInfo>
149  fJets ;
152  AliAODMCParticle *fFirstParton ;
154  AliAODMCParticle *fLastParton ;
156  Byte_t fSelectionType ;
157 
158  const AliJetInfo* GetJet(std::string n) const;
159  AliJetInfo* GetJet(std::string n);
160  void Reset();
161  Double_t GetZ(std::string n) const;
162  Double_t GetDistance(std::string n, Double_t& deta, Double_t& dphi) const;
163  Double_t GetDistance(std::string n) const;
164  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
165  Double_t GetDistance(const AliJetInfo& jet) const;
166  void Print() const;
167 
169  ClassDef(AliDmesonJetInfo, 1);
171  };
172 
179  public:
180  AliJetInfoSummary() : fPt(0), fEta(0), fPhi(0), fR(0), fZ(0) {;}
181  AliJetInfoSummary(const AliDmesonJetInfo& source, std::string n);
182  virtual ~AliJetInfoSummary() {}
183 
184  virtual void Reset();
185  virtual void Set(const AliDmesonJetInfo& source, std::string n);
186  virtual void Set(const AliJetInfo& source);
187 
189  Double32_t fPt ; //[0,409.6,13]
191  Double32_t fEta ; //[-2.048,2.048,10]
193  Double32_t fPhi ; //[0,2*pi,10]
195  Double32_t fR ; //[0,2.56,7]
197  Double32_t fZ ; //[0,1.024,10]
198 
200  ClassDef(AliJetInfoSummary, 3);
202  };
203 
210  public:
211  AliDmesonInfoSummary() : fPt(0), fEta(0), fPhi(0) {;}
212  AliDmesonInfoSummary(const AliDmesonJetInfo& source);
214 
215  virtual void Reset();
216  virtual void Set(const AliDmesonJetInfo& source);
217 
219  Double32_t fPt ; //[0,204.8,12]
221  Double32_t fEta ; //[-2.048,2.048,10]
223  Double32_t fPhi ; //[0,2*pi,10]
224 
226  ClassDef(AliDmesonInfoSummary, 2);
228  };
229 
236  public:
240 
241  virtual void Reset();
242  virtual void Set(const AliDmesonJetInfo& source);
243 
245  Double32_t fFirstPartonType ; //[0, 16, 4]
247  Double32_t fFirstPartonPt ; //[0,819.2,14]
249  Double32_t fLastPartonType ; //[0, 16, 4]
251  Double32_t fLastPartonPt ; //[0,819.2,14]
252 
254  ClassDef(AliDmesonMCInfoSummary, 2);
256  };
257 
264  public:
266  AliD0InfoSummary(const AliDmesonJetInfo& source);
267  virtual ~AliD0InfoSummary() {}
268 
269  virtual void Reset();
270  virtual void Set(const AliDmesonJetInfo& source);
271 
273  Double32_t fInvMass ; //[0,6.5536,16]
274  Double32_t fSelectionType ; //[0,4,2]
275 
277  ClassDef(AliD0InfoSummary, 3);
279  };
280 
287  public:
289  AliDStarInfoSummary(const AliDmesonJetInfo& source);
290  virtual ~AliDStarInfoSummary() {}
291 
292  virtual void Reset();
293  virtual void Set(const AliDmesonJetInfo& source);
294 
296  Double32_t f2ProngInvMass ; //[0,8.192,14]
298  Double32_t fDeltaInvMass ; //[0,0.8192,16]
299 
301  ClassDef(AliDStarInfoSummary, 2);
303  };
304 
305  class AliHFJetDefinition : public TObject {
306  public:
309  AliHFJetDefinition(const AliHFJetDefinition &source);
310 
312 
313  const char* GetName() const;
314 
315  void SetJetPhiRange(Double_t min, Double_t max) { fMinJetPhi = min; fMaxJetPhi = max; }
316  void SetJetEtaRange(Double_t min, Double_t max) { fMinJetEta = min; fMaxJetEta = max; }
317  void SetJetPtRange(Double_t min, Double_t max) { fMinJetPt = min; fMaxJetPt = max; }
320  Double_t GetRadius() const { return fRadius; }
321 
322  Bool_t IsJetInAcceptance(const AliJetInfo& jet) const;
323  Bool_t IsJetInAcceptance(const AliDmesonJetInfo& dMesonJet, std::string n) const;
324 
325  friend bool operator< (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
326  friend inline bool operator> (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return rhs < lhs ; }
327  friend inline bool operator<=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs > rhs) ; }
328  friend inline bool operator>=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs < rhs) ; }
329 
330  friend bool operator==(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
331  friend inline bool operator!=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs == rhs); }
332 
333  protected:
335  friend class AnalysisEngine;
336 
351  std::vector<AliJetInfo> fJets ;
352 
353  private:
355  ClassDef(AliHFJetDefinition, 4);
357  };
358 
364  class AnalysisEngine : public TObject {
365  public:
366  typedef std::pair<AliJetInfo*, Double_t> jet_distance_pair;
367 
368  static std::pair<AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle*> CheckOrigin(const AliAODMCParticle* part, TClonesArray* mcArray, Bool_t firstParton=kFALSE);
369  static EMesonDecayChannel_t CheckDecayChannel(const AliAODMCParticle* part, TClonesArray* mcArray);
370 
371  AnalysisEngine();
372  AnalysisEngine(ECandidateType_t type, EMCMode_t MCmode, AliRDHFCuts* cuts = 0, Int_t nBins=80, Double_t range = 0.50);
373  AnalysisEngine(const AnalysisEngine &source);
374  AnalysisEngine& operator=(const AnalysisEngine& source);
375 
376  virtual ~AnalysisEngine();
377 
379  void SetMCMode(EMCMode_t m) { fMCMode = m ; }
380  void SetNMassBins(Int_t n) { fNMassBins = n ; }
381  void SetMassRange(Double_t min, Double_t max) { fMinMass = min ; fMaxMass = max ; }
382  void AdoptRDHFCuts(AliRDHFCuts* cuts);
383  void SetRDHFCuts(AliRDHFCuts* cuts);
386 
387  const char* GetCandidateName() const { return fCandidateName.Data(); }
388  const char* GetName() const;
389  const char* GetName(const AliHFJetDefinition& jetDef) const;
390 
391  EMCMode_t GetMCMode() const { return fMCMode ; }
393 
396  std::vector<AliHFJetDefinition>::iterator FindJetDefinition(const AliHFJetDefinition& eng);
397  std::vector<AliAnalysisTaskDmesonJets::AliHFJetDefinition>& GetJetDefinitions() { return fJetDefinitions; }
398  Bool_t IsAnyJetInAcceptance(const AliDmesonJetInfo& dMesonJet) const;
399 
400 #if !(defined(__CINT__) || defined(__MAKECINT__))
401  std::map<int, AliDmesonJetInfo>& GetDmesons() { return fDmesonJets; }
402 #endif
403 
404  void Init(const AliEMCALGeometry* const geom, Int_t runNumber);
405 
406  TTree* BuildTree(const char* taskName);
407  TTree* GetTree() const { return fTree; }
408  Bool_t FillTree(Bool_t applyKinCuts);
409 
412 
413  void BuildHnSparse(UInt_t enabledAxis);
414  Bool_t FillHnSparse(Bool_t applyKinCuts);
415  Bool_t FillHnSparse(THnSparse* h, const AliDmesonJetInfo& DmesonJet, std::string n);
416 
417  Bool_t FillQA(Bool_t applyKinCuts);
418 
419  Bool_t IsInhibit() const { return fInhibit; }
420 
422 
423  friend bool operator< (const AnalysisEngine& lhs, const AnalysisEngine& rhs);
424  friend inline bool operator> (const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return rhs < lhs ; }
425  friend inline bool operator<=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs > rhs) ; }
426  friend inline bool operator>=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs < rhs) ; }
427 
428  friend bool operator==(const AnalysisEngine& lhs, const AnalysisEngine& rhs);
429  friend inline bool operator!=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs == rhs); }
430 
431  std::map<AliAODMCParticle*, Short_t> fFirstPartons ;
432  std::map<AliAODMCParticle*, Short_t> fLastPartons ;
433 
434  protected:
435  void RunAnalysis();
436  void FindJets(AliHFJetDefinition& jetDef);
437 
441  UChar_t fNDaughters ;
452  std::vector<AliHFJetDefinition> fJetDefinitions ;
459  std::map<int, AliDmesonJetInfo> fDmesonJets ;
460  TClonesArray *fCandidateArray ;
467 
469 
470  private:
471 
472  void AddInputVectors(AliEmcalContainer* cont, Int_t offset, TH2* rejectHist=0);
473  void SetCandidateProperties(Double_t range);
474  AliAODMCParticle* MatchToMC() const;
477 
482 
484  ClassDef(AnalysisEngine, 2);
486  };
487 
489  AliAnalysisTaskDmesonJets(const char* name, Int_t nOutputTrees=2);
490  virtual ~AliAnalysisTaskDmesonJets();
491 
492  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString cutfname = "");
493  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, EMCMode_t bkgMode, const AliHFJetDefinition& jetDef, TString cutfname = "");
494  std::list<AnalysisEngine>::iterator FindAnalysisEngine(const AnalysisEngine& eng);
495 
505 
508 
509  virtual void UserCreateOutputObjects();
510  virtual void ExecOnce();
511  virtual Bool_t Run();
512  virtual Bool_t FillHistograms();
513 
514  static AliAnalysisTaskDmesonJets* AddTaskDmesonJets(TString ntracks = "usedefault", TString nclusters = "usedefault", TString nMCpart = "", Int_t nMaxTrees = 2, TString suffix = "");
515 
516  protected:
517 
519 
520  AliRDHFCuts* LoadDMesonCutsFromFile(TString cutfname, TString cutsname);
521 
522  static const char* GetHFEventRejectionReasonLabel(UInt_t& bitmap);
524 
525  Int_t PostDataFromAnalysisEngine(const AnalysisEngine& eng);
526 
528 
529  std::list<AnalysisEngine>
540 
541  private:
542 
545 
547  ClassDef(AliAnalysisTaskDmesonJets, 6);
549 };
550 
551 #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 (used for MC analysis, i.e. signal-only, background-only and particle-level)
virtual void Set(const AliDmesonJetInfo &source)
Invariant mass of the D0 meson candidate in GeV/c2.
double Double_t
Definition: External.C:58
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.
virtual void Set(const AliDmesonJetInfo &source)
Lightweight class that encapsulates D meson jets.
AliHFAODMCParticleContainer * fMCContainer
! MC particle container
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.
void FillPartonLevelHistograms()
Fill histograms with parton-level information.
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.
AliAODMCParticle * fFirstParton
! pointer to the first parton in the shower tree of the D meson (only for particle level D mesons) ...
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)
Short_t fLastPartonType
! type of the last parton in the shower tree (only for particle level D mesons)
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
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
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)
Double32_t fFirstPartonPt
Transverse momentum of the first parton.
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)
Double32_t fLastPartonPt
Transverse momentum of the last parton.
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
Short_t fFirstPartonType
! type of the first parton in the shower tree (only for particle level D mesons)
short Short_t
Definition: External.C:23
AliAODMCParticle * MatchToMC() const
virtual ~AliAnalysisTaskDmesonJets()
This is the standard destructor.
Byte_t fSelectionType
! for D0: 0=not selected, 1=D0, 2=D0bar, 3=both
static std::pair< AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle * > CheckOrigin(const AliAODMCParticle *part, TClonesArray *mcArray, Bool_t firstParton=kFALSE)
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)
AliDmesonJetInfo & operator=(const AliDmesonJetInfo &source)
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
Definition: External.C:220
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.
Definition: THistManager.h:43
UInt_t fAcceptedDecay
Bit mask with D meson decays that are accepted (only used for particle-level analysis) ...
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)
std::map< AliAODMCParticle *, Short_t > fLastPartons
! set of the last partons in the shower that produced each D meson
const Int_t nbins
Double_t maxMass
AliJetContainer::ERecoScheme_t ERecoScheme_t
TString fBranchName
AOD branch where the D meson candidate are found.
bool Bool_t
Definition: External.C:53
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
AliAODMCParticle * fLastParton
! pointer to the last parton in the shower tree of the D meson (only for particle level D mesons) ...
Int_t PostDataFromAnalysisEngine(const AnalysisEngine &eng)
std::map< AliAODMCParticle *, Short_t > fFirstPartons
! set of the first partons in the shower that produced each D meson
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
THistManager fHistManager
Histogram manager.
void Reset()
Reset all fields to their default values.
static AliAnalysisTaskDmesonJets * AddTaskDmesonJets(TString ntracks="usedefault", TString nclusters="usedefault", TString nMCpart="", Int_t nMaxTrees=2, TString suffix="")
virtual void Set(const AliDmesonJetInfo &source, std::string n)
Double_t fMinMass
Min mass in histogram axis.