![]() |
![]() |
#include <V0SvFilter.h>
Public Member Functions | |
bool | operator() (const TransientVertex &) const |
V0SvFilter (double massWindow) | |
~V0SvFilter () | |
Private Attributes | |
double | theK0sMass |
double | theMassWindow |
Definition at line 11 of file V0SvFilter.h.
V0SvFilter::V0SvFilter | ( | double | massWindow | ) |
Definition at line 7 of file V0SvFilter.cc.
: theMassWindow(massWindow) , theK0sMass(0.4976) {}
V0SvFilter::~V0SvFilter | ( | ) | [inline] |
Definition at line 17 of file V0SvFilter.h.
{};
bool V0SvFilter::operator() | ( | const TransientVertex & | vtx | ) | const |
Definition at line 11 of file V0SvFilter.cc.
References TransientVertex::originalTracks(), theK0sMass, theMassWindow, and funct::true.
{ VertexMass theVertexMass; // only filter if exactly 2 tracks if (vtx.originalTracks().size() != 2) return true; // filter only if they have opposite charge if ( (vtx.originalTracks()[0].charge() * vtx.originalTracks()[1].charge()) != -1 ) return true ; // filter on mass window return (fabs(theVertexMass(vtx)-theK0sMass) > theMassWindow); }
double V0SvFilter::theK0sMass [private] |
Definition at line 25 of file V0SvFilter.h.
Referenced by operator()().
double V0SvFilter::theMassWindow [private] |
Definition at line 23 of file V0SvFilter.h.
Referenced by operator()().