message: AliFemtoEventReaderAOD - Explicitly set ITS layer indexes
diff: #include "AliExternalTrackParam.h"
  +#include <initializer_list>
  #include <algorithm>
  #include <cassert>
  #include <memory>
  @@ -679,10 +680,8 @@ AliFemtoEvent *AliFemtoEventReaderAOD::CopyAODtoFemtoEvent()
  continue;
  }
  - //loop over the 4 ITS Layrs and check for a hit!
  - for (int i = 0; i < 2; ++i) {
  - //we use layers 0, 1 /OR/ 0, 1, 4, 5
  - // if(i==2 || i==3) i+=2;
  + // loop over 2 ITS layers and check for a hit!
  + for (int i : {0, 1}) {
  if (aodtrackpid->HasPointOnITSLayer(i)) {
  passTrackPileUp = true;
  }
  @@ -944,13 +943,8 @@ AliFemtoEvent *AliFemtoEventReaderAOD::CopyAODtoFemtoEvent()
  passNeg = true;
  }
  - //loop over the 4 ITS Layrs and check for a hit!
  - for (int i = 0; i < 4; ++i) {
  - //checking layers 0, 1, 4, 5
  - if (i == 2 || i == 3) {
  - i += 2;
  - }
  -
  + //loop over the 4 ITS layers and check for a hit!
  + for (int i : {0, 1, 4, 5}) {
  if (daughterTrackPos->HasPointOnITSLayer(i)) {
  passPos = true;
  }
  @@ -1085,12 +1079,8 @@ AliFemtoEvent *AliFemtoEventReaderAOD::CopyAODtoFemtoEvent()
  passBac = true;
  }
  - //loop over the 4 ITS Layrs and check for a hit!
  - for (int i = 0; i < 4; ++i) {
  - if (i == 2 || i == 3) {
  - i += 2; //checking layers 0, 1, 4, 5
  - }
  -
  + //loop over the 4 ITS layers and check for a hit!
  + for (int i : {0, 1, 4, 5}) {
  if (daughterTrackPos->HasPointOnITSLayer(i)) {
  passPos = true;
  }
  