message: Add check for wrong layer index
diff: @@ -86,6 +86,10 @@ AliHLTTRDTrack::AliHLTTRDTrack(AliExternalTrackParam& t ) throw (const Char_t *)
  Int_t AliHLTTRDTrack::GetTracklet(Int_t iLayer) const
  {
  + if (iLayer < 0 || iLayer > 5) {
  + Error("GetTracklet", "illegal layer number %i", iLayer);
  + return -1;
  + }
  if (fAttachedTracklets[iLayer] == -1) {
  return -1;
  }
  