@@ -196,26 +196,21 @@ struct HfTaskPtFlucCharmHadrons {
196196 template <typename Coll>
197197 bool isSelectedHfCollision (Coll const & collision, float & cent)
198198 {
199- o2::hf_evsel::HfCollisionRejectionMask collRejMask{};
200- if (centEstimator == CentralityEstimator::FT0A )
201- {
202- collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0A , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
203- } else if (centEstimator == CentralityEstimator::FT0C )
204- {
205- collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0C , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
206- } else if (centEstimator == CentralityEstimator::FT0M )
207- {
208- collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0M , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
209- } else if (centEstimator == CentralityEstimator::FV0A )
210- {
211- collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FV0A , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
212- } else
213- {
214- LOG (fatal) << " Centrality estimator not recognized for collision selection" ;
215- std::abort ();
216- }
217- hfEvSel.fillHistograms (collision, collRejMask, cent);
218- return collRejMask == 0 ;
199+ o2::hf_evsel::HfCollisionRejectionMask collRejMask{};
200+ if (centEstimator == CentralityEstimator::FT0A ) {
201+ collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0A , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
202+ } else if (centEstimator == CentralityEstimator::FT0C ) {
203+ collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0C , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
204+ } else if (centEstimator == CentralityEstimator::FT0M ) {
205+ collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FT0M , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
206+ } else if (centEstimator == CentralityEstimator::FV0A ) {
207+ collRejMask = hfEvSel.getHfCollisionRejectionMask <true , CentralityEstimator::FV0A , aod::BCsWithTimestamps>(collision, cent, ccdb, registry);
208+ } else {
209+ LOG (fatal) << " Centrality estimator not recognized for collision selection" ;
210+ std::abort ();
211+ }
212+ hfEvSel.fillHistograms (collision, collRejMask, cent);
213+ return collRejMask == 0 ;
219214 }
220215
221216 // / Get candidate mass
@@ -392,12 +387,10 @@ struct HfTaskPtFlucCharmHadrons {
392387 }
393388 }
394389
395- for (const auto & cand : candidates)
396- {
390+ for (const auto & cand : candidates) {
397391 // apply ML selection
398392 auto [ml1, ml2] = getMlScores<Channel, decltype (cand), T1 >(cand);
399- if (!passMlCut (ml1, ml2))
400- {
393+ if (!passMlCut (ml1, ml2)) {
401394 continue ;
402395 }
403396
@@ -424,8 +417,7 @@ struct HfTaskPtFlucCharmHadrons {
424417 // fill charm-bulk correlation thnsparse
425418 registry.fill (HIST (" hCharmBulkCorrelations" ), invMass, cent, pt, sign, ml1, ml2, eta, meanPtA, meanPtB, candPtProduct);
426419 }
427- } else
428- {
420+ } else {
429421 int nDcandTotA = 0 ;
430422 for (const auto & cand : candidates) {
431423 if (!passCandInA (cand)) {
0 commit comments