10#include <tracking/trackFindingCDC/filters/base/FilterOnVarSet.dcl.h>
12#include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
14#include <RtypesCore.h>
25 namespace TrackFindingCDC {
31 template <
class AFilter>
40 using Object =
typename AFilter::Object;
74 template <
class ATruthVarSet>
84 using Object =
typename ATruthVarSet::Object;
The Module parameter list class.
Generic class that generates some named float values from a given object.
typename ATruthVarSet::Object Object
Type of the filtered object.
ChoosableFromVarSetFilter(const std::string &varName="")
Constructor.
ChoosableFromVarSet< Filter< typename ATruthVarSet::Object > > Super
Type of the super class.
~ChoosableFromVarSetFilter()
Default destructor.
Weight operator()(const Object &object) override
Returns the variable with the set requested name from the variable set.
void exposeParameters(ModuleParamList *parameterList, const std::string &prefix) override
Add the parameters of this filter to the given parameter list.
void initialize() override
Initialisation method sets up a reference to the value in the variable set to be returned.
OnVarSet< AFilter > Super
Type of the super class.
~ChoosableFromVarSet()
Default destructor.
typename AFilter::Object Object
Type of the filtered object.
std::string m_param_varName
BaseVarSet< Object > AVarSet
Type of the variable set.
ChoosableFromVarSet(std::unique_ptr< AVarSet > varSet, std::string varName="")
Constructor taking the variable set the filter should work on and the default name of the variable to...
OnVarSet(std::unique_ptr< AVarSet > varSet)
Constructor from the variable set the filter should use.
Abstract base class for different kinds of events.