From ebb74a59e288b873598c8aa4eafe9fdc58017c11 Mon Sep 17 00:00:00 2001 From: jklein Date: Wed, 25 Jun 2014 21:25:23 +0200 Subject: [PATCH] ALIROOT-5502 Porting request for 7bee211: add protection against invalid sector/stack information in on-line track matching ALIROOT-5495 --- TRD/AliTRDonlineTrackMatching.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TRD/AliTRDonlineTrackMatching.cxx b/TRD/AliTRDonlineTrackMatching.cxx index 91ed2784c8f..dc63462faf6 100644 --- a/TRD/AliTRDonlineTrackMatching.cxx +++ b/TRD/AliTRDonlineTrackMatching.cxx @@ -481,6 +481,10 @@ Bool_t AliTRDonlineTrackMatching::ProcessEvent(AliESDEvent *esdEvent, Bool_t upd (trdTrack->GetLabel() != label)) continue; + if ((trdTrack->GetSector() < 0) || (trdTrack->GetSector() > 17) || + (trdTrack->GetStack() < 0) || (trdTrack->GetStack() > 4)) + continue; + stack = TrdSecSiLsi(trdTrack->GetSector(), trdTrack->GetStack()); trdPt = (esdEvent->GetMagneticField() > 0.) ? (-1.*trdTrack->Pt()) : trdTrack->Pt(); matchTrack = NULL;