Skip to content

Commit 296fcfb

Browse files
committed
minor enhancement
1 parent 48805af commit 296fcfb

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

PWGHF/TableProducer/derivedDataCreatorDstarToD0Pi.cxx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,9 @@ struct HfDerivedDataCreatorDstarToD0Pi {
137137
nTpcClsMin = 1000;
138138

139139
for (const auto& track : prongTracks) {
140-
if (std::abs(track.eta()) < etaMin) {
141-
etaMin = std::abs(track.eta());
142-
}
143-
if (track.itsNCls() < nItsClsMin) {
144-
nItsClsMin = track.itsNCls();
145-
}
146-
if (track.tpcNClsCrossedRows() < nTpcClsMin) {
147-
nTpcClsMin = track.tpcNClsCrossedRows();
148-
}
140+
etaMin = std::min(etaMin, std::abs(track.eta()));
141+
nItsClsMin = std::min(nItsClsMin, static_cast<int>(track.itsNCls()));
142+
nTpcClsMin = std::min(nTpcClsMin, static_cast<int>(track.tpcNClsCrossedRows()));
149143
}
150144
}
151145

0 commit comments

Comments
 (0)