--- PamCut/TrkCuts/TrkDedxNucleiCut/TrkDedxNucleiCut.cpp 2010/07/08 14:00:26 1.2 +++ PamCut/TrkCuts/TrkDedxNucleiCut/TrkDedxNucleiCut.cpp 2015/03/25 17:38:09 1.3 @@ -11,7 +11,9 @@ int TrkDedxNucleiCut::Check(PamLevel2 *event) { - TrkTrack *track = event->GetTrack(0)->GetTrkTrack(); +// TrkTrack *track = event->GetTrack(0)->GetTrkTrack(); + if(event->GetNTracks(_trkAlg)==0)return 0; + ExtTrack *track = event->GetTrack(0,_trkAlg)->GetExtTrack(); float R = track->GetRigidity(); float dEdx = track->GetDEDX();