File tree Expand file tree Collapse file tree
Detectors/TPC/workflow/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -979,8 +979,8 @@ class TPCTimeSeries : public Task
979979 const auto dedxQMaxVars = getdEdxVars (1 , track);
980980
981981 // make check to avoid crash in case no or less ITS tracks have been found!
982- const int idxITSTrack = hasITSTPC ? tracksITSTPC[idxITSTPC.front ()].getRefITS ().getIndex () : -1 ;
983- const bool idxITSCheck = (idxITSTrack < tracksITS. size ()) && hasITSTPC ;
982+ const int idxITSTrack = ( hasITSTPC && ( gID == o2::dataformats::GlobalTrackID::Source::ITS)) ? tracksITSTPC[idxITSTPC.front ()].getRefITS ().getIndex () : -1 ;
983+ const bool idxITSCheck = (idxITSTrack != - 1 ) ;
984984
985985 const int nClITS = idxITSCheck ? tracksITS[idxITSTrack].getNClusters () : -1 ;
986986 float chi2ITS = idxITSCheck ? tracksITS[idxITSTrack].getChi2 () : -1 ;
You can’t perform that action at this time.
0 commit comments