Skip to content

Commit 1241dc0

Browse files
committed
Make linter happy
1 parent 4473d84 commit 1241dc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Common/Core/CollisionAssociation.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class CollisionAssociation
8080
switch (mTrackSelection) {
8181
case o2::aod::track_association::TrackSelection::CentralBarrelRun2: {
8282
unsigned char itsClusterMap = track.itsClusterMap();
83-
if (!(track.tpcNClsFound() >= 50 && track.flags() & o2::aod::track::ITSrefit && track.flags() & o2::aod::track::TPCrefit && (TESTBIT(itsClusterMap, 0) || TESTBIT(itsClusterMap, 1)))) {
83+
int minTpcNClsFound{50};
84+
if (!(track.tpcNClsFound() >= minTpcNClsFound && track.flags() & o2::aod::track::ITSrefit && track.flags() & o2::aod::track::TPCrefit && (TESTBIT(itsClusterMap, 0) || TESTBIT(itsClusterMap, 1)))) {
8485
hasGoodQuality = false;
8586
}
8687
break;
@@ -199,7 +200,7 @@ class CollisionAssociation
199200
uint64_t collBC = collision.bc().globalBC();
200201

201202
// This is done per block to allow optimization below. Within each block the globalBC increase continously
202-
for (auto& iterationWindow : trackIterationWindows) {
203+
for (const auto& iterationWindow : trackIterationWindows) {
203204
bool iteratorMoved = false;
204205
const bool isAssignedTrackWindow = (iterationWindow.first != iterationWindow.second) ? iterationWindow.first.has_collision() : false;
205206
for (auto trackInWindow = iterationWindow.first; trackInWindow != iterationWindow.second; ++trackInWindow) {

0 commit comments

Comments
 (0)