Skip to content

Commit 0899a24

Browse files
committed
Insert check for MC track for both leptons
1 parent d3c2e47 commit 0899a24

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,6 +3730,9 @@ struct AnalysisDileptonTrack {
37303730
// get full track info of tracks based on the index
37313731
auto lepton1 = tracks.rawIteratorAt(dilepton.index0Id());
37323732
auto lepton2 = tracks.rawIteratorAt(dilepton.index1Id());
3733+
if (!lepton1.has_reducedMCTrack() || !lepton2.has_reducedMCTrack()) {
3734+
continue;
3735+
}
37333736
auto lepton1MC = lepton1.reducedMCTrack();
37343737
auto lepton2MC = lepton2.reducedMCTrack();
37353738
// Check that the dilepton has zero charge

0 commit comments

Comments
 (0)