10#include <tracking/trackFindingCDC/filters/base/FilterFactory.fwd.h>
12#include <tracking/trackFindingCDC/filters/base/FilterParamMap.h>
14#include <tracking/trackFindingCDC/numerics/Weight.h>
27 class ModuleParamList;
29 namespace TrackFindingCDC {
31 template <
class AFilter>
40 using Object =
typename AFilter::Object;
48 const std::string& filterName);
73 virtual std::vector<float>
operator()(
const std::vector <Object*>& objs)
override;
102 template <
class AFilterFactory>
104 :
public Chooseable<typename AFilterFactory::CreatedFilter> {
The Module parameter list class.
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
ChooseableFilter()
Constructor of the chooseable filter.
Filter can delegate to a filter chosen and set up at run time by parameters.
void initialize() override
Initialize before event processing.
std::unique_ptr< FilterFactory< AFilter > > m_filterFactory
Filter factor to construct a chosen filter.
bool needsTruthInformation() override
Indicates if the filter requires Monte Carlo information.
AFilter Super
Type of the base class.
std::unique_ptr< AFilter > m_filter
Chosen filter.
std::string m_param_filterName
Parameters : Name of the selected filter.
std::string getFilterName() const
Return name of the selected filter.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
typename AFilter::Object Object
Type of the object to be analysed.
Weight operator()(const Object &object) final
Function to evaluate the object.
FilterParamMap m_param_filterParameters
Parameter: Parameter keys and values to be forwarded to the chosen filter.
Factory that can create appropriate filter instances from a name.
Variant of types allowed to be forwarded to a filter selected at runtime.
Abstract base class for different kinds of events.