Skip to content

Commit 4ae732a

Browse files
author
Francesco Mazzaschi
committed
remove redundant check
1 parent be70ea7 commit 4ae732a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,18 +1141,16 @@ void AODProducerWorkflowDPL::fillMCTrackLabelsTable(MCTrackLabelCursorType& mcTr
11411141
}
11421142
if (trackIndex.includesDet(DetID::ITS)) {
11431143
auto itsGID = data.getITSContributorGID(trackIndex);
1144-
if (itsGID.isIndexSet()) {
1145-
auto itsSource = itsGID.getSource();
1146-
if (itsSource == GIndex::ITS) {
1147-
auto& itsTrack = data.getITSTrack(itsGID);
1148-
for (unsigned int iL = 0; iL < 7; ++iL) {
1149-
if (itsTrack.isFakeOnLayer(iL)) {
1150-
labelHolder.labelMask |= (0x1 << iL);
1151-
}
1144+
auto itsSource = itsGID.getSource();
1145+
if (itsSource == GIndex::ITS) {
1146+
auto& itsTrack = data.getITSTrack(itsGID);
1147+
for (unsigned int iL = 0; iL < 7; ++iL) {
1148+
if (itsTrack.isFakeOnLayer(iL)) {
1149+
labelHolder.labelMask |= (0x1 << iL);
11521150
}
1153-
} else if (itsSource == GIndex::ITSAB) {
1154-
labelHolder.labelMask |= (data.getTrackMCLabel(itsGID).isFake() << 12);
11551151
}
1152+
} else if (itsSource == GIndex::ITSAB) {
1153+
labelHolder.labelMask |= (data.getTrackMCLabel(itsGID).isFake() << 12);
11561154
}
11571155
}
11581156

0 commit comments

Comments
 (0)