@@ -328,7 +328,7 @@ struct BcSelectionTask {
328328 }
329329
330330 // bc loop
331- for (const auto bc : bcs) {
331+ for (const auto & bc : bcs) {
332332 uint32_t alias{0 };
333333 // workaround for pp2022 (trigger info is shifted by -294 bcs)
334334 int32_t triggerBcId = mapGlobalBCtoBcId[bc.globalBC () + triggerBcShift];
@@ -917,7 +917,7 @@ struct EventSelectionTask {
917917 if (bc.has_foundFT0 ())
918918 vAmpFT0CperColl[colIndex] = bc.foundFT0 ().sumAmpC ();
919919
920- int64_t TFid = (foundGlobalBC - bcSOR) / nBCsPerTF;
920+ int64_t tfId = (foundGlobalBC - bcSOR) / nBCsPerTF;
921921 int64_t rofId = (foundGlobalBC + nBCsPerOrbit - rofOffset) / rofLength;
922922
923923 // ### for in-ROF occupancy
@@ -928,7 +928,7 @@ struct EventSelectionTask {
928928 int64_t thisBC = vFoundGlobalBC[minColIndex];
929929 // check if this is still the same TF
930930 int64_t thisTFid = (thisBC - bcSOR) / nBCsPerTF;
931- if (thisTFid != TFid )
931+ if (thisTFid != tfId )
932932 break ;
933933 // int thisRofIdInTF = (thisBC - rofOffset) / rofLength;
934934 int64_t thisRofId = (thisBC + nBCsPerOrbit - rofOffset) / rofLength;
@@ -944,7 +944,7 @@ struct EventSelectionTask {
944944 while (maxColIndex < cols.size ()) {
945945 int64_t thisBC = vFoundGlobalBC[maxColIndex];
946946 int64_t thisTFid = (thisBC - bcSOR) / nBCsPerTF;
947- if (thisTFid != TFid )
947+ if (thisTFid != tfId )
948948 break ;
949949 int64_t thisRofId = (thisBC + nBCsPerOrbit - rofOffset) / rofLength;
950950 if (thisRofId != rofId)
@@ -961,7 +961,7 @@ struct EventSelectionTask {
961961 int64_t thisBC = vFoundGlobalBC[minColIndex];
962962 // check if this is still the same TF
963963 int64_t thisTFid = (thisBC - bcSOR) / nBCsPerTF;
964- if (thisTFid != TFid )
964+ if (thisTFid != tfId )
965965 break ;
966966 int64_t thisRofId = (thisBC + nBCsPerOrbit - rofOffset) / rofLength;
967967 if (thisRofId == rofId - 1 )
@@ -987,7 +987,7 @@ struct EventSelectionTask {
987987 int64_t thisBC = vFoundGlobalBC[minColIndex];
988988 // check if this is still the same TF
989989 int64_t thisTFid = (thisBC - bcSOR) / nBCsPerTF;
990- if (thisTFid != TFid )
990+ if (thisTFid != tfId )
991991 break ;
992992 float dt = (thisBC - foundGlobalBC) * bcNS; // ns
993993 // check if we are within the chosen time range
@@ -1002,7 +1002,7 @@ struct EventSelectionTask {
10021002 while (maxColIndex < cols.size ()) {
10031003 int64_t thisBC = vFoundGlobalBC[maxColIndex];
10041004 int64_t thisTFid = (thisBC - bcSOR) / nBCsPerTF;
1005- if (thisTFid != TFid )
1005+ if (thisTFid != tfId )
10061006 break ;
10071007 float dt = (thisBC - foundGlobalBC) * bcNS; // ns
10081008 if (dt > timeWinOccupancyCalcMaxNS)
0 commit comments