--- PamCut/TrkCuts/TrkChi2XDeflTimeCut/TrkChi2XDeflTimeCut.cpp 2009/11/12 15:56:52 1.1 +++ PamCut/TrkCuts/TrkChi2XDeflTimeCut/TrkChi2XDeflTimeCut.cpp 2015/03/25 17:38:09 1.2 @@ -8,5 +8,6 @@ #include "TrkChi2XDeflTimeCut.h" double TrkChi2XDeflTimeCut::_GetChi2(PamLevel2 *event){ - return event->GetTrack(0)->GetTrkTrack()->GetChi2X(); +// return event->GetTrack(0)->GetTrkTrack()->GetChi2X(); + return (event->GetNTracks(_trkAlg)<=0 ? -1. : event->GetTrack(0,_trkAlg)->GetExtTrack()->GetChi2X()); }