Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
switch (channel) {
case DecayChannel::Ds1ToDstarK0s:
invMassV0 = candV0Tr.invMassK0s();
if (candD.dType() > 0){
if (candD.dType() > 0) {
invMassReso = RecoDecay::m(std::array{candD.pVectorProng0(), candD.pVectorProng1(), candD.pVectorProng2(), pVecV0Tr}, std::array{massPion, massKaon, massPion, massK0}) - invMassD;
} else {
invMassReso = RecoDecay::m(std::array{candD.pVectorProng1(), candD.pVectorProng0(), candD.pVectorProng2(), pVecV0Tr}, std::array{massPion, massKaon, massPion, massK0}) - invMassD;
Expand Down Expand Up @@ -737,4 +737,5 @@
{
return WorkflowSpec{adaptAnalysisTask<HfCandidateCreatorCharmResoReduced>(cfgc),
adaptAnalysisTask<HfCandidateCreatorCharmResoReducedExpressions>(cfgc)};
}
}

Check failure on line 741 in PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
19 changes: 10 additions & 9 deletions PWGHF/D2H/Tasks/taskCharmResoReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
} // namespace hf_cand_reso_lite

DECLARE_SOA_TABLE(HfCandResoLites, "AOD", "HFCANDRESOLITE", //! Table with some B0 properties
// Candidate Properties
// Candidate Properties
hf_cand_reso_lite::M,
hf_cand_reso_lite::Pt,
hf_cand_reso_lite::P,
Expand Down Expand Up @@ -114,7 +114,7 @@
hf_cand_reso_lite::PtGen,
hf_cand_reso_lite::SignD0);

DECLARE_SOA_TABLE(HfGenResoLites, "AOD", "HFGENRESOLITE", //! Table with some B0 properties
DECLARE_SOA_TABLE(HfGenResoLites, "AOD", "HFGENRESOLITE", //! Table with some B0 properties
hf_cand_reso_lite::Pt,
hf_cand_reso_lite::Y,
hf_cand_reso_lite::Origin);
Expand Down Expand Up @@ -176,7 +176,7 @@
registry.add("hBz", "Collision Bz ; Bz [T] ; entries", {HistType::kTH1F, {{20, -10., 10.}}});
registry.add("hSparse", "THn for production studies with cosThStar and BDT scores", HistType::kTHnSparseF, {axisPt, axisPtProng0, axisPtProng1, axisInvMassReso, axisInvMassProng0, axisInvMassProng1, axisCosThetaStar, axisBkgBdtScore, axisNonPromptBdtScore});

if (doprocessDs1Mc || doprocessDs2StarMc || doprocessDs1McWithMl|| doprocessDs2StarMcWithMl) {
if (doprocessDs1Mc || doprocessDs2StarMc || doprocessDs1McWithMl || doprocessDs2StarMcWithMl) {
// gen histos
registry.add("hYRecPrompt", "Charm resonance candidates pT", {HistType::kTH2F, {axisPt, axisEta}});
registry.add("hYRecNonPrompt", "Charm resonance candidates pT", {HistType::kTH2F, {axisPt, axisEta}});
Expand Down Expand Up @@ -262,13 +262,13 @@
if (channel == DecayChannel::Ds1ToDstarK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0s || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0sPart || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0NoPiK0sPart || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0sOneMu)) {
return;
}
if (channel == DecayChannel::Ds2StarToDplusK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sToPiKaPiPiPi || std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sOneMu)) {
if (channel == DecayChannel::Ds2StarToDplusK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sToPiKaPiPiPi || std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sOneMu)) {
return;
}
}
if (origin == 1){
if (origin == 1) {
registry.fill(HIST("hYRecPrompt"), candidate.pt(), y);
} else if (origin == 2){
} else if (origin == 2) {
registry.fill(HIST("hYRecNonPrompt"), candidate.pt(), y);
}
}
Expand All @@ -292,7 +292,7 @@
if (fillSparses) {
registry.fill(HIST("hSparse"), candidate.pt(), candidate.ptProng0(), candidate.ptProng1(), invMassReso, invMassBach0, invMassBach1, cosThetaStar, mlScoreBkg, mlScoreNonPrompt);
}

if (fillTrees) {
hfCandResoLite(
invMassReso,
Expand Down Expand Up @@ -404,7 +404,7 @@
registry.fill(HIST("hPtYWithProngsInAccepanceGenSig"), ptParticle, yParticle, originParticle, flag);
}
}
if (fillTrees){
if (fillTrees) {
hfGenResoLite(ptParticle, yParticle, originParticle);
}
}
Expand Down Expand Up @@ -468,4 +468,5 @@
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<HfTaskCharmResoReduced>(cfgc)};
}
}

Check failure on line 472 in PWGHF/D2H/Tasks/taskCharmResoReduced.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
Loading