@@ -55,7 +55,9 @@ struct HfTaskCorrelationDplusDplusReduced {
5555 void init (InitContext const &)
5656 {
5757 registry.add (" hMassDplus" , " D+ candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))" , {HistType::kTH1F , {{120 , 1.5848 , 2.1848 }}});
58+ registry.add (" hMassDminus" , " D- candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))" , {HistType::kTH1F , {{120 , 1.5848 , 2.1848 }}});
5859 registry.add (" hMassDplusMatched" , " D+ matched candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))" , {HistType::kTH1F , {{120 , 1.5848 , 2.1848 }}});
60+ registry.add (" hMassDminusMatched" , " D- matched candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))" , {HistType::kTH1F , {{120 , 1.5848 , 2.1848 }}});
5961 registry.add (" hMassDplusminusPair" , " D plus-minus pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});inv. mass (#pi K) (GeV/#it{c}^{2})" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {120 , 1.5848 , 2.1848 }}});
6062 registry.add (" hMassDplusPair" , " D plus pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});inv. mass (#pi K) (GeV/#it{c}^{2})" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {120 , 1.5848 , 2.1848 }}});
6163 registry.add (" hMassDminusPair" , " D minus pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});inv. mass (#pi K) (GeV/#it{c}^{2})" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {120 , 1.5848 , 2.1848 }}});
@@ -72,7 +74,11 @@ struct HfTaskCorrelationDplusDplusReduced {
7274 auto sign1 = 1 ;
7375 if (cand1.pt () < 0 ) {
7476 sign1 = -1 ;
77+ registry.fill (HIST (" hMassDminus" ), mass1);
78+ } else {
79+ registry.fill (HIST (" hMassDplus" ), mass1);
7580 }
81+
7682 for (auto cand2 = cand1 + 1 ; cand2 != localCandidates.end (); ++cand2) {
7783 auto mass2 = cand2.m ();
7884 auto sign2 = 1 ;
@@ -100,9 +106,15 @@ struct HfTaskCorrelationDplusDplusReduced {
100106
101107 for (const auto & cand1 : localCandidates) {
102108 auto mass1 = cand1.m ();
103- registry.fill (HIST (" hMassDplus" ), mass1);
104- if (std::abs (cand1.flagMcMatchRec ()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)
105- registry.fill (HIST (" hMassDplusMatched" ), mass1);
109+ if (cand1.pt () < 0 ) {
110+ registry.fill (HIST (" hMassDminus" ), mass1);
111+ if (std::abs (cand1.flagMcMatchRec ()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)
112+ registry.fill (HIST (" hMassDminusMatched" ), mass1);
113+ } else {
114+ registry.fill (HIST (" hMassDplus" ), mass1);
115+ if (std::abs (cand1.flagMcMatchRec ()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)
116+ registry.fill (HIST (" hMassDplusMatched" ), mass1);
117+ }
106118 }
107119 }
108120 PROCESS_SWITCH (HfTaskCorrelationDplusDplusReduced, processLocalDataMcRec, " Process local MC data" , false );
0 commit comments