 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/filters/base/FilterOnVarSet.dcl.h>
14 #include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
16 #include <RtypesCore.h>
26 class ModuleParamList;
27 namespace TrackFindingCDC {
33 template <
class AFilter>
34 class ChoosableFromVarSet :
public OnVarSet<AFilter> {
38 using Super = OnVarSet<AFilter>;
42 using Object =
typename AFilter::Object;
76 template <
class ATruthVarSet>
86 using Object =
typename ATruthVarSet::Object;
typename AFilter::Object Object
Type of the filtered object.
void exposeParameters(ModuleParamList *parameterList, const std::string &prefix) override
Add the parameters of this filter to the given parameter list.
Filter adapter to make a filter work on a set of variables and return on variable as the result of th...
~ChoosableFromVarSet()
Default destructor.
Convience template to create a filter returning on variable from a set of variables.
Interface for an algorithm part that needs to receive the module processing signals.
Abstract base class for different kinds of events.
Float_t * m_variable
Reference to the location of the value in the variable set to be returned.
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...
ChoosableFromVarSetFilter(const std::string &varName="")
Constructor.
Weight operator()(const Object &object) override
Returns the variable with the set requested name from the variable set.
~ChoosableFromVarSetFilter()
Default destructor.
void initialize() override
Initialisation method sets up a reference to the value in the variable set to be returned.
The Module parameter list class.
std::string m_param_varName
Memory for the name of the variable selected as the return value of the filter.
OnVarSet< AFilter > Super
Type of the super class.