--- PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.cpp 2011/11/30 17:03:59 1.1 +++ PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.cpp 2011/11/30 17:03:59 1.1.2.1 @@ -0,0 +1,28 @@ +/* + * TrkDeflCut.cpp + * + * Created on: 14-sep-2010 + * Author: Nicola Mori + */ + +/*! @file TrkDeflCut.cpp The TrkDeflCut class implementation file */ + +#include "TrkDeflCut.h" + +int TrkDeflCut::Check(PamLevel2 *event) { + + float defl = event->GetTrack(0)->GetTrkTrack()->GetDeflection(); + + if (_discardBelow) { + if (defl < _thrDeflection) { + return 0; + } + } + else { + if (defl > _thrDeflection) { + return 0; + } + } + + return CUTOK; +}