![]() |
Belle II Software release-09-00-03
|
Filter can delegate to a filter chosen and set up at run time by parameters. More...
#include <ChooseableFilter.dcl.h>


Public Types | |
| using | Object = typename AFilter::Object |
| Type of the object to be analysed. | |
Public Member Functions | |
| Chooseable (std::unique_ptr< FilterFactory< AFilter > > filterFactory) | |
| Setup the chooseable filter with available choices from the factory. | |
| Chooseable (std::unique_ptr< FilterFactory< AFilter > > filterFactory, const std::string &filterName) | |
| Setup the chooseable filter with available choices from the factory and a default name. | |
| void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) final |
| Expose the set of parameters of the filter to the module parameter list. | |
| void | initialize () override |
| Initialize before event processing. | |
| bool | needsTruthInformation () override |
| Indicates if the filter requires Monte Carlo information. | |
| Weight | operator() (const Object &object) final |
| Function to evaluate the object. | |
| Weight | operator() (const Object &object) const |
| Const version of operator. | |
| virtual std::vector< float > | operator() (const std::vector< Object * > &objs) override |
| Evaluate the MVA method over a vector of objects. Returns float weight or NAN (when object is rejected) for each object. | |
| std::string | getFilterName () const |
| Return name of the selected filter. | |
Private Types | |
| using | Super = AFilter |
| Type of the base class. | |
Private Attributes | |
| std::string | m_param_filterName |
| Parameters : Name of the selected filter. | |
| FilterParamMap | m_param_filterParameters |
| Parameter: Parameter keys and values to be forwarded to the chosen filter. | |
| std::unique_ptr< FilterFactory< AFilter > > | m_filterFactory |
| Filter factor to construct a chosen filter. | |
| std::unique_ptr< AFilter > | m_filter |
| Chosen filter. | |
Filter can delegate to a filter chosen and set up at run time by parameters.
Definition at line 32 of file ChooseableFilter.dcl.h.
| using Object = typename AFilter::Object |
Type of the object to be analysed.
Definition at line 40 of file ChooseableFilter.dcl.h.
|
private |
Type of the base class.
Definition at line 36 of file ChooseableFilter.dcl.h.
|
explicit |
Setup the chooseable filter with available choices from the factory.
Definition at line 29 of file ChooseableFilter.icc.h.
| Chooseable | ( | std::unique_ptr< FilterFactory< AFilter > > | filterFactory, |
| const std::string & | filterName | ||
| ) |
Setup the chooseable filter with available choices from the factory and a default name.
Definition at line 38 of file ChooseableFilter.icc.h.
|
final |
Expose the set of parameters of the filter to the module parameter list.
Make a force parameter in case no default was given
Make a normal parameter in case default is known
Definition at line 48 of file ChooseableFilter.icc.h.
|
inline |
Return name of the selected filter.
Definition at line 77 of file ChooseableFilter.dcl.h.
|
override |
Initialize before event processing.
Transfer parameters
Definition at line 70 of file ChooseableFilter.icc.h.
|
override |
Indicates if the filter requires Monte Carlo information.
Definition at line 88 of file ChooseableFilter.icc.h.
| Weight operator() | ( | const Object & | object | ) | const |
Const version of operator.
Definition at line 100 of file ChooseableFilter.icc.h.
|
final |
Function to evaluate the object.
Delegates to the filter chosen by module parameters.
| object | The object to be accepted or rejected. |
Definition at line 94 of file ChooseableFilter.icc.h.
|
overridevirtual |
Evaluate the MVA method over a vector of objects. Returns float weight or NAN (when object is rejected) for each object.
Definition at line 106 of file ChooseableFilter.icc.h.
|
private |
Chosen filter.
Definition at line 94 of file ChooseableFilter.dcl.h.
|
private |
Filter factor to construct a chosen filter.
Definition at line 91 of file ChooseableFilter.dcl.h.
|
private |
Parameters : Name of the selected filter.
Definition at line 84 of file ChooseableFilter.dcl.h.
|
private |
Parameter: Parameter keys and values to be forwarded to the chosen filter.
Definition at line 87 of file ChooseableFilter.dcl.h.