Skip to content

Commit

Permalink
ALIROOT-5502 Porting request for 7bee211: add protection against inva…
Browse files Browse the repository at this point in the history
…lid sector/stack information in on-line track matching

ALIROOT-5495
  • Loading branch information
qgp authored and hristov committed Jun 30, 2014
1 parent d753556 commit ebb74a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TRD/AliTRDonlineTrackMatching.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebb74a5

Please sign in to comment.