3737#include < cstdint>
3838#include < cstdlib>
3939#include < string>
40- #include < unordered_map>
4140#include < vector>
4241
4342using namespace o2 ;
@@ -99,7 +98,6 @@ struct HfCorrelatorFlowCharmHadronsReduced {
9998 Configurable<std::vector<double >> binsPtAssoc{" binsPtAssoc" , std::vector<double >{0.3 , 1 ., 2 ., 50 .}, " pT bin limits for associated particles" };
10099 Configurable<bool > selCentrality{" selCentrality" , false , " Use centrality to select events" };
101100 Configurable<bool > selMultiplicity{" selMultiplicity" , false , " Use multiplicity to select events" };
102- Configurable<bool > countCharmCandsPerCollision{" countCharmCandsPerCollision" , false , " Count charm candidates per collision" };
103101 Configurable<float > centMin{" centMin" , 0 , " min. centrality" };
104102 Configurable<float > centMax{" centMax" , 10 ., " max. centrality" };
105103 Configurable<float > multMin{" multMin" , 0 , " min. multiplicity" };
@@ -226,9 +224,6 @@ struct HfCorrelatorFlowCharmHadronsReduced {
226224 registry.add (" hSparseCorrelationsMECharmHad" , " THn for ME Charm-Had correlations" , HistType::kTHnSparseF , axes);
227225 }
228226 if (doprocessCharmTriggers) {
229- if (countCharmCandsPerCollision) {
230- axesTrigger.push_back ({100 , -0.5 , 99.5 , " nCharmCandidates" });
231- }
232227 registry.add (" hSparseTrigCandsCharm" , " THn for Charm trigger candidates" , HistType::kTHnSparseF , axesTrigger);
233228 }
234229 }
@@ -644,12 +639,6 @@ struct HfCorrelatorFlowCharmHadronsReduced {
644639 aod::HfcRedCorrColls const &)
645640 {
646641
647- std::unordered_map<int , int > nCharmCandidatesPerCollision;
648- for (const auto & cand : trigCands) {
649- auto collision = cand.template hfcRedCorrColl_as <o2::aod::HfcRedCorrColls>();
650- ++nCharmCandidatesPerCollision[collision.globalIndex ()];
651- }
652-
653642 for (const auto & trigCand : trigCands) {
654643 auto collision = trigCand.template hfcRedCorrColl_as <o2::aod::HfcRedCorrColls>();
655644 if (!isSelCollision (collision)) {
@@ -658,12 +647,7 @@ struct HfCorrelatorFlowCharmHadronsReduced {
658647 if (!isSelBdtScoreCut (trigCand, trigCand.ptTrig ())) {
659648 continue ;
660649 }
661- const auto nCharmCandidates = nCharmCandidatesPerCollision[collision.globalIndex ()];
662- if (countCharmCandsPerCollision) {
663- registry.fill (HIST (" hSparseTrigCandsCharm" ), trigCand.invMassTrig (), trigCand.ptTrig (), trigCand.bdtScore0Trig (), trigCand.bdtScore1Trig (), nCharmCandidates);
664- } else {
665- registry.fill (HIST (" hSparseTrigCandsCharm" ), trigCand.invMassTrig (), trigCand.ptTrig (), trigCand.bdtScore0Trig (), trigCand.bdtScore1Trig ());
666- }
650+ registry.fill (HIST (" hSparseTrigCandsCharm" ), trigCand.invMassTrig (), trigCand.ptTrig (), trigCand.bdtScore0Trig (), trigCand.bdtScore1Trig ());
667651 }
668652 }
669653 PROCESS_SWITCH (HfCorrelatorFlowCharmHadronsReduced, processCharmTriggers, " Process charm trigger info" , false );
0 commit comments