Skip to content

Commit cbdde91

Browse files
committed
[PWGJE] Apply event selection to MCP collisions
1 parent eb4d185 commit cbdde91

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

PWGJE/Tasks/jetDsSpecSubs.cxx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -578,18 +578,13 @@ struct JetDsSpecSubs {
578578

579579
// Successfully matched reconstructed collision
580580
registry.fill(HIST("McEffCol"), getValFromBin(BinMCColCntr::Matched));
581-
// Apply standard event selection and vertex cut
582-
// if (!jetderiveddatautilities::selectCollision(collision, eventSelectionBits) ||
583-
// !(std::abs(collision.posZ()) < vertexZCut)) {
584-
// continue;
585-
//}
586-
// Matched collision passing analysis selections
587-
// registry.fill(HIST("McEffCol"), getValFromBin(BinMCColCntr::MatchedSel8ZCut));
588581

589-
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits) &&
590-
std::abs(collision.posZ()) < vertexZCut) {
591-
registry.fill(HIST("McEffCol"), getValFromBin(BinMCColCntr::MatchedSel8ZCut));
582+
// Apply standard event selection and vertex cut
583+
if (!jetderiveddatautilities::selectCollision(collision, eventSelectionBits) || !(std::abs(collision.posZ()) < vertexZCut)) {
584+
continue;
592585
}
586+
// Matched collision passing analysis selections
587+
registry.fill(HIST("McEffCol"), getValFromBin(BinMCColCntr::MatchedSel8ZCut));
593588

594589
// Detector-level Ds-tagged jets associated with the current reconstructed collision
595590
const auto dsmcdJetsPerCollision = mcdjets.sliceBy(jetmcdpreslice, collision.globalIndex());
@@ -651,6 +646,10 @@ struct JetDsSpecSubs {
651646
}
652647
}
653648
// Particle level
649+
650+
if (!jetderiveddatautilities::selectCollision(mccollision, eventSelectionBits) || !(std::abs(mccollision.posZ()) < vertexZCut)){
651+
continue;
652+
}
654653
const auto dsmcpJetsPerMCCollision = mcpjets.sliceBy(jetmcppreslice, mccollision.globalIndex());
655654
for (const auto& mcpjet : dsmcpJetsPerMCCollision) {
656655

0 commit comments

Comments
 (0)