--- PamCut/TrkCuts/TrkChi2DeflTimeCut/TrkChi2DeflTimeCut.cpp 2009/10/23 15:34:31 1.1 +++ PamCut/TrkCuts/TrkChi2DeflTimeCut/TrkChi2DeflTimeCut.cpp 2009/11/12 16:41:43 1.2 @@ -7,9 +7,13 @@ #include "TrkChi2DeflTimeCut.h" +double TrkChi2DeflTimeCut::_GetChi2(PamLevel2 *event){ + return event->GetTrack(0)->GetTrkTrack()->chi2; +} + int TrkChi2DeflTimeCut::Check(PamLevel2 *event) { - Double_t chi2 = event->GetTrack(0)->GetTrkTrack()->chi2; + double chi2 = _GetChi2(event); if (chi2 < 0.) return 0; Double_t eta2 = event->GetTrack(0)->GetTrkTrack()->GetDeflection(); //Sign doesn't matter