Skip to content

Commit 1f531dd

Browse files
committed
histo check
1 parent 53f1bc2 commit 1f531dd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

PWGJE/TableProducer/slimTablesProducer.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ struct SlimTablesProducer {
192192
return;
193193
}
194194
histos.fill(HIST("h_mcCollMCP_counts_weight"), 0.5, eventWeightMC);
195-
if (std::abs(mccollision.posZ()) > vertexZCut)
196-
histos.fill(HIST("h_mcCollMCP_counts_weight"), 1.5, eventWeightMC);
195+
if (std::abs(mccollision.posZ()) > vertexZCut) {
196+
return;
197+
}
198+
histos.fill(HIST("h_mcCollMCP_counts_weight"), 1.5, eventWeightMC);
197199
if (!jetderiveddatautilities::selectCollision(mccollision, eventSelectionBits, skipMBGapEvents, applyRCTSelections)) {
198200
return;
199201
}

0 commit comments

Comments
 (0)