File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Detectors/GlobalTracking/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -515,6 +515,8 @@ bool MatchTPCITS::prepareTPCData()
515515// _____________________________________________________
516516bool MatchTPCITS::prepareITSData ()
517517{
518+ static size_t errCount = 0 ;
519+ constexpr size_t MaxErrors2Report = 10 ;
518520 // Do preparatory work for matching
519521 mTimer [SWPrepITS].Start (false );
520522 const auto & inp = *mRecoCont ;
@@ -555,6 +557,12 @@ bool MatchTPCITS::prepareITSData()
555557 for (int irof = 0 ; irof < nROFs; irof++) {
556558 const auto & rofRec = mITSTrackROFRec [irof];
557559 int nBC = rofRec.getBCData ().differenceInBC (mStartIR );
560+ if (nBC < 0 ) {
561+ if (++errCount < MaxErrors2Report) {
562+ LOG (ERROR) << " ITS ROF start " << rofRec.getBCData () << " precedes TF 1st orbit " << mStartIR ;
563+ }
564+ continue ;
565+ }
558566 float tMin = nBC * o2::constants::lhc::LHCBunchSpacingMUS;
559567 float tMax = (nBC + mITSROFrameLengthInBC ) * o2::constants::lhc::LHCBunchSpacingMUS;
560568 if (!mITSTriggered ) {
You can’t perform that action at this time.
0 commit comments