Skip to content

Commit b27c935

Browse files
DelloStrittoLuigi Dello Stritto
andauthored
[PWGHF] Apply event selection before filling the hGenCollisionCent histo (AliceO2Group#9333)
Co-authored-by: Luigi Dello Stritto <[email protected]>
1 parent edf22a0 commit b27c935

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,13 @@ 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) {
434-
hGenCollisionsCent->Fill(mcCollision.centFT0M());
436+
if (!TESTBIT(rejectionMask, EventRejection::TimeFrameBorderCut) && !TESTBIT(rejectionMask, EventRejection::ItsRofBorderCut) && !TESTBIT(rejectionMask, EventRejection::PositionZ)) {
437+
hGenCollisionsCent->Fill(mcCollision.centFT0M());
438+
}
435439
}
436-
hParticles->Fill(EventRejection::None);
437440

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

0 commit comments

Comments
 (0)