--- PamCut/TrkCuts/TrkRigCut/TrkRigCut.cpp 2009/05/27 13:30:08 1.1 +++ PamCut/TrkCuts/TrkRigCut/TrkRigCut.cpp 2011/05/27 12:44:45 1.2 @@ -11,10 +11,17 @@ int TrkRigCut::Check(PamLevel2 *event) { - TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack(); + float rig = 1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection(); - if (!(1 / (trkTrack->GetDeflection()) > _minRigidity)) { - return 0; + if (_discardBelow) { + if (rig < _thrRigidity) { + return 0; + } + } + else { + if (rig > _thrRigidity) { + return 0; + } } return CUTOK;