Skip to content

Commit 276a2d1

Browse files
Fix for processing MC
1 parent 4ce2489 commit 276a2d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ struct AnalysisMuonSelection {
961961

962962
for (auto& assoc : assocs) {
963963
auto event = assoc.template reducedevent_as<TEvents>();
964-
if (!event.isEventSelected_bit(0)) {
964+
if (!event.has_reducedMCevent() || !event.isEventSelected_bit(0)) { // condition on reducedMCevent to avoid rec. events with no generated event
965965
muonSel(0);
966966
continue;
967967
}
@@ -1824,7 +1824,7 @@ struct AnalysisSameEventPairing {
18241824
constexpr bool trackHasCov = ((TTrackFillMap & VarManager::ObjTypes::ReducedTrackBarrelCov) > 0);
18251825

18261826
for (auto& event : events) {
1827-
if (!event.isEventSelected_bit(0)) {
1827+
if (!event.has_reducedMCevent() || !event.isEventSelected_bit(0)) { // condition on reducedMCevent to avoid rec. events with no generated event
18281828
continue;
18291829
}
18301830
uint8_t evSel = event.isEventSelected_raw();

0 commit comments

Comments
 (0)