AliPhysics  32e057f (32e057f)
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 class TRandom;
49 class AliRhoParameter;
50 
51 //C++
52 #include <exception>
53 #include <list>
54 #include <vector>
55 #include <map>
56 
57 #include "AliTLorentzVector.h"
58 #include "THistManager.h"
59 
61 #include "AliJetContainer.h"
62 
64 {
65  public:
66 
67  class AliEventNotFound : public std::exception
68  {
69  public:
70  AliEventNotFound(const std::string& class_name, const std::string& method_name);
71 #if !(defined(__CINT__) || defined(__MAKECINT__))
72  const char* what() const noexcept;
73 #endif
74 
75 
76  private:
77  std::string fClassName ;
78  std::string fAccessMethodName ;
79  std::string fWhat ;
80  };
81 
85 
90  kUnknownQuark = BIT(0),
91  kFromDown = BIT(1),
92  kFromUp = BIT(2),
93  kFromStrange = BIT(3),
94  kFromCharm = BIT(4),
95  kFromBottom = BIT(5),
96  kFromTop = BIT(6),
97  kFromGluon = BIT(7),
99  };
100 
103  kUnknownDecay = BIT(0),
104  kDecayD0toKpi = BIT(1),
106  };
107 
108  enum EAxis_t {
109  kPositionD = BIT(0) , // Add the D meson eta/phi axis in the THnSparse
110  kInvMass = BIT(1) , // Add the invariant mass axis in the THnSparse
111  k2ProngInvMass = BIT(2) , // Add the 2 prong invariant mass axis in the THnSparse (for D* this is the inv mass of the D0)
112  kSoftPionPt = BIT(3) , // Add the soft pion pt axis in the THnSparse (for D*)
113  kDeltaR = BIT(4) , // Add the delta R axis in the THnSparse
114  kDeltaEta = BIT(5) , // Add the delta eta axis in the THnSparse
115  kDeltaPhi = BIT(6) , // Add the delta phi axis in the THnSparse
116  kPositionJet = BIT(7) , // Add the jet eta/phi axis in the THnSparse
117  kJetConstituents = BIT(8) // Add the jet constituent axis in the THnSparse
118  };
119 
125  class AliJetInfo {
126  public:
127  AliJetInfo() : fMomentum(), fNConstituents(0), fNEF(0), fMaxChargedPt(0), fMaxNeutralPt(0), fArea(0), fCorrPt(0) {}
128  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) :
129  fMomentum(px, py, pz, E), fNConstituents(nconst), fNEF(nef), fMaxChargedPt(cpt), fMaxNeutralPt(npt), fArea(0), fCorrPt(0) {}
130 
131  virtual ~AliJetInfo() {;}
132 
133  Double_t Pt() const { return fMomentum.Pt() ; }
134  Double_t Eta() const { return fMomentum.Eta() ; }
135  Double_t Phi() const { return fMomentum.Phi() ; }
136  Double_t Phi_0_2pi() const { return fMomentum.Phi_0_2pi(); }
137  Double_t CorrPt() const { return fCorrPt ; }
138  Int_t GetNConstituents() const { return fNConstituents; }
139  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
140  Double_t GetDistance(const AliJetInfo& jet) const;
141 
149 
151  ClassDef(AliJetInfo, 2);
153  };
154 
161  public:
163  AliDmesonJetInfo(const AliDmesonJetInfo &source);
165  virtual ~AliDmesonJetInfo() {;}
166 
167  AliVParticle *fDmesonParticle ;
171  std::map<std::string, AliJetInfo>
172  fJets ;
175  AliAODMCParticle *fParton ;
177  AliAODMCParticle *fAncestor ;
179  Byte_t fSelectionType ;
180  const AliVEvent *fEvent ;
181 
182  Byte_t GetSelectionTypeSummary() const { return fD0D0bar && fSelectionType ? 3 : fSelectionType; }
183 
184  const AliJetInfo* GetJet(std::string n) const;
185  AliJetInfo* GetJet(std::string n);
186  void Reset();
187  Double_t GetZ(std::string n) const;
188  Double_t GetCorrZ(std::string n) const;
189  Double_t GetDistance(std::string n, Double_t& deta, Double_t& dphi) const;
190  Double_t GetDistance(std::string n) const;
191  Double_t GetDistance(const AliJetInfo& jet, Double_t& deta, Double_t& dphi) const;
192  Double_t GetDistance(const AliJetInfo& jet) const;
193  void Print() const;
194 
196  ClassDef(AliDmesonJetInfo, 2);
198  };
199 
206  public:
207  AliJetInfoSummary() : fPt(0), fEta(0), fPhi(0), fR(0), fZ(0), fN(0) {;}
208  AliJetInfoSummary(const AliDmesonJetInfo& source, std::string n);
209  virtual ~AliJetInfoSummary() {}
210 
211  virtual void Reset();
212  virtual void Set(const AliDmesonJetInfo& source, std::string n);
213  virtual void Set(const AliJetInfo& source);
214 
216  Double32_t fPt ; //[0,409.6,13]
218  Double32_t fEta ; //[-2.048,2.048,10]
220  Double32_t fPhi ; //[0,2*pi,10]
222  Double32_t fR ; //[0,2.56,7]
224  Double32_t fZ ; //[0,1.024,10]
226  Double32_t fN ; //[0, 64, 6]
227 
229  ClassDef(AliJetInfoSummary, 4);
231  };
232 
239  public:
240  AliJetInfoPbPbSummary() : AliJetInfoSummary(), fCorrPt(0), fCorrZ(0), fArea(0) {;}
241  AliJetInfoPbPbSummary(const AliDmesonJetInfo& source, std::string n);
243 
244  virtual void Reset();
245  virtual void Set(const AliDmesonJetInfo& source, std::string n);
246  virtual void Set(const AliJetInfo& source);
247 
249  Double32_t fCorrPt ; //[-409.6,409.6,14]
250 
252  Double32_t fCorrZ ; //[0,1.024,10]
253 
255  Double32_t fArea ; //[0,2.048,8]
256 
258  ClassDef(AliJetInfoPbPbSummary, 2);
260  };
261 
268  public:
269  AliDmesonInfoSummary() : fPt(0), fEta(0), fPhi(0) {;}
270  AliDmesonInfoSummary(const AliDmesonJetInfo& source);
272 
273  virtual void Reset();
274  virtual void Set(const AliDmesonJetInfo& source);
275 
277  Double32_t fPt ; //[0,204.8,12]
279  Double32_t fEta ; //[-2.048,2.048,10]
281  Double32_t fPhi ; //[0,2*pi,10]
282 
284  ClassDef(AliDmesonInfoSummary, 2);
286  };
287 
294  public:
295  AliDmesonMCInfoSummary() : AliDmesonInfoSummary(), fPartonType(0), fPartonPt(0), fAncestorPDG(0) {;}
298 
299  virtual void Reset();
300  virtual void Set(const AliDmesonJetInfo& source);
301 
303  Double32_t fPartonType ; //[0, 16, 4]
305  Double32_t fPartonPt ; //[0,819.2,14]
306 
308 
310  ClassDef(AliDmesonMCInfoSummary, 3);
312  };
313 
320  public:
321  AliD0InfoSummary() : AliDmesonInfoSummary(), fInvMass(0), fSelectionType(0) {}
322  AliD0InfoSummary(const AliDmesonJetInfo& source);
323  virtual ~AliD0InfoSummary() {}
324 
325  virtual void Reset();
326  virtual void Set(const AliDmesonJetInfo& source);
327 
329  Double32_t fInvMass ; //[0,6.5536,16]
331  Double32_t fSelectionType ; //[0,4,2]
332 
334  ClassDef(AliD0InfoSummary, 3);
336  };
337 
346  public:
347  AliD0ExtendedInfoSummary() : AliD0InfoSummary(), fDCA(0), fCosThetaStar(0), fPtK(0), fPtPi(0), fd0K(0), fd0Pi(0), fd0d0(0), fCosPointing(0), fMaxNormd0(0) {}
350 
351  virtual void Reset();
352  virtual void Set(const AliDmesonJetInfo& source);
353 
355  Double32_t fDCA ; //[0,2.56,9]
357  Double32_t fCosThetaStar ; //[-1.28,1.28,8]
359  Double32_t fPtK ; //[0,102.4,11]
361  Double32_t fPtPi ; //[0,102.4,11]
363  Double32_t fd0K ; //[-2.56,2.56,8]
365  Double32_t fd0Pi ; //[-2.56,2.56,8]
367  Double32_t fd0d0 ; //[-0.000524288,0.000524288,20]
369  Double32_t fCosPointing ; //[0,1.28,7]
371  Double32_t fMaxNormd0 ; //[-102.4,102.4,11]
372 
374  ClassDef(AliD0ExtendedInfoSummary, 4);
376  };
377 
384  public:
385  AliDStarInfoSummary() : AliDmesonInfoSummary(), f2ProngInvMass(0), fDeltaInvMass(0) {}
386  AliDStarInfoSummary(const AliDmesonJetInfo& source);
387  virtual ~AliDStarInfoSummary() {}
388 
389  virtual void Reset();
390  virtual void Set(const AliDmesonJetInfo& source);
391 
393  Double32_t f2ProngInvMass ; //[0,8.192,14]
395  Double32_t fDeltaInvMass ; //[0,0.8192,16]
396 
398  ClassDef(AliDStarInfoSummary, 2);
400  };
401 
406  class AliHFJetDefinition : public TObject {
407  public:
409  AliHFJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco);
410  AliHFJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco, TString rhoName);
411  AliHFJetDefinition(const AliHFJetDefinition &source);
412 
414 
415  const char* GetName() const;
416 
417  void SetJetPhiRange(Double_t min, Double_t max) { fMinJetPhi = min; fMaxJetPhi = max; }
418  void SetJetEtaRange(Double_t min, Double_t max) { fMinJetEta = min; fMaxJetEta = max; }
419  void SetJetPtRange(Double_t min, Double_t max) { fMinJetPt = min; fMaxJetPt = max; }
420  void SetChargedPtRange(Double_t min, Double_t max) { fMinChargedPt = min; fMaxChargedPt = max; }
421  void SetNeutralPtRange(Double_t min, Double_t max) { fMinNeutralPt = min; fMaxNeutralPt = max; }
422  void SetRhoName(TString n) { fRhoName = n ; }
423  Double_t GetRadius() const { return fRadius; }
424  TString GetRhoName() const { return fRhoName; }
425 
426  Bool_t IsJetInAcceptance(const AliJetInfo& jet) const;
427  Bool_t IsJetInAcceptance(const AliDmesonJetInfo& dMesonJet, std::string n) const;
428 
429  friend bool operator< (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
430  friend inline bool operator> (const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return rhs < lhs ; }
431  friend inline bool operator<=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs > rhs) ; }
432  friend inline bool operator>=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs < rhs) ; }
433 
434  friend bool operator==(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs);
435  friend inline bool operator!=(const AliHFJetDefinition& lhs, const AliHFJetDefinition& rhs){ return !(lhs == rhs); }
436 
437  protected:
439  friend class AnalysisEngine;
440 
441  EJetType_t fJetType ;
443  EJetAlgo_t fJetAlgo ;
444  ERecoScheme_t fRecoScheme ;
457  std::vector<AliJetInfo> fJets ;
458 
459  private:
461  ClassDef(AliHFJetDefinition, 5);
463  };
464 
470  class AnalysisEngine : public TObject {
471  public:
472  typedef std::pair<AliJetInfo*, Double_t> jet_distance_pair;
473 
476  kFindLast
477  };
478 
479  static AliAODMCParticle* FindParticleOrigin(const AliAODMCParticle* part, TClonesArray* mcArray, EFindParticleOriginMode_t mode, const std::set<UInt_t>& pdgSet);
480  static AliAODMCParticle* FindParticleOrigin(const AliAODMCParticle* part, TClonesArray* mcArray, EFindParticleOriginMode_t mode);
481  static std::pair<AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle*> IsPromptCharm(const AliAODMCParticle* part, TClonesArray* mcArray);
482  static EMesonDecayChannel_t CheckDecayChannel(const AliAODMCParticle* part, TClonesArray* mcArray);
483 
484  AnalysisEngine();
485  AnalysisEngine(ECandidateType_t type, EMCMode_t MCmode, AliRDHFCuts* cuts = 0, Int_t nBins=80, Double_t range = 0.50);
486  AnalysisEngine(const AnalysisEngine &source);
487  AnalysisEngine& operator=(const AnalysisEngine& source);
488 
489  virtual ~AnalysisEngine();
490 
491  void SetCandidateType(ECandidateType_t t) { fCandidateType = t ; }
492  void SetMCMode(EMCMode_t m) { fMCMode = m ; }
493  void SetNMassBins(Int_t n) { fNMassBins = n ; }
494  void SetMassRange(Double_t min, Double_t max) { fMinMass = min ; fMaxMass = max ; }
495  void AdoptRDHFCuts(AliRDHFCuts* cuts);
496  void SetRDHFCuts(AliRDHFCuts* cuts);
497  void SetRejectedOriginMap(UInt_t m) { fRejectedOrigin = m ; }
498  void SetAcceptedDecayMap(UInt_t m) { fAcceptedDecay = m ; }
499  void SetRejectISR(Bool_t b) { fRejectISR = b ; }
500 
501  void SetD0Extended(Bool_t b) { fD0Extended = b ; }
502 
503  const char* GetCandidateName() const { return fCandidateName.Data(); }
504  const char* GetName() const;
505  const char* GetName(const AliHFJetDefinition& jetDef) const;
506 
507  EMCMode_t GetMCMode() const { return fMCMode ; }
508  ECandidateType_t GetCandidateType() const { return fCandidateType ; }
509 
510  AliHFJetDefinition* AddJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco);
511  AliHFJetDefinition* AddJetDefinition(const AliHFJetDefinition& def);
512  std::vector<AliHFJetDefinition>::iterator FindJetDefinition(const AliHFJetDefinition& eng);
513  std::vector<AliAnalysisTaskDmesonJets::AliHFJetDefinition>& GetJetDefinitions() { return fJetDefinitions; }
514  Bool_t IsAnyJetInAcceptance(const AliDmesonJetInfo& dMesonJet) const;
515 
516  void SetJetPhiRange(Double_t min, Double_t max);
517  void SetJetEtaRange(Double_t min, Double_t max);
518  void SetJetPtRange(Double_t min, Double_t max);
519  void SetChargedPtRange(Double_t min, Double_t max);
520  void SetNeutralPtRange(Double_t min, Double_t max);
521 
522 #if !(defined(__CINT__) || defined(__MAKECINT__))
523  std::map<int, AliDmesonJetInfo>& GetDmesons() { return fDmesonJets; }
524 #endif
525 
526  void Init(const AliEMCALGeometry* const geom, Int_t runNumber);
527 
528  TTree* BuildTree(const char* taskName);
529  TTree* GetTree() const { return fTree; }
530  Bool_t FillTree(Bool_t applyKinCuts);
531 
533  void AssignDataSlot(Int_t n) { fDataSlotNumber = n; }
534  Int_t GetDataSlotNumber() const { return fDataSlotNumber ; }
535 
536  void BuildHnSparse(UInt_t enabledAxis);
537  Bool_t FillHnSparse(Bool_t applyKinCuts);
538  Bool_t FillHnSparse(THnSparse* h, const AliDmesonJetInfo& DmesonJet, std::string n);
539 
540  Bool_t FillQA(Bool_t applyKinCuts);
541 
542  Bool_t IsInhibit() const { return fInhibit; }
543 
544  friend bool operator< (const AnalysisEngine& lhs, const AnalysisEngine& rhs);
545  friend inline bool operator> (const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return rhs < lhs ; }
546  friend inline bool operator<=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs > rhs) ; }
547  friend inline bool operator>=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs < rhs) ; }
548 
549  friend bool operator==(const AnalysisEngine& lhs, const AnalysisEngine& rhs);
550  friend inline bool operator!=(const AnalysisEngine& lhs, const AnalysisEngine& rhs){ return !(lhs == rhs); }
551 
552  std::map<AliAODMCParticle*, Short_t> fPartons ;
553 
554  protected:
555  void RunAnalysis();
556 
560  UChar_t fNDaughters ;
571  std::vector<AliHFJetDefinition> fJetDefinitions ;
575  TRandom *fRandomGen ;
582  std::map<int, AliDmesonJetInfo> fDmesonJets ;
583  TClonesArray *fCandidateArray ;
585  std::vector<AliTrackContainer*> fTrackContainers ;
586  std::vector<AliClusterContainer*> fClusterContainers ;
591  mutable TString fName ;
592 
594 
595  private:
596 
597  void AddInputVectors(AliEmcalContainer* cont, Int_t offset, TH2* rejectHist=0, Double_t eff=0.);
598  void SetCandidateProperties(Double_t range);
599  AliAODMCParticle* MatchToMC() const;
600  void RunDetectorLevelAnalysis();
601  void RunParticleLevelAnalysis();
602 
603  Bool_t ExtractRecoDecayAttributes(const AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, UInt_t i);
604  Bool_t ExtractD0Attributes(const AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, UInt_t i);
605  Bool_t ExtractDstarAttributes(const AliAODRecoCascadeHF* DstarCand, AliDmesonJetInfo& DmesonJet, UInt_t i);
606  Bool_t FindJet(AliAODRecoDecayHF2Prong* Dcand, AliDmesonJetInfo& DmesonJet, AliHFJetDefinition& jetDef);
607 
609  ClassDef(AnalysisEngine, 3);
611  };
612 
614  AliAnalysisTaskDmesonJets(const char* name, Int_t nOutputTrees=2);
615  virtual ~AliAnalysisTaskDmesonJets();
616 
617  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, TString cutfname, TString cuttype, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString rhoName = "");
618  AnalysisEngine* AddAnalysisEngine(ECandidateType_t type, TString cutfname, TString cuttype, EMCMode_t bkgMode, const AliHFJetDefinition& jetDef, TString rhoName = "");
619  std::list<AnalysisEngine>::iterator FindAnalysisEngine(const AnalysisEngine& eng);
620 
630 
634  void SetRejectISR(Bool_t b) { fRejectISR = b ; }
635  void SetJetArea(Int_t type,
636  Double_t garea = 0.005) { fJetAreaType = type; fJetGhostArea = garea; }
637 
638  virtual void UserCreateOutputObjects();
639  virtual void ExecOnce();
640  virtual Bool_t Run();
641  virtual Bool_t FillHistograms();
642 
643  static AliAnalysisTaskDmesonJets* AddTaskDmesonJets(TString ntracks = "usedefault", TString nclusters = "usedefault", TString nMCpart = "", Int_t nMaxTrees = 2, TString suffix = "");
644 
645  protected:
646 
648 
649  AliRDHFCuts* LoadDMesonCutsFromFile(TString cutfname, TString cutsname);
650 
651  static const char* GetHFEventRejectionReasonLabel(UInt_t& bitmap);
653 
655 
657 
658  std::list<AnalysisEngine>
672 
673  private:
674 
677 
679  ClassDef(AliAnalysisTaskDmesonJets, 9);
681 };
682 
683 #endif
friend bool operator<=(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Double32_t fCorrZ
Z of the D meson after subtracting average background.
Lightweight class that encapsulates D meson jets.
Int_t pdg
AliDmesonInfoSummary * fCurrentDmesonJetInfo
! Current D meson jet info
AliAODMCParticle * fParton
! pointer to the parton in the shower tree of the D meson (only for particle level D mesons) ...
std::list< AnalysisEngine > fAnalysisEngines
Array of analysis parameters.
std::string fClassName
Class name where the event was not found.
void Print(std::ostream &o, const char *name, Double_t dT, Double_t dVM, Double_t alldT, Double_t alldVM)
Definition: PlotSysInfo.C:121
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)
double Double_t
Definition: External.C:58
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.
TString fRhoName
Name of the object that holds the average background value.
Lightweight class that encapsulates D meson jets.
std::vector< AliTrackContainer * > fTrackContainers
! Track containers
AnalysisEngine * AddAnalysisEngine(ECandidateType_t type, TString cutfname, TString cuttype, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString rhoName="")
Double_t fTrackEfficiency
Artificial tracking inefficiency (0...1)
std::vector< AliClusterContainer * > fClusterContainers
! Cluster containers
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)
Double32_t fPartonPt
Transverse momentum of the parton.
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)
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
UInt_t fEnabledAxis
Use bit defined in EAxis_t to enable axis in the THnSparse.
Double32_t fPtK
Transverse momentum of the kaon.
TRandom * fRandomGen
! Random number generator
std::vector< AliAnalysisTaskDmesonJets::AliHFJetDefinition > & GetJetDefinitions()
Double32_t fCosPointing
Cosine of the pointing angle.
AliRhoParameter * fRho
Object that holds the average background value.
EMCMode_t fMCMode
MC mode: No MC (data and MC detector level), background-only (MC), signal-only (MC), MC truth (particle level)
Double_t fJetGhostArea
Area of the ghost particles.
Int_t fDataSlotNumber
! Data slot where the tree output is posted
Double32_t fPtPi
Transverse momentum of the pion.
AliVParticle * fDmesonParticle
! pointer to the particle object
Container for particles within the EMCAL framework.
Double32_t fN
Number of jet constituents.
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.
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.
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.
AliTLorentzVector fD
! 4-momentum of the D meson candidate
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.
Lightweight class that encapsulates D meson jets for PbPb analysis.
Struct that encapsulates analysis parameters.
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
Double_t fMinNeutralPt
Minimum pt of the leading neutral particle (or cluster)
void SetShowSoftPionPt(Bool_t b=kTRUE)
Bool_t fD0D0bar
! kTRUE if selected both as D0 and D0bar
Bool_t fD0Extended
Store extended information in the tree (only for D0 mesons)
std::string fAccessMethodName
Access method name used to retrieve the event.
AliRDHFCuts * LoadDMesonCutsFromFile(TString cutfname, TString cutsname)
bool operator<(const AliAnalysisTaskDmesonJets::AliHFJetDefinition &lhs, const AliAnalysisTaskDmesonJets::AliHFJetDefinition &rhs)
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)
AliAnalysisTaskDmesonJets & operator=(const AliAnalysisTaskDmesonJets &source)
Int_t mode
Definition: anaM.C:41
Short_t fPartonType
! type of the parton in the shower tree (only for particle level D mesons)
Double_t fNEF
Neutral Energy Fraction of the jet.
TClonesArray * fCandidateArray
! D meson candidate array
short Short_t
Definition: External.C:23
virtual ~AliAnalysisTaskDmesonJets()
This is the standard destructor.
Byte_t fSelectionType
! for D0: 0=not selected, 1=D0, 2=D0bar
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.
Double_t fMaxChargedPt
Transverse momentum of the leading charged particle (or track)
friend bool operator>=(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
Double32_t fCorrPt
Transverse momentum of the jet in GeV/c after subtracting average background.
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
AliAODMCParticle * fAncestor
! pointer to the ancestor particle in the shower tree of the D meson (only for particle level D meson...
Double32_t fDeltaInvMass
< Difference between the Kpipi and the Kpi invariant masses in GeV/c2
std::map< AliAODMCParticle *, Short_t > fPartons
! set of the partons in the shower that produced each D meson
Definition: External.C:220
Double_t minMass
Bool_t fRejectISR
! Reject initial state radiation
std::map< int, AliDmesonJetInfo > & GetDmesons()
std::map< int, AliDmesonJetInfo > fDmesonJets
! Array containing the D meson jets
Double_t fTrackEfficiency
! Artificial tracking inefficiency (0...1) -> set automatically at ExecOnce by AliAnalysisTaskDmesonJ...
Bool_t fApplyKinematicCuts
Apply jet kinematic cuts.
Double32_t fSelectionType
Selection type: D0, D0bar, both.
AliEventNotFound(const std::string &class_name, const std::string &method_name)
Container class for histograms.
Definition: THistManager.h:99
UInt_t fAcceptedDecay
Bit mask with D meson decays that are accepted (only used for particle-level analysis) ...
unsigned short UShort_t
Definition: External.C:28
Bool_t fReconstructed
! Whether this D meson was reconstructed (only for particle level D mesons)
Int_t fNConstituents
Number of constituents of the jet.
Bool_t fRejectISR
Reject initial state radiation.
EOutputType_t fOutputType
Output type: none, TTree or THnSparse.
bool operator==(const AliAnalysisTaskDmesonJets::AliHFJetDefinition &lhs, const AliAnalysisTaskDmesonJets::AliHFJetDefinition &rhs)
void SetShowJetConstituents(Bool_t b=kTRUE)
const AliVEvent * fEvent
! pointer to the ESD/AOD event
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.
bool Bool_t
Definition: External.C:53
Int_t fNOutputTrees
Maximum number of output trees.
AliTLorentzVector fMomentum
4-momentum of the jet
Double_t fCorrPt
Transverse momentum of the jet after subtracting the average background.
AliHFAODMCParticleContainer * fMCContainer
! MC particle container
AliJetInfoSummary ** fCurrentJetInfo
! Current jet info
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
void SetJetArea(Int_t type, Double_t garea=0.005)
Container structure for EMCAL clusters.
Lightweight class that encapsulates D0.
void SetShowPositionJet(Bool_t b=kTRUE)
void FillTree(TTree *tree, TList &parList)
Definition: MakeTrend.C:331
Int_t PostDataFromAnalysisEngine(const AnalysisEngine &eng)
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
THistManager fHistManager
Histogram manager.
static AliAnalysisTaskDmesonJets * AddTaskDmesonJets(TString ntracks="usedefault", TString nclusters="usedefault", TString nMCpart="", Int_t nMaxTrees=2, TString suffix="")
Double_t fMinMass
Min mass in histogram axis.