Skip to content

Commit 733989a

Browse files
author
Luigi Dello Stritto
committed
Apply event selection before filling the hGenCollisionCent histo
1 parent 3ec537f commit 733989a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,14 @@ struct HfEventSelectionMc {
430430
template <o2::hf_centrality::CentralityEstimator centEstimator, typename Coll>
431431
void fillHistograms(Coll const& mcCollision, const uint16_t rejectionMask)
432432
{
433+
hParticles->Fill(EventRejection::None);
434+
433435
if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0M) {
436+
if (TESTBIT(rejectionMask, EventRejection::TimeFrameBorderCut) || TESTBIT(rejectionMask, EventRejection::ItsRofBorderCut) || TESTBIT(rejectionMask, EventRejection::PositionZ)) {
437+
return;
438+
}
434439
hGenCollisionsCent->Fill(mcCollision.centFT0M());
435440
}
436-
hParticles->Fill(EventRejection::None);
437441

438442
for (std::size_t reason = 1; reason < EventRejection::NEventRejection; reason++) {
439443
if (TESTBIT(rejectionMask, reason)) {

0 commit comments

Comments
 (0)