21 #include <TClonesArray.h> 22 #include <TDatabasePDG.h> 23 #include <TParticlePDG.h> 25 #include <THnSparse.h> 26 #include <TParticle.h> 28 #include <THashList.h> 34 #include "AliEMCALGeometry.h" 35 #include "AliAnalysisManager.h" 36 #include "AliVEventHandler.h" 60 fClassName(class_name),
61 fAccessMethodName(method_name)
63 std::stringstream what_str;
64 what_str <<
"ALICE event not found in class '" <<
fClassName <<
"' using method '" << method_name <<
"'.";
65 fWhat = what_str.str();
68 #if !(defined(__CINT__) || defined(__MAKECINT__)) 89 dphi = TVector2::Phi_mpi_pi(fMomentum.Phi() - jet.
Phi());;
90 deta = fMomentum.Eta() - jet.
Eta();
91 return TMath::Sqrt(dphi*dphi + deta*deta);
102 return GetDistance(jet, deta, dphi);
119 fReconstructed(kFALSE),
161 fD.SetPtEtaPhiE(0,0,0,0);
171 for (
auto &jet :
fJets) {
172 jet.second.fMomentum.SetPtEtaPhiE(0,0,0,0);
173 jet.second.fNConstituents = 0;
175 jet.second.fMaxChargedPt = 0;
176 jet.second.fMaxNeutralPt = 0;
183 Printf(
"Printing D Meson Jet object.");
184 Printf(
"D Meson: pT = %.3f, eta = %.3f, phi = %.3f, inv. mass = %.3f",
fD.Pt(),
fD.Eta(),
fD.
Phi_0_2pi(),
fD.M());
186 for (
auto &jet :
fJets) {
187 Printf(
"Jet %s: pT = %.3f, eta = %.3f, phi = %.3f", jet.first.c_str(), jet.second.Pt(), jet.second.Eta(), jet.second.Phi_0_2pi());
188 Printf(
"Jet N Consituents = %d", jet.second.fNConstituents);
197 std::map<std::string, AliJetInfo>::const_iterator it =
fJets.find(n);
198 if (it ==
fJets.end())
return 0;
202 if ((*it).second.Pt() > 0) {
203 TVector3 dvect =
fD.Vect();
204 TVector3 jvect = (*it).second.fMomentum.Vect();
209 ::Error(
"AliAnalysisTaskDmesonJets::AliDmesonJetInfo::GetZ",
"Zero jet momentum!");
213 z = (dvect * jvect) / jetMom;
216 if (z == 1 || (z > 1 && z - 1 < 1e-3)) z = 0.999;
227 std::map<std::string, AliJetInfo>::const_iterator it =
fJets.find(n);
228 if (it ==
fJets.end())
return 0;
232 if ((*it).second.Pt() > 0) {
233 TVector3 dvect =
fD.Vect();
234 TVector3 jvect = (*it).second.fMomentum.Vect();
236 Double_t corrpt = (*it).second.fCorrPt > 0 ? (*it).second.fCorrPt : 0.;
237 jvect.SetPerp(corrpt);
245 z = (dvect * jvect) / jetMom;
260 std::map<std::string, AliJetInfo>::const_iterator it =
fJets.find(n);
261 if (it ==
fJets.end())
return 0;
285 dphi = TVector2::Phi_mpi_pi(
fD.Phi() - jet.
Phi());;
286 deta =
fD.Eta() - jet.
Eta();
287 return TMath::Sqrt(dphi*dphi + deta*deta);
307 std::map<std::string, AliJetInfo>::const_iterator it =
fJets.find(n);
308 if (it ==
fJets.end()) {
309 ::Error(
"AliAnalysisTaskDmesonJets::AliDmesonJetInfo::GetJet",
"Could not find jet info for the jet definition '%s'!",
313 return &((*it).second);
322 std::map<std::string, AliJetInfo>::iterator it =
fJets.find(n);
323 if (it ==
fJets.end()) {
324 ::Error(
"AliAnalysisTaskDmesonJets::AliDmesonJetInfo::GetJet",
"Could not find jet info for the jet definition '%s'!",
328 return &((*it).second);
369 std::map<std::string, AliJetInfo>::const_iterator it = source.
fJets.find(n);
370 if (it == source.
fJets.end())
return;
461 fPt = source.
fD.Pt();
533 fInvMass(source.fD.M()),
587 fDCA = recoDecay->GetDCA();
590 fPtK = recoDecay->PtProng(0);
591 fPtPi = recoDecay->PtProng(1);
592 fd0K = recoDecay->Getd0Prong(0);
593 fd0Pi = recoDecay->Getd0Prong(1);
597 fPtK = recoDecay->PtProng(1);
598 fPtPi = recoDecay->PtProng(0);
599 fd0K = recoDecay->Getd0Prong(1);
600 fd0Pi = recoDecay->Getd0Prong(0);
607 for (
Int_t ipr=0; ipr < 2; ipr++) {
608 Double_t diffIP = 0., errdiffIP = 0.;
611 if (errdiffIP > 0.) {
612 normdd0 = diffIP / errdiffIP;
619 normdd0 = diffIP > 0 ? 9999. : -9999.;
622 if (TMath::Abs(normdd0) > TMath::Abs(
fMaxNormd0)) {
660 f2ProngInvMass(source.fInvMass2Prong),
661 fDeltaInvMass(source.fD.M() - source.fInvMass2Prong)
831 if (!jet)
return kFALSE;
905 fCurrentDmesonJetInfo(0),
910 fClusterContainers(),
1078 ::Error(
"AliAnalysisTaskDmesonJets::AnalysisEngine::SetCandidateProperties",
"Candidate %d unknown!",
fCandidateType);
1123 fName +=
"_BackgroundOnly";
1126 fName +=
"_SignalOnly";
1129 fName +=
"_MCTruth";
1132 fName +=
"_D0Reflection";
1135 fName +=
"_OnlyWrongPIDAccepted";
1143 return fName.Data();
1158 ::Info(
"AliAnalysisTaskDmesonJets::AnalysisEngine::AddJetDefinition",
"Jet definition '%s' has been added to analysis engine '%s'." 1159 "Total number of jet definitions is now %lu.",
1165 ::Warning(
"AliAnalysisTaskDmesonJets::AnalysisEngine::AddJetDefinition",
"The same jet definition '%s' was already added in analysis engine '%s'.", def.
GetName(),
GetName());
1195 std::vector<AliHFJetDefinition>::iterator it =
fJetDefinitions.begin();
1229 for (
auto &jetdef :
fJetDefinitions) jetdef.SetChargedPtRange(min, max);
1237 for (
auto &jetdef :
fJetDefinitions) jetdef.SetNeutralPtRange(min, max);
1314 AliDebug(10,
"Checking if D0 meson is selected");
1316 if (isSelected == 0)
return kFALSE;
1318 Int_t MCtruthPdgCode = 0;
1330 AliAODMCParticle* aodMcPart =
static_cast<AliAODMCParticle*
>(
fMCContainer->GetArray()->At(mcLab));
1338 MCtruthPdgCode = aodMcPart->PdgCode();
1343 if (isSelected == 1) {
1344 if (i != 0)
return kFALSE;
1351 AliDebug(10,
"Selected as D0");
1358 else if (isSelected == 2) {
1359 if (i != 1)
return kFALSE;
1366 AliDebug(10,
"Selected as D0bar");
1373 else if (isSelected == 3) {
1374 AliDebug(10,
"Selected as either D0 or D0bar");
1379 if (i != 0)
return kFALSE;
1380 AliDebug(10,
"MC truth is D0");
1385 if (i != 1)
return kFALSE;
1386 AliDebug(10,
"MC truth is D0bar");
1395 AliDebug(10,
"Returning invariant mass with D0 hypothesis");
1399 AliDebug(10,
"Returning invariant mass with D0bar hypothesis");
1411 DmesonJet.
fD.SetPtEtaPhiM(Dcand->Pt(), Dcand->Eta(), Dcand->Phi(), invMassD);
1424 AliDebug(10,
"Checking if D* meson is selected");
1426 if (isSelected == 0)
return kFALSE;
1428 if ((i == 1 && DstarCand->Charge()>0) || (i == 0 && DstarCand->Charge()<0) || i > 1)
return kFALSE;
1430 Int_t MCtruthPdgCode = 0;
1435 Int_t pdgDgDStartoD0pi[2] = { 421, 211 };
1436 Int_t pdgDgD0toKpi[2] = { 321, 211 };
1439 AliDebug(10, Form(
"MC label is %d", mcLab));
1442 AliAODMCParticle* aodMcPart =
static_cast<AliAODMCParticle*
>(
fMCContainer->GetArray()->At(mcLab));
1450 MCtruthPdgCode = aodMcPart->PdgCode();
1451 AliDebug(10, Form(
"MC truth pdg code is %d",MCtruthPdgCode));
1456 Int_t absMCtruthPdgCode = TMath::Abs(MCtruthPdgCode);
1464 DmesonJet.
fD.SetPtEtaPhiM(DstarCand->Pt(), DstarCand->Eta(), DstarCand->Phi(), invMassD);
1485 Int_t absPdgPart = TMath::Abs(part->GetPdgCode());
1487 if (part->GetNDaughters() == 2) {
1489 AliAODMCParticle* d1 =
static_cast<AliAODMCParticle*
>(mcArray->At(part->GetDaughter(0)));
1490 AliAODMCParticle* d2 =
static_cast<AliAODMCParticle*
>(mcArray->At(part->GetDaughter(1)));
1496 Int_t absPdg1 = TMath::Abs(d1->GetPdgCode());
1497 Int_t absPdg2 = TMath::Abs(d2->GetPdgCode());
1499 if (absPdgPart == 421) {
1500 if ((absPdg1 == 211 && absPdg2 == 321) ||
1501 (absPdg1 == 321 && absPdg2 == 211)) {
1506 if (absPdgPart == 413) {
1507 if (absPdg1 == 421 && absPdg2 == 211) {
1513 else if (absPdg1 == 211 && absPdg2 == 421) {
1533 std::pair<AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle*> result(
kUnknownQuark, 0);
1535 if (!part)
return result;
1536 if (!mcArray)
return result;
1538 static std::set<UInt_t> partons = { 4, 5 };
1542 result.second = parton;
1543 UInt_t absPdgParton = TMath::Abs(parton->GetPdgCode());
1544 if (absPdgParton == 4) result.first =
kFromCharm;
1545 else if (absPdgParton == 5) result.first =
kFromBottom;
1561 static std::set<UInt_t> pdgSet;
1577 AliAODMCParticle* result =
nullptr;
1579 Int_t mother = part->GetMother();
1580 while (mother >= 0) {
1581 AliAODMCParticle* mcGranma =
static_cast<AliAODMCParticle*
>(mcArray->At(mother));
1583 UInt_t abspdgGranma = TMath::Abs(mcGranma->GetPdgCode());
1586 if (pdgSet.empty() || pdgSet.count(abspdgGranma) > 0) {
1591 if (mother == mcGranma->GetMother()) {
1592 AliWarningClassStream() <<
"Particle " << mother <<
" (PDG=" << mcGranma->PdgCode() <<
") is the mother of itself!?" << std::endl;
1595 mother = mcGranma->GetMother();
1598 AliErrorClassStream() <<
"Could not retrieve mother particle " << mother <<
"!" << std::endl;
1610 jetDef.fJets.clear();
1634 std::map<AliHFJetDefinition*,Double_t> maxJetPt;
1638 std::array<int, 3> nAccCharm = {0};
1639 std::array<std::array<int, 3>, 5> nAccCharmPt = {{{0}}};
1641 for (
Int_t icharm = 0; icharm < nD; icharm++) {
1643 if (!charmCand)
continue;
1648 Int_t nMassHypo = 0;
1649 if (charmCand->Pt() > maxDPt) maxDPt = charmCand->Pt();
1650 for (
Int_t im = 0; im < 2; im++) {
1655 for (
auto& def : fJetDefinitions) {
1656 if (
FindJet(charmCand, DmesonJet, def)) {
1657 Double_t jetPt = DmesonJet.
fJets[def.GetName()].fMomentum.Pt();
1658 if (jetPt > maxJetPt[&def]) maxJetPt[&def] = jetPt;
1661 AliWarning(Form(
"Could not find jet '%s' for D meson '%s': pT = %.3f, eta = %.3f, phi = %.3f",
1669 for (
int i = 0; i < nAccCharmPt.size(); i++) {
1670 if (charmCand->Pt() < i)
break;
1671 nAccCharmPt[i][im]++;
1675 if (nMassHypo == 2) {
1680 for (
int i = 0; i < nAccCharmPt.size(); i++) {
1681 if (charmCand->Pt() < i)
break;
1682 nAccCharmPt[i][0]--;
1683 nAccCharmPt[i][1]--;
1684 nAccCharmPt[i][2]++;
1699 ntracks += track_cont->GetNAcceptEntries();
1702 for (
auto& def : fJetDefinitions) {
1703 if (!def.fRho)
continue;
1704 hname = TString::Format(
"%s/%s/fHistRhoVsLeadJetPt",
GetName(), def.GetName());
1707 hname = TString::Format(
"%s/%s/fHistRhoVsLeadDPt",
GetName(), def.GetName());
1710 hname = TString::Format(
"%s/%s/fHistRhoVsCent",
GetName(), def.GetName());
1713 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsCent",
GetName(), def.GetName());
1716 hname = TString::Format(
"%s/%s/fHistLeadDPtVsCent",
GetName(), def.GetName());
1719 hname = TString::Format(
"%s/%s/fHistRhoVsNTracks",
GetName(), def.GetName());
1722 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsNTracks",
GetName(), def.GetName());
1725 hname = TString::Format(
"%s/%s/fHistLeadDPtVsNTracks",
GetName(), def.GetName());
1729 hname = TString::Format(
"%s/fHistNTotAcceptedDmesons",
GetName());
1734 hname = TString::Format(
"%s/fHistNAcceptedDmesonsVsNtracks",
GetName());
1737 for (
int i = 0; i < nAccCharmPt.size(); i++) {
1738 hname = TString::Format(
"%s/fHistNTotAcceptedDmesonsPt%d",
GetName(), i);
1743 hname = TString::Format(
"%s/fHistNAcceptedDmesonsPt%d",
GetName(), i);
1747 hname = TString::Format(
"%s/fHistNDmesons",
GetName());
1765 if (jetDef.
fRho) rho = jetDef.
fRho->GetVal();
1778 hname = TString::Format(
"%s/%s/fHistTrackRejectionReason",
GetName(), jetDef.
GetName());
1782 hname = TString::Format(
"%s/%s/fHistDMesonDaughterNotInJet",
GetName(), jetDef.
GetName());
1785 for (
Int_t i = 0; i < daughters.GetEntriesFast(); i++) {
1786 AliVParticle* daughter =
static_cast<AliVParticle*
>(daughters.At(i));
1787 if (!hftrack_cont->GetArray()->FindObject(daughter)) histDaughterNotInJet->Fill(daughter->Pt());
1795 hname = TString::Format(
"%s/%s/fHistClusterRejectionReason",
GetName(), jetDef.
GetName());
1805 for (
UInt_t ijet = 0; ijet < jets_incl.size(); ++ijet) {
1808 Bool_t isDmesonJet = kFALSE;
1815 for (
UInt_t ic = 0; ic < constituents.size(); ++ic) {
1816 if (constituents[ic].user_index() == 0) {
1817 isDmesonJet = kTRUE;
1819 else if (constituents[ic].user_index() >= 100) {
1820 if (constituents[ic].pt() > maxChPt) maxChPt = constituents[ic].pt();
1823 else if (constituents[ic].user_index() <= -100) {
1824 totalNeutralPt += constituents[ic].pt();
1825 if (constituents[ic].pt() > maxNePt) maxChPt = constituents[ic].pt();
1831 DmesonJet.
fJets[jetDef.
GetName()].fMomentum.SetPxPyPzE(jets_incl[ijet].px(), jets_incl[ijet].py(), jets_incl[ijet].pz(), jets_incl[ijet].E());
1832 DmesonJet.
fJets[jetDef.
GetName()].fNConstituents = nConst;
1833 DmesonJet.
fJets[jetDef.
GetName()].fMaxChargedPt = maxChPt;
1834 DmesonJet.
fJets[jetDef.
GetName()].fMaxNeutralPt = maxNePt;
1835 DmesonJet.
fJets[jetDef.
GetName()].fNEF = totalNeutralPt / jets_incl[ijet].pt();
1836 DmesonJet.
fJets[jetDef.
GetName()].fArea = jets_incl[ijet].area();
1837 DmesonJet.
fJets[jetDef.
GetName()].fCorrPt = DmesonJet.
fJets[jetDef.
GetName()].fMomentum.Pt() - jets_incl[ijet].area() * rho;
1851 auto itcont = cont->all_momentum();
1852 for (AliEmcalIterableMomentumContainer::iterator it = itcont.begin(); it != itcont.end(); it++) {
1853 UInt_t rejectionReason = 0;
1854 if (!cont->AcceptObject(it.current_index(), rejectionReason)) {
1855 if (rejectHist) rejectHist->Fill(AliEmcalContainer::GetRejectionReasonBitPosition(rejectionReason), it->first.Pt());
1861 if (rejectHist) rejectHist->Fill(6, it->first.Pt());
1865 Int_t uid = offset >= 0 ? it.current_index() + offset: -it.current_index() - offset;
1882 std::array<int,2> nAccCharm = {0};
1883 std::array<std::array<int, 2>, 5> nAccCharmPt = {{{0}}};
1885 std::map<AliHFJetDefinition*, Double_t> maxJetPt;
1889 maxJetPt[&jetDef] = 0;
1891 if (jetDef.fRho) rho = jetDef.fRho->GetVal();
1892 hname = TString::Format(
"%s/%s/fHistNDmesonsVsNconstituents",
GetName(), jetDef.GetName());
1895 switch (jetDef.fJetType) {
1912 hname = TString::Format(
"%s/%s/fHistMCParticleRejectionReason",
GetName(), jetDef.GetName());
1919 for (
auto jet : jets_incl) {
1920 Int_t nDmesonsInJet = 0;
1922 for (
auto constituent : jet.constituents()) {
1923 Int_t iPart = constituent.user_index() - 100;
1924 if (constituent.perp() < 1e-6)
continue;
1927 ::Error(
"AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis",
"Could not find jet constituent %d!", iPart);
1932 std::map<int, AliDmesonJetInfo>::iterator dMesonJetIt =
fDmesonJets.find(iPart);
1934 if (part->Pt() > maxDPt) maxDPt = part->Pt();
1935 std::pair<int, AliDmesonJetInfo> element;
1936 element.first = iPart;
1938 (*dMesonJetIt).second.fD.SetPxPyPzE(part->Px(), part->Py(), part->Pz(), part->E());
1939 (*dMesonJetIt).second.fDmesonParticle =
part;
1940 (*dMesonJetIt).second.fSelectionType = part->PdgCode() > 0 ? 1 : 2;
1948 while (rs >>= 1) { p++; }
1949 (*dMesonJetIt).second.fPartonType = p;
1950 (*dMesonJetIt).second.fParton = origin.second;
1955 if (part->PdgCode() > 0) {
1963 for (
int i = 0; i < nAccCharmPt.size(); i++) {
1964 if (part->Pt() < i)
break;
1965 nAccCharmPt[i][im]++;
1969 (*dMesonJetIt).second.fJets[jetDef.GetName()].fMomentum.SetPxPyPzE(jet.px(), jet.py(), jet.pz(), jet.E());
1970 (*dMesonJetIt).second.fJets[jetDef.GetName()].fNConstituents = jet.constituents().size();
1971 (*dMesonJetIt).second.fJets[jetDef.GetName()].fArea = jet.area();
1972 (*dMesonJetIt).second.fJets[jetDef.GetName()].fCorrPt = (*dMesonJetIt).second.fJets[jetDef.GetName()].fMomentum.Pt() - jet.area() * rho;
1973 if (jet.perp() > maxJetPt[&jetDef]) maxJetPt[&jetDef] = jet.perp();
1976 if (nDmesonsInJet > 0) histNDmesonsVsNconstituents->Fill(jet.constituents().size(), nDmesonsInJet);
1982 for (
auto& def : fJetDefinitions) {
1983 if (!def.fRho)
continue;
1984 hname = TString::Format(
"%s/%s/fHistRhoVsLeadJetPt",
GetName(), def.GetName());
1987 hname = TString::Format(
"%s/%s/fHistRhoVsLeadDPt",
GetName(), def.GetName());
1990 hname = TString::Format(
"%s/%s/fHistRhoVsCent",
GetName(), def.GetName());
1993 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsCent",
GetName(), def.GetName());
1996 hname = TString::Format(
"%s/%s/fHistLeadDPtVsCent",
GetName(), def.GetName());
1999 hname = TString::Format(
"%s/%s/fHistRhoVsNTracks",
GetName(), def.GetName());
2002 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsNTracks",
GetName(), def.GetName());
2005 hname = TString::Format(
"%s/%s/fHistLeadDPtVsNTracks",
GetName(), def.GetName());
2009 if (
fDmesonJets.size() != nAccCharm[0]+nAccCharm[1]) AliError(Form(
"I found %lu mesons (%d)?",
fDmesonJets.size(), nAccCharm[0]+nAccCharm[1]));
2010 hname = TString::Format(
"%s/fHistNTotAcceptedDmesons",
GetName());
2014 hname = TString::Format(
"%s/fHistNAcceptedDmesonsVsNtracks",
GetName());
2017 for (
int i = 0; i < nAccCharmPt.size(); i++) {
2018 hname = TString::Format(
"%s/fHistNTotAcceptedDmesonsPt%d",
GetName(), i);
2022 hname = TString::Format(
"%s/fHistNAcceptedDmesonsPt%d",
GetName(), i);
2026 hname = TString::Format(
"%s/fHistNDmesons",
GetName());
2037 classname =
"AliAnalysisTaskDmesonJets::AliDmesonMCInfoSummary";
2045 classname =
"AliAnalysisTaskDmesonJets::AliD0ExtendedInfoSummary";
2049 classname =
"AliAnalysisTaskDmesonJets::AliD0InfoSummary";
2054 classname =
"AliAnalysisTaskDmesonJets::AliDStarInfoSummary";
2059 TString treeName = TString::Format(
"%s_%s", taskName,
GetName());
2088 AliDebug(2,Form(
"Now working on '%s'", jetDef.GetName()));
2098 title[dim] =
"#it{p}_{T,D} (GeV/#it{c})";
2105 title[dim] =
"#eta_{D}";
2111 title[dim] =
"#phi_{D} (rad)";
2114 max[dim] = TMath::TwoPi();
2119 title[dim] =
"#it{M}_{K#pi#pi} (GeV/#it{c}^{2})";
2127 title[dim] =
"#it{M}_{K#pi} (GeV/#it{c}^{2})";
2135 title[dim] =
"#it{M}_{K#pi} (GeV/#it{c}^{2})";
2142 title[dim] =
"#it{M}_{K#pi#pi} - #it{M}_{K#pi} (GeV/#it{c}^{2})";
2147 Double_t D0mass = TDatabasePDG::Instance()->GetParticle(421)->Mass();
2155 title[dim] =
"#it{p}_{T,#pi} (GeV/#it{c})";
2162 title[dim] =
"#it{z}_{D}";
2168 if ((enabledAxis &
kDeltaR) != 0) {
2169 title[dim] =
"#Delta R_{D-jet}";
2172 max[dim] = radius * 1.5;
2177 title[dim] =
"#eta_{D} - #eta_{jet}";
2179 min[dim] = -radius * 1.2;
2180 max[dim] = radius * 1.2;
2185 title[dim] =
"#phi_{D} - #phi_{jet} (rad)";
2187 min[dim] = -radius * 1.2;
2188 max[dim] = radius * 1.2;
2192 title[dim] =
"#it{p}_{T,jet} (GeV/#it{c})";
2199 title[dim] =
"#eta_{jet}";
2205 title[dim] =
"#phi_{jet} (rad)";
2208 max[dim] = TMath::TwoPi();
2213 title[dim] =
"No. of constituents";
2220 hname = TString::Format(
"%s/%s/fDmesonJets",
GetName(), jetDef.GetName());
2222 for (
Int_t j = 0; j < dim; j++) {
2223 h->GetAxis(j)->SetTitle(title[j]);
2236 TH1* histAncestor =
nullptr;
2237 TH1* histPrompt =
nullptr;
2240 hname = TString::Format(
"%s/fHistPrompt",
GetName());
2243 hname = TString::Format(
"%s/fHistAncestor",
GetName());
2268 if (dmeson_pair.second.fParton) {
2269 fPartons[dmeson_pair.second.fParton] = dmeson_pair.second.fPartonType;
2270 UInt_t absPdgParton = TMath::Abs(dmeson_pair.second.fParton->GetPdgCode());
2271 if (absPdgParton == 4) {
2272 histPrompt->Fill(
"Prompt", 1);
2274 else if (absPdgParton == 5) {
2275 histPrompt->Fill(
"Non-Prompt", 1);
2278 histPrompt->Fill(
"Unknown", 1);
2282 histPrompt->Fill(
"Unknown", 1);
2287 if (dmeson_pair.second.fAncestor) {
2288 UInt_t absPdgAncestor = TMath::Abs(dmeson_pair.second.fAncestor->GetPdgCode());
2289 if (absPdgAncestor == 4) {
2290 histAncestor->Fill(
"Charm", 1);
2292 else if (absPdgAncestor == 5) {
2293 histAncestor->Fill(
"Bottom", 1);
2295 else if (absPdgAncestor == 2212) {
2296 histAncestor->Fill(
"Proton", 1);
2299 histAncestor->Fill(
"Unknown", 1);
2303 histAncestor->Fill(
"Unknown", 1);
2310 hname = TString::Format(
"%s/fHistRejectedDMesonPt",
GetName());
2312 hname = TString::Format(
"%s/fHistRejectedDMesonPhi",
GetName());
2314 hname = TString::Format(
"%s/fHistRejectedDMesonEta",
GetName());
2318 hname = TString::Format(
"%s/fHistRejectedDMesonInvMass",
GetName());
2322 hname = TString::Format(
"%s/fHistRejectedDMeson2ProngInvMass",
GetName());
2325 hname = TString::Format(
"%s/fHistRejectedDMesonDeltaInvMass",
GetName());
2326 fHistManager->
FillTH1(hname, dmeson_pair.second.fD.M() - dmeson_pair.second.fInvMass2Prong);
2333 hname = TString::Format(
"%s/fHistPartonPt",
GetName());
2335 hname = TString::Format(
"%s/fHistPartonEta",
GetName());
2337 hname = TString::Format(
"%s/fHistPartonPhi",
GetName());
2339 hname = TString::Format(
"%s/fHistPartonType",
GetName());
2343 if (!parton.first)
continue;
2344 histPartonPt->Fill(parton.first->Pt());
2345 histPartonEta->Fill(parton.first->Eta());
2346 histPartonPhi->Fill(TVector2::Phi_0_2pi(parton.first->Phi()));
2347 histPartonType->Fill(parton.second);
2362 TH1* histAncestor =
nullptr;
2363 TH1* histPrompt =
nullptr;
2366 hname = TString::Format(
"%s/fHistPrompt",
GetName());
2369 hname = TString::Format(
"%s/fHistAncestor",
GetName());
2392 if (dmeson_pair.second.fParton) {
2393 fPartons[dmeson_pair.second.fParton] = dmeson_pair.second.fPartonType;
2394 UInt_t absPdgParton = TMath::Abs(dmeson_pair.second.fParton->GetPdgCode());
2395 if (absPdgParton == 4) {
2396 histPrompt->Fill(
"Prompt", 1);
2398 else if (absPdgParton == 5) {
2399 histPrompt->Fill(
"Non-Prompt", 1);
2402 histPrompt->Fill(
"Unknown", 1);
2406 histPrompt->Fill(
"Unknown", 1);
2411 if (dmeson_pair.second.fAncestor) {
2412 UInt_t absPdgAncestor = TMath::Abs(dmeson_pair.second.fAncestor->GetPdgCode());
2413 if (absPdgAncestor == 4) {
2414 histAncestor->Fill(
"Charm", 1);
2416 else if (absPdgAncestor == 5) {
2417 histAncestor->Fill(
"Bottom", 1);
2419 else if (absPdgAncestor == 2212) {
2420 histAncestor->Fill(
"Proton", 1);
2423 histAncestor->Fill(
"Unknown", 1);
2427 histAncestor->Fill(
"Unknown", 1);
2432 hname = TString::Format(
"%s/fHistRejectedDMesonPt",
GetName());
2434 hname = TString::Format(
"%s/fHistRejectedDMesonPhi",
GetName());
2436 hname = TString::Format(
"%s/fHistRejectedDMesonEta",
GetName());
2440 hname = TString::Format(
"%s/fHistRejectedDMesonInvMass",
GetName());
2444 hname = TString::Format(
"%s/fHistRejectedDMeson2ProngInvMass",
GetName());
2447 hname = TString::Format(
"%s/fHistRejectedDMesonDeltaInvMass",
GetName());
2448 fHistManager->
FillTH1(hname, dmeson_pair.second.fD.M() - dmeson_pair.second.fInvMass2Prong);
2455 hname = TString::Format(
"%s/fHistPartonPt",
GetName());
2457 hname = TString::Format(
"%s/fHistPartonEta",
GetName());
2459 hname = TString::Format(
"%s/fHistPartonPhi",
GetName());
2461 hname = TString::Format(
"%s/fHistPartonType",
GetName());
2465 if (!parton.first)
continue;
2466 histPartonPt->Fill(parton.first->Pt());
2467 histPartonEta->Fill(parton.first->Eta());
2468 histPartonPhi->Fill(TVector2::Phi_0_2pi(parton.first->Phi()));
2469 histPartonType->Fill(parton.second);
2485 hname = TString::Format(
"%s/fHistRejectedDMesonPt",
GetName());
2487 hname = TString::Format(
"%s/fHistRejectedDMesonPhi",
GetName());
2489 hname = TString::Format(
"%s/fHistRejectedDMesonEta",
GetName());
2496 hname = TString::Format(
"%s/%s/fDmesonJets",
GetName(), jetDef.GetName());
2499 for (
auto& dmeson_pair : fDmesonJets) {
2500 const AliJetInfo* jet = dmeson_pair.second.GetJet(jetDef.GetName());
2502 if (!jetDef.IsJetInAcceptance(*jet)) {
2503 hname = TString::Format(
"%s/%s/fHistRejectedJetPt",
GetName(), jetDef.GetName());
2505 hname = TString::Format(
"%s/%s/fHistRejectedJetPhi",
GetName(), jetDef.GetName());
2507 hname = TString::Format(
"%s/%s/fHistRejectedJetEta",
GetName(), jetDef.GetName());
2534 std::map<std::string, AliJetInfo>::const_iterator it = DmesonJet.
fJets.find(n);
2535 if (it == DmesonJet.
fJets.end())
return kFALSE;
2537 for (
Int_t i = 0; i < h->GetNdimensions(); i++) {
2539 if (
title==
"#it{p}_{T,D} (GeV/#it{c})") contents[i] = DmesonJet.
fD.Pt();
2540 else if (
title==
"#eta_{D}") contents[i] = DmesonJet.
fD.Eta();
2543 else if (
title==
"#it{M}_{K#pi#pi} (GeV/#it{c}^{2})") contents[i] = DmesonJet.
fD.M();
2544 else if (
title==
"#it{M}_{K#pi#pi} - #it{M}_{K#pi} (GeV/#it{c}^{2})") contents[i] = DmesonJet.
fD.M() - DmesonJet.
fInvMass2Prong;
2545 else if (
title==
"#it{p}_{T,#pi} (GeV/#it{c})") contents[i] = DmesonJet.
fSoftPionPt;
2546 else if (
title==
"#it{z}_{D}") contents[i] = z;
2547 else if (
title==
"#Delta R_{D-jet}") contents[i] = deltaR;
2548 else if (
title==
"#eta_{D} - #eta_{jet}") contents[i] = deltaEta;
2549 else if (
title==
"#phi_{D} - #phi_{jet} (rad)") contents[i] = deltaPhi;
2550 else if (
title==
"#it{p}_{T,jet} (GeV/#it{c})") contents[i] = (*it).second.Pt();
2551 else if (
title==
"#eta_{jet}") contents[i] = (*it).second.Eta();
2552 else if (
title==
"#phi_{jet} (rad)") contents[i] = (*it).second.Phi_0_2pi();
2553 else if (
title==
"No. of constituents") contents[i] = (*it).second.fNConstituents;
2554 else AliWarning(Form(
"Unable to fill dimension '%s'!",
title.Data()));
2608 for (
Int_t i = 0; i < nOutputTrees; i++){
2609 DefineOutput(2+i, TTree::Class());
2628 TFile* filecuts = TFile::Open(cutfname);
2629 if (!filecuts || filecuts->IsZombie()) {
2630 ::Error(
"AliAnalysisTaskDmesonJets::LoadDMesonCutsFromFile",
"Input file not found: will use std cuts.");
2634 if (filecuts) analysiscuts =
dynamic_cast<AliRDHFCuts*
>(filecuts->Get(cutsname));
2636 if (!analysiscuts) {
2637 ::Error(
"AliAnalysisTaskDmesonJets::LoadDMesonCutsFromFile",
"Could not find analysis cuts '%s' in '%s'.", cutsname.Data(), cutfname.Data());
2643 ::Info(
"AliAnalysisTaskDmesonJets::LoadDMesonCutsFromFile",
"Cuts '%s' loaded from file '%s'", cutsname.Data(), cutfname.Data());
2646 return analysiscuts;
2680 if (!cutfname.IsNull()) {
2686 cutsname =
"D0toKpiCuts";
2689 cutsname =
"DStartoKpipiCuts";
2695 if (!cuttype.IsNull()) {
2696 cutsname += TString::Format(
"_%s", cuttype.Data());
2700 if (cuts) cuts->PrintAll();
2710 ::Info(
"AliAnalysisTaskDmesonJets::AddAnalysisEngine",
"A new analysis engine '%s' has been added. The total number of analysis engines is %lu.", eng.
GetName(),
fAnalysisEngines.size());
2714 ::Info(
"AliAnalysisTaskDmesonJets::AddAnalysisEngine",
"An analysis engine '%s' with %lu jet definitions has been found. The total number of analysis engines is %lu. A new jet definition '%s' is being added.", found_eng->
GetName(), found_eng->
fJetDefinitions.size(),
fAnalysisEngines.size(), jetDef.
GetName());
2718 if (found_eng->
fRDHFCuts != 0) ::Warning(
"AliAnalysisTaskDmesonJets::AddAnalysisEngine",
"D meson cuts were already defined for this D meson type. They will be overwritten.");
2736 ::Info(
"UserCreateOutputObjects",
"CreateOutputObjects of task %s", GetName());
2748 Int_t maxTracks = 6000;
2759 hname =
"fHistCharmPt";
2760 htitle = hname +
";#it{p}_{T,charm} (GeV/#it{c});counts";
2763 hname =
"fHistCharmEta";
2764 htitle = hname +
";#eta_{charm};counts";
2767 hname =
"fHistCharmPhi";
2768 htitle = hname +
";#phi_{charm};counts";
2771 hname =
"fHistBottomPt";
2772 htitle = hname +
";#it{p}_{T,bottom} (GeV/#it{c});counts";
2775 hname =
"fHistBottomEta";
2776 htitle = hname +
";#eta_{bottom};counts";
2779 hname =
"fHistBottomPhi";
2780 htitle = hname +
";#phi_{bottom};counts";
2783 hname =
"fHistHighestPartonPt";
2784 htitle = hname +
";#it{p}_{T,bottom} (GeV/#it{c});counts";
2787 hname =
"fHistHighestPartonType";
2788 htitle = hname +
";type;counts";
2791 hname =
"fHistNHeavyQuarks";
2792 htitle = hname +
";number of heavy-quarks;counts";
2795 ::Info(
"AliAnalysisTaskDmesonJets::UserCreateOutputObjects",
"Allocating histograms for task '%s' (%lu analysis engines)", GetName(),
fAnalysisEngines.size());
2797 ::Info(
"AliAnalysisTaskDmesonJets::UserCreateOutputObjects",
"Allocating histograms for analysis engine '%s' (%lu jet definitions)", param.GetName(), param.fJetDefinitions.size());
2801 hname = TString::Format(
"%s/fHistNAcceptedDmesonsVsNtracks", param.GetName());
2802 htitle = hname +
";#it{N}_{tracks};#it{N}_{D};events";
2805 hname = TString::Format(
"%s/fHistNTotAcceptedDmesons", param.GetName());
2806 htitle = hname +
";;#it{N}_{D}";
2809 for (
int i = 0 ; i < 5; i++) {
2810 hname = TString::Format(
"%s/fHistNAcceptedDmesonsPt%d", param.GetName(), i);
2811 htitle = hname +
";#it{N}_{D};events";
2814 hname = TString::Format(
"%s/fHistNTotAcceptedDmesonsPt%d", param.GetName(), i);
2815 htitle = hname +
";;#it{N}_{D}";
2819 hname = TString::Format(
"%s/fHistNDmesons", param.GetName());
2820 htitle = hname +
";#it{N}_{D};events";
2823 hname = TString::Format(
"%s/fHistNEvents", param.GetName());
2824 htitle = hname +
";Event status;counts";
2826 h->GetXaxis()->SetBinLabel(1,
"Accepted");
2827 h->GetXaxis()->SetBinLabel(2,
"Rejected");
2829 hname = TString::Format(
"%s/fHistEventRejectionReasons", param.GetName());
2830 htitle = hname +
";Rejection reason;counts";
2833 hname = TString::Format(
"%s/fHistRejectedDMesonPt", param.GetName());
2834 htitle = hname +
";#it{p}_{T,D} (GeV/#it{c});counts";
2837 hname = TString::Format(
"%s/fHistRejectedDMesonEta", param.GetName());
2838 htitle = hname +
";#it{#eta}_{D};counts";
2841 hname = TString::Format(
"%s/fHistRejectedDMesonPhi", param.GetName());
2842 htitle = hname +
";#it{#phi}_{D};counts";
2847 hname = TString::Format(
"%s/fHistRejectedDMesonInvMass", param.GetName());
2848 htitle = hname +
";#it{M}_{K#pi} (GeV/#it{c}^{2});counts";
2855 hname = TString::Format(
"%s/fHistRejectedDMeson2ProngInvMass", param.GetName());
2856 htitle = hname +
";#it{M}_{K#pi} (GeV/#it{c}^{2});counts";
2860 Double_t D0mass = TDatabasePDG::Instance()->GetParticle(421)->Mass();
2861 hname = TString::Format(
"%s/fHistRejectedDMesonDeltaInvMass", param.GetName());
2862 htitle = hname +
";#it{M}_{K#pi#pi} - #it{M}_{K#pi} (GeV/#it{c}^{2});counts";
2869 hname = TString::Format(
"%s/fHistPartonPt", param.GetName());
2870 htitle = hname +
";#it{p}_{T,parton} (GeV/#it{c});counts";
2873 hname = TString::Format(
"%s/fHistPartonEta", param.GetName());
2874 htitle = hname +
";#eta_{parton};counts";
2877 hname = TString::Format(
"%s/fHistPartonPhi", param.GetName());
2878 htitle = hname +
";#phi_{parton};counts";
2881 hname = TString::Format(
"%s/fHistPartonType", param.GetName());
2882 htitle = hname +
";type;counts";
2885 hname = TString::Format(
"%s/fHistPrompt", param.GetName());
2886 htitle = hname +
";Type;counts";
2888 h->GetXaxis()->SetBinLabel(1,
"Unknown");
2889 h->GetXaxis()->SetBinLabel(2,
"Prompt");
2890 h->GetXaxis()->SetBinLabel(3,
"Non-Prompt");
2892 hname = TString::Format(
"%s/fHistAncestor", param.GetName());
2893 htitle = hname +
";Ancestor;counts";
2895 h->GetXaxis()->SetBinLabel(1,
"Unknown");
2896 h->GetXaxis()->SetBinLabel(2,
"Charm");
2897 h->GetXaxis()->SetBinLabel(3,
"Bottom");
2898 h->GetXaxis()->SetBinLabel(4,
"Proton");
2901 for (
auto& jetDef : param.fJetDefinitions) {
2902 ::Info(
"AliAnalysisTaskDmesonJets::UserCreateOutputObjects",
"Allocating histograms for jet definition '%s'", jetDef.GetName());
2905 hname = TString::Format(
"%s/%s/fHistNDmesonsVsNconstituents", param.GetName(), jetDef.GetName());
2906 htitle = hname +
";#it{N}_{constituents};#it{N}_{D};counts";
2910 hname = TString::Format(
"%s/%s/fHistMCParticleRejectionReason", param.GetName(), jetDef.GetName());
2911 htitle = hname +
";Track rejection reason;#it{p}_{T,track} (GeV/#it{c});counts";
2915 hname = TString::Format(
"%s/%s/fHistTrackRejectionReason", param.GetName(), jetDef.GetName());
2916 htitle = hname +
";Track rejection reason;#it{p}_{T,track} (GeV/#it{c});counts";
2920 hname = TString::Format(
"%s/%s/fHistClusterRejectionReason", param.GetName(), jetDef.GetName());
2921 htitle = hname +
";Cluster rejection reason;#it{p}_{T,cluster} (GeV/#it{c});counts";
2925 hname = TString::Format(
"%s/%s/fHistDMesonDaughterNotInJet", param.GetName(), jetDef.GetName());
2926 htitle = hname +
";#it{p}_{T,track} (GeV/#it{c});counts";
2929 hname = TString::Format(
"%s/%s/fHistRejectedJetPt", param.GetName(), jetDef.GetName());
2930 htitle = hname +
";#it{p}_{T,jet} (GeV/#it{c});counts";
2933 hname = TString::Format(
"%s/%s/fHistRejectedJetEta", param.GetName(), jetDef.GetName());
2934 htitle = hname +
";#it{#eta}_{jet};counts";
2937 hname = TString::Format(
"%s/%s/fHistRejectedJetPhi", param.GetName(), jetDef.GetName());
2938 htitle = hname +
";#it{#phi}_{jet};counts";
2941 if (!jetDef.fRhoName.IsNull()) {
2942 hname = TString::Format(
"%s/%s/fHistRhoVsLeadJetPt", param.GetName(), jetDef.GetName());
2943 htitle = hname +
";#it{p}_{T,jet} (GeV/#it{c});#rho (GeV/#it{c} #times rad^{-1});counts";
2946 hname = TString::Format(
"%s/%s/fHistRhoVsLeadDPt", param.GetName(), jetDef.GetName());
2947 htitle = hname +
";#it{p}_{T,D} (GeV/#it{c});#rho (GeV/#it{c} #times rad^{-1});counts";
2950 hname = TString::Format(
"%s/%s/fHistRhoVsCent", param.GetName(), jetDef.GetName());
2951 htitle = hname +
";Centrality (%);#rho (GeV/#it{c} #times rad^{-1});counts";
2954 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsCent", param.GetName(), jetDef.GetName());
2955 htitle = hname +
";Centrality (%);#it{p}_{T,jet} (GeV/#it{c});counts";
2958 hname = TString::Format(
"%s/%s/fHistLeadDPtVsCent", param.GetName(), jetDef.GetName());
2959 htitle = hname +
";Centrality (%);#it{p}_{T,D} (GeV/#it{c});counts";
2962 hname = TString::Format(
"%s/%s/fHistRhoVsNTracks", param.GetName(), jetDef.GetName());
2963 htitle = hname +
";no. of tracks;#rho (GeV/#it{c} #times rad^{-1});counts";
2966 hname = TString::Format(
"%s/%s/fHistLeadJetPtVsNTracks", param.GetName(), jetDef.GetName());
2967 htitle = hname +
";no. of tracks;#it{p}_{T,jet} (GeV/#it{c});counts";
2970 hname = TString::Format(
"%s/%s/fHistLeadDPtVsNTracks", param.GetName(), jetDef.GetName());
2971 htitle = hname +
";no. of tracks;#it{p}_{T,D} (GeV/#it{c});counts";
2977 param.BuildTree(GetName());
2979 param.AssignDataSlot(treeSlot+2);
2984 AliError(Form(
"Number of data output slots %d not sufficient. Tree of analysis engine %s will not be posted!",
fNOutputTrees, param.GetName()));
3015 AliError(Form(
"This task need an AOD event (Task '%s'). Expect troubles...", GetName()));
3033 params.fRandomGen = rnd;
3035 for (
auto &jetdef: params.fJetDefinitions) {
3036 if (!jetdef.fRhoName.IsNull()) {
3037 jetdef.fRho =
dynamic_cast<AliRhoParameter*
>(fInputEvent->FindListObject(jetdef.fRhoName));
3039 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3040 "%s: Could not find rho object '%s' for engine '%s'",
3041 GetName(), jetdef.fRhoName.Data(), params.GetName());
3046 if (!params.fRDHFCuts) {
3048 ::Warning(
"AliAnalysisTaskDmesonJets::ExecOnce",
3049 "%s: RDHF cuts not provided for engine '%s'.",
3050 GetName(), params.GetName());
3053 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3054 "%s: RDHF cuts not provided. Engine '%s' disabled.",
3055 GetName(), params.GetName());
3056 params.fInhibit = kTRUE;
3062 for (
auto cont_it : fParticleCollArray) {
3064 if (track_cont) params.fTrackContainers.push_back(track_cont);
3067 for (
auto cont_it :
fClusterCollArray) params.fClusterContainers.push_back(cont_it.second);
3072 params.fCandidateArray =
dynamic_cast<TClonesArray*
>(
fAodEvent->GetList()->FindObject(params.fBranchName.Data()));
3074 if (params.fCandidateArray) {
3077 className =
"AliAODRecoDecayHF2Prong";
3080 className =
"AliAODRecoCascadeHF";
3082 if (!params.fCandidateArray->GetClass()->InheritsFrom(className)) {
3083 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3084 "%s: Objects of type %s in %s are not inherited from %s! Task will be disabled!",
3085 GetName(), params.fCandidateArray->GetClass()->GetName(), params.fCandidateArray->GetName(), className.Data());
3086 params.fCandidateArray = 0;
3087 params.fInhibit = kTRUE;
3091 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3092 "Could not find candidate array '%s', skipping the event. Analysis engine '%s' will be disabled!",
3093 params.fBranchName.Data(), params.GetName());
3094 params.fInhibit = kTRUE;
3098 if (params.fMCMode !=
kNoMC) {
3099 if (!params.fMCContainer) {
3100 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3101 "No MC particle container was provided. Analysis engine '%s' will be disabled!",
3103 params.fInhibit = kTRUE;
3108 if (params.fTrackContainers.size() == 0 && params.fClusterContainers.size() == 0) {
3109 ::Error(
"AliAnalysisTaskDmesonJets::ExecOnce",
3110 "No track container and no cluster container were provided. Analysis engine '%s' will be disabled!",
3112 params.fInhibit = kTRUE;
3130 if (eng.fInhibit)
continue;
3131 hname = TString::Format(
"%s/fHistEventRejectionReasons", eng.GetName());
3139 if (matchingAODdeltaAODlevel <= 0) {
3142 if (eng.fInhibit)
continue;
3143 hname = TString::Format(
"%s/fHistEventRejectionReasons", eng.GetName());
3151 eng.fDmesonJets.clear();
3152 if (eng.fInhibit)
continue;
3157 hname = TString::Format(
"%s/fHistNEvents", eng.GetName());
3159 Bool_t iseventselected = kTRUE;
3160 if (eng.fRDHFCuts) iseventselected = eng.fRDHFCuts->IsEventSelected(
fAodEvent);
3161 if (!iseventselected) {
3163 hname = TString::Format(
"%s/fHistEventRejectionReasons", eng.GetName());
3164 UInt_t bitmap = eng.fRDHFCuts->GetEventRejectionBitMap();
3168 if (label.IsNull())
break;
3178 AliDebug(2,
"Event selected");
3191 if (param.fInhibit)
continue;
3211 Int_t PdgHighParton = 0;
3212 for (
auto it = itcont.begin(); it != itcont.end(); it++) {
3214 if (
part.first.Pt() == 0)
continue;
3216 Int_t PdgCode =
part.second->GetPdgCode();
3219 if ((PdgCode < -9 || PdgCode > 9) && PdgCode != 21 && PdgCode != -21)
continue;
3221 AliDebugStream(5) <<
"Parton " << it.current_index() <<
3222 " with pdg=" << PdgCode <<
3223 ", px=" <<
part.first.Px() <<
3224 ", py=" <<
part.first.Py() <<
3225 ", pz=" <<
part.first.Pz() <<
3226 ", n daughters = " <<
part.second->GetNDaughters() <<
3231 if (
part.second->GetNDaughters() == 0)
continue;
3234 if (highestPartonPt <
part.first.Pt()) {
3235 highestPartonPt =
part.first.Pt();
3236 PdgHighParton = PdgCode;
3240 if (PdgCode != 4 && PdgCode != 5 && PdgCode != -4 && PdgCode != -5)
continue;
3242 Bool_t lastInPartonShower = kTRUE;
3243 Bool_t hadronDaughter = kFALSE;
3244 for (
Int_t daughterIndex =
part.second->GetFirstDaughter(); daughterIndex <=
part.second->GetLastDaughter(); daughterIndex++){
3245 if (daughterIndex < 0) {
3246 AliDebugStream(5) <<
"Could not find daughter index!" << std::endl;
3251 AliDebugStream(5) <<
"Could not find particle with index " << daughterIndex <<
"!" << std::endl;
3254 Int_t daughterPdgCode = daughter->GetPdgCode();
3255 if (daughter->GetMother() != it.current_index()) {
3256 AliDebugStream(5) <<
"Particle " << daughterIndex <<
" with pdg=" << daughterPdgCode <<
3257 ", px=" << daughter->Px() <<
3258 ", py=" << daughter->Py() <<
3259 ", pz=" << daughter->Pz() <<
3260 ", is not a daughter of " << it.current_index() <<
3265 AliDebugStream(5) <<
"Found daughter " << daughterIndex <<
3266 " with pdg=" << daughterPdgCode <<
3267 ", px=" << daughter->Px() <<
3268 ", py=" << daughter->Py() <<
3269 ", pz=" << daughter->Pz() <<
3271 if (daughterPdgCode == PdgCode) lastInPartonShower = kFALSE;
3272 if (TMath::Abs(daughterPdgCode) >= 111) hadronDaughter = kTRUE;
3274 if (hadronDaughter) {
3275 AliDebugStream(5) <<
"This particle has at least a hadron among its daughters!" << std::endl;
3276 if (!lastInPartonShower) AliDebugStream(2) <<
"Odly, quark " << it.current_index() <<
" with PDG " << PdgCode <<
" (pt = " <<
part.first.Pt() <<
", eta = " <<
part.first.Eta() <<
") is not the last in the parton shower but at least a hadron found among its daughters?!" << std::endl;
3279 AliDebugStream(5) <<
"This particle does not have hadrons among its daughters!" << std::endl;
3280 if (lastInPartonShower) AliDebugStream(2) <<
"Odly, quark " << it.current_index() <<
" with PDG " << PdgCode <<
" (pt = " <<
part.first.Pt() <<
", eta = " <<
part.first.Eta() <<
") is the last in the parton shower but no hadron found among its daughters?!" << std::endl;
3284 if (PdgCode == 4 || PdgCode == -4) {
3289 else if (PdgCode == 5 || PdgCode == -5) {
3298 Int_t partonType = 0;
3299 Int_t absPdgHighParton = TMath::Abs(PdgHighParton);
3300 if (absPdgHighParton == 9 || absPdgHighParton == 21) {
3304 partonType = absPdgHighParton;
3318 TParticlePDG*
part = TDatabasePDG::Instance()->GetParticle(TMath::Abs(pdg));
3323 if (nbins % 2 == 0) {
3324 minMass = mass - range / 2 - range / nbins / 2;
3325 maxMass = mass + range / 2 - range / nbins / 2;
3328 minMass = mass - range / 2;
3329 maxMass = mass + range / 2;
3344 label =
"NotSelTrigger";
3346 return label.Data();
3351 return label.Data();
3354 label =
"TooFewVtxContrib";
3356 return label.Data();
3359 label =
"ZVtxOutFid";
3361 return label.Data();
3366 return label.Data();
3369 label =
"OutsideCentrality";
3371 return label.Data();
3374 label =
"PhysicsSelection";
3376 return label.Data();
3379 label =
"BadSPDVertex";
3381 return label.Data();
3384 label =
"ZVtxSPDOutFid";
3386 return label.Data();
3389 label =
"CentralityFlattening";
3391 return label.Data();
3394 label =
"BadTrackV0Correl";
3396 return label.Data();
3399 return label.Data();
3431 ::Error(
"AddTaskDmesonJets",
"No analysis manager to connect to.");
3436 AliVEventHandler* handler = mgr->GetInputEventHandler();
3438 ::Error(
"AddTaskEmcalJetSpectraQA",
"This task requires an input event handler");
3444 if (handler->InheritsFrom(
"AliESDInputHandler")) {
3447 else if (handler->InheritsFrom(
"AliAODInputHandler")) {
3452 if (ntracks ==
"usedefault") {
3453 if (dataType ==
kESD) {
3456 else if (dataType ==
kAOD) {
3464 if (nclusters ==
"usedefault") {
3465 if (dataType ==
kESD) {
3466 nclusters =
"CaloClusters";
3468 else if (dataType ==
kAOD) {
3469 nclusters =
"caloClusters";
3476 if (nMCpart ==
"usedefault") {
3477 nMCpart =
"mcparticles";
3480 TString name(
"AliAnalysisTaskDmesonJets");
3481 if (strcmp(suffix,
"") != 0) {
3482 name += TString::Format(
"_%s", suffix.Data());
3487 if (!ntracks.IsNull()) {
3489 jetTask->AdoptParticleContainer(trackCont);
3492 if (!nMCpart.IsNull()) {
3494 partCont->SetEtaLimits(-1.5, 1.5);
3495 partCont->SetPtLimits(0, 1000);
3496 jetTask->AdoptParticleContainer(partCont);
3499 jetTask->AddClusterContainer(nclusters.Data());
3502 mgr->AddTask(jetTask);
3505 AliAnalysisDataContainer* cinput1 = mgr->GetCommonInputContainer();
3507 contname1 +=
"_histos";
3508 AliAnalysisDataContainer* coutput1 = mgr->CreateContainer(contname1.Data(),
3509 TList::Class(), AliAnalysisManager::kOutputContainer,
3510 Form(
"%s", AliAnalysisManager::GetCommonFileName()));
3512 mgr->ConnectInput(jetTask, 0, cinput1);
3513 mgr->ConnectOutput(jetTask, 1, coutput1);
3515 for (
Int_t i = 0; i < nMaxTrees; i++) {
3516 TString contname = TString::Format(
"%s_tree_%d", name.Data(), i);
3517 AliAnalysisDataContainer *coutput = mgr->CreateContainer(contname.Data(),
3518 TTree::Class(),AliAnalysisManager::kOutputContainer,
3519 Form(
"%s", AliAnalysisManager::GetCommonFileName()));
3520 mgr->ConnectOutput(jetTask, 2+i, coutput);
Int_t GetNConstituents() const
AliD0ExtendedInfoSummary()
Double32_t fCorrZ
Z of the D meson after subtracting average background.
Lightweight class that encapsulates D meson jets.
void SetRejectionReasonLabels(TAxis *axis)
UChar_t fNDaughters
Number of daughters.
Double32_t fZ
Z of the D meson.
void Print() const
Prints the content of this object in the standard output.
void UserCreateOutputObjects()
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.
Bool_t FillTree(Bool_t applyKinCuts)
AliEMCALGeometry * fGeom
!emcal geometry
void SetDMesonCandidate(AliAODRecoDecay *c)
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.
virtual void Reset()
Reset the object.
Bool_t fInhibit
!inhibit execution of the task
TList * fOutput
!output list
Bool_t IsJetInAcceptance(const AliJetInfo &jet) const
Double_t fSoftPionPt
! Transverse momentum of the soft pion of the D* candidate
EDataType_t
Switch for the data type.
virtual AliAODMCParticle * GetMCParticle(Int_t i=-1) const
void SetJetPhiRange(Double_t min, Double_t max)
void Getd0MeasMinusExpProng(Int_t ip, Double_t magf, Double_t &d0diff, Double_t &errd0diff) const
AliRDHFCuts * fRDHFCuts
D meson candidates cuts.
virtual void Set(const AliDmesonJetInfo &source)
THistManager * fHistManager
! Histograms
void RunAnalysis()
Run the analysis.
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)
void SetJetEtaRange(Double_t min, Double_t max)
Bool_t FillHnSparse(Bool_t applyKinCuts)
std::vector< AliClusterContainer * > fClusterContainers
! Cluster containers
Double32_t fPhi
Phi of the D meson.
Int_t MatchToMC(Int_t pdgabs, Int_t pdgabs2prong, Int_t *pdgDg, Int_t *pdgDg2prong, TClonesArray *mcArray, Bool_t isV0=kFALSE) const
AliHFAODMCParticleContainer * fMCContainer
! MC particle container
ERecoScheme_t fRecoScheme
Jet recombination scheme (pt scheme, E scheme, ...)
const TObjArray & GetDaughterList() const
void SetRDHFCuts(AliRDHFCuts *cuts)
const char * what() const noexcept
Double_t fMaxNeutralPt
Transverse momentum of the leading neutral particle (or cluster)
void RunDetectorLevelAnalysis()
Run a detector level analysis.
Container with name, TClonesArray and cuts for particles.
Double32_t fPartonPt
Transverse momentum of the parton.
friend bool operator<(const AnalysisEngine &lhs, const AnalysisEngine &rhs)
Double32_t fArea
Area of the jet.
void FillTH2(const char *hname, double x, double y, double weight=1., Option_t *opt="")
Fill a 2D histogram within the container.
virtual void UserCreateOutputObjects()
Creates the output containers.
void FillPartonLevelHistograms()
Fill histograms with parton-level information.
static Int_t CheckMatchingAODdeltaAODevents()
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)
TString fName
! Name of this object
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
virtual void Reset()
Reset the object.
Bool_t FindJet(AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, AliHFJetDefinition &jetDef)
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
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)
Bool_t FillRecoCand(AliVEvent *event, AliAODRecoDecayHF3Prong *rd3)
Double_t fJetGhostArea
Area of the ghost particles.
Double_t InvMassD0() const
void BuildHnSparse(UInt_t enabledAxis)
void SetRecombScheme(const fastjet::RecombinationScheme &scheme)
const char * GetName() const
virtual void Reset()
Reset the object.
AnalysisEngine()
This is the default constructor, used for ROOT I/O purposes.
Double_t Prodd0d0() const
Int_t fDataSlotNumber
! Data slot where the tree output is posted
virtual void Reset()
Reset the current object.
EFindParticleOriginMode_t
Double32_t fPtPi
Transverse momentum of the pion.
void Init(const AliEMCALGeometry *const geom, Int_t runNumber)
Initialize the analysis engine.
static FJRecoScheme ConvertToFJRecoScheme(ERecoScheme_t reco)
AliVParticle * fDmesonParticle
! pointer to the particle object
Double32_t fd0d0
D0K * D0Pi.
TString part
use mixed event to constrain combinatorial background
static TString GenerateJetName(EJetType_t jetType, EJetAlgo_t jetAlgo, ERecoScheme_t recoScheme, Double_t radius, AliParticleContainer *partCont, AliClusterContainer *clusCont, TString tag)
Double_t fMinJetEta
Minimum jet eta.
static std::pair< AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle * > IsPromptCharm(const AliAODMCParticle *part, TClonesArray *mcArray)
virtual void Set(const AliDmesonJetInfo &source)
AliAODEvent * fAodEvent
! AOD event
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.
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) ...
EBeamType_t fForceBeamType
forced beam type
Double32_t fR
Distance between D meson and jet axis.
virtual void Reset()
Reset the object.
virtual void Set(const AliDmesonJetInfo &source)
void AddInputVectors(AliEmcalContainer *cont, Int_t offset, TH2 *rejectHist=0, Double_t eff=0.)
const std::vector< fastjet::PseudoJet > & GetInclusiveJets() const
EJetType_t fJetType
Jet type (charged, full, neutral)
Double32_t fEta
Eta of the D meson.
Double32_t fPt
Transverse momentum of the D meson in GeV/c.
TH2 * CreateTH2(const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
Create a new TH2 within the container.
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
TObject * FindObject(const char *name) const
Find an object inside the container.
Lightweight class that encapsulates D0.
Double_t fMinJetPhi
Minimum jet phi.
THashList * GetListOfHistograms() const
Get the list of histograms.
Double_t CosThetaStarD0bar() const
angle of K
UInt_t fCandidatePDG
Candidate PDG.
AliAnalysisTaskDmesonJets()
This is the default constructor, used for ROOT I/O purposes.
virtual void Reset()
Reset the current object.
AnalysisEngine & operator=(const AnalysisEngine &source)
Lightweight class that encapsulates D meson jets for PbPb analysis.
Double_t fMaxJetPt
Maximum jet pT.
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
static AliAODMCParticle * FindParticleOrigin(const AliAODMCParticle *part, TClonesArray *mcArray, EFindParticleOriginMode_t mode, const std::set< UInt_t > &pdgSet)
Double_t fMinNeutralPt
Minimum pt of the leading neutral particle (or cluster)
Double32_t fPhi
Phi of the jet.
Bool_t fD0D0bar
! kTRUE if selected both as D0 and D0bar
Int_t GetDataSlotNumber() const
Double_t fRadius
Jet radius.
Double_t fMinJetPt
Minimum jet pT.
TTree * fTree
! Output tree
void SetAlgorithm(const fastjet::JetAlgorithm &algor)
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Create a new TH1 within the container.
AliAODTrack * GetBachelor() const
Bool_t fD0Extended
Store extended information in the tree (only for D0 mesons)
AliRDHFCuts * LoadDMesonCutsFromFile(TString cutfname, TString cutsname)
AliDmesonJetInfo()
Default constructor.
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 fMaxJetPhi
Maximum jet phi.
Int_t fNMassBins
Mass number of bins.
Double_t fMaxMass
Max mass in histogram axis.
Double_t InvMassD0bar() const
EJetAlgo_t fJetAlgo
Jet algorithm (kt, anti-kt,...)
Double_t GetZ(std::string n) const
static const char * GetHFEventRejectionReasonLabel(UInt_t &bitmap)
Lightweight class that encapsulates D*.
virtual void Clear(const Option_t *="")
virtual void Reset()
Reset the object.
Bool_t fInhibit
Inhibit the task.
friend bool operator<(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
void SetChargedPtRange(Double_t min, Double_t max)
void SetRejectedOriginMap(UInt_t m)
Bool_t ExtractDstarAttributes(const AliAODRecoCascadeHF *DstarCand, AliDmesonJetInfo &DmesonJet, UInt_t i)
Int_t fJetAreaType
Jet area type.
void FillTH1(const char *hname, double x, double weight=1., Option_t *opt="")
Fill a 1D histogram within the container.
const AliJetInfo * GetJet(std::string n) const
Float_t fPtBinWidth
Histogram pt bin width.
Short_t fPartonType
! type of the parton in the shower tree (only for particle level D mesons)
TClonesArray * fCandidateArray
! D meson candidate array
void SetAcceptedDecayMap(UInt_t m)
const AliMCParticleIterableMomentumContainer all_momentum() const
virtual ~AliAnalysisTaskDmesonJets()
This is the standard destructor.
Byte_t fSelectionType
! for D0: 0=not selected, 1=D0, 2=D0bar
void SetCandidateProperties(Double_t range)
Bool_t ExtractD0Attributes(const AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, UInt_t i)
Double_t Phi_0_2pi() const
Select MC particles based on specific prescriptions of HF analysis.
Double32_t fCosThetaStar
Cosine of theta star.
static EMesonDecayChannel_t CheckDecayChannel(const AliAODMCParticle *part, TClonesArray *mcArray)
void SetGhostArea(Double_t gharea)
AliDmesonJetInfo & operator=(const AliDmesonJetInfo &source)
Double_t fMaxChargedPt
Transverse momentum of the leading charged particle (or track)
Double_t GetCorrZ(std::string n) const
Double32_t fCorrPt
Transverse momentum of the jet in GeV/c after subtracting average background.
std::vector< fastjet::PseudoJet > GetJetConstituents(UInt_t idx) const
friend bool operator==(const AliHFJetDefinition &lhs, const AliHFJetDefinition &rhs)
static FJJetAlgo ConvertToFJAlgo(EJetAlgo_t algo)
Double_t fMaxChargedPt
Maximum pt of the leading charged particle (or track)
void AdoptRDHFCuts(AliRDHFCuts *cuts)
Class that encapsulates jets.
std::map< std::string, AliJetInfo > fJets
! list of jets
Look for the very first particle in the fragmentation tree.
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
Bool_t IsSpecialPDGFound() const
std::map< AliAODMCParticle *, Short_t > fPartons
! set of the partons in the shower that produced each D meson
Bool_t fRejectISR
! Reject initial state radiation
virtual ~AnalysisEngine()
void RunParticleLevelAnalysis()
Run a particle level analysis.
std::map< std::string, AliParticleContainer * > fParticleCollArray
particle/track collection array
std::map< int, AliDmesonJetInfo > fDmesonJets
! Array containing the D meson jets
std::string fWhat
Error message.
Double32_t f2ProngInvMass
Double_t fTrackEfficiency
! Artificial tracking inefficiency (0...1) -> set automatically at ExecOnce by AliAnalysisTaskDmesonJ...
void SetJetPtRange(Double_t min, Double_t max)
Bool_t fApplyKinematicCuts
Apply jet kinematic cuts.
Double32_t fSelectionType
Selection type: D0, D0bar, both.
Byte_t GetSelectionTypeSummary() const
Bool_t IsSelected(TObject *obj)
const char * GetName() const
Generate a name for this jet definition.
AliEventNotFound(const std::string &class_name, const std::string &method_name)
UInt_t fAcceptedDecay
Bit mask with D meson decays that are accepted (only used for particle-level analysis) ...
virtual void Set(const AliDmesonJetInfo &source, std::string n)
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)
Double_t InvMassD0() const
Double32_t fEta
Eta of the jet.
Bool_t fRejectISR
Reject initial state radiation.
EOutputType_t fOutputType
Output type: none, TTree or THnSparse.
virtual void AddInputVector(Double_t px, Double_t py, Double_t pz, Double_t E, Int_t index=-99999)
Double_t InvMassDstarKpipi() const
const AliVEvent * fEvent
! pointer to the ESD/AOD event
TArrayI fPDGdaughters
List of the PDG code of the daughters.
void SetNeutralPtRange(Double_t min, Double_t max)
Double32_t fMaxNormd0
max norm d0
TString fBranchName
AOD branch where the D meson candidate are found.
Float_t fMaxPt
Histogram pt limit.
Double_t CosPointingAngle() const
Int_t fNOutputTrees
Maximum number of output trees.
virtual Bool_t FillHistograms()
AliHFJetDefinition()
This is the default constructor, used for ROOT I/O purposes.
Double_t CosThetaStarD0() const
void SetSpecialPDG(Int_t pdg)
AliHFJetDefinition & operator=(const AliHFJetDefinition &source)
Int_t GetNAcceptedParticles() const
Double_t fMaxJetEta
Maximum jet eta.
void SetAreaType(const fastjet::AreaType &atype)
std::map< std::string, AliClusterContainer * > fClusterCollArray
cluster collection array
THnSparse * CreateTHnSparse(const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
Create a new THnSparse within the container.
Double_t fCorrPt
Transverse momentum of the jet after subtracting the average background.
AliHFAODMCParticleContainer * fMCContainer
! MC particle container
TString fCandidateName
Candidate name.
AliJetInfoSummary ** fCurrentJetInfo
! Current jet info
virtual Bool_t IsInFiducialAcceptance(Double_t, Double_t) const
AliFJWrapper * fFastJetWrapper
! Fastjet wrapper
AliHFJetDefinition * AddJetDefinition(EJetType_t type, Double_t r, EJetAlgo_t algo, ERecoScheme_t reco)
Container for MC-true particles within the EMCAL framework.
Lightweight class that encapsulates D0.
void SetMakeGeneralHistograms(Bool_t g)
Bool_t IsAnyJetInAcceptance(const AliDmesonJetInfo &dMesonJet) const
Double_t fCent
! Event centrality
Double_t fCent
!event centrality
void SetCharge(EChargeCut_t c)
Container for jet within the EMCAL jet framework.
void SetRejectISR(Bool_t b)
Double32_t fPartonType
Parton type.
Int_t PostDataFromAnalysisEngine(const AnalysisEngine &eng)
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="")
TTree * BuildTree(const char *taskName)
virtual void Set(const AliDmesonJetInfo &source, std::string n)
Bool_t FillQA(Bool_t applyKinCuts)
Double_t fMinMass
Min mass in histogram axis.
Double32_t fDCA
Distance of closest approach.