10#include <tracking/trackFindingCDC/filters/base/TruthVarFilter.dcl.h>
12#include <tracking/trackFindingCDC/filters/base/ChoosableFromVarSetFilter.icc.h>
14#include <tracking/trackFindingCDC/numerics/Weight.h>
23 namespace TrackFindingCDC {
25 template <
class ATruthVarSet>
31 template <
class ATruthVarSet>
34 template<
class ATruthVarSet>
36 Weight value = Super::operator()(
object);
37 if (std::isnan(value) or value == 0)
return NAN;
Convince template to create a filter returning on variable from a set of variables.
~TruthVarFilter()
Default destructor.
typename Super::Object Object
Type of the handled object.
TruthVarFilter()
Constructor.
Weight operator()(const Object &object) override
Reject an item if the truth variable is 0, else accept it.
Abstract base class for different kinds of events.