10#include <tracking/trackFindingCDC/utilities/CompositeProcessingSignalListener.h>
12#include <tracking/trackFindingCDC/utilities/Named.h>
13#include <tracking/trackFindingCDC/utilities/MayBePtr.h>
15#include <RtypesCore.h>
26 namespace TrackFindingCDC {
32 template<
class AObject>
67 virtual std::vector<Named<Float_t*> >
getNamedVariables(
const std::string& prefix __attribute__((unused)))
75 const std::string prefix =
"";
83 std::map<std::string, Float_t>
getNamedValues(
const std::string& prefix)
const
85 std::map<std::string, Float_t> result;
88 Float_t* variable = namedVariable;
89 result[namedVariable.getName()] = *variable;
97 const std::string prefix =
"";
105 virtual MayBePtr<Float_t>
find(
const std::string& varName)
109 if (namedVariable.getName() == varName) {
110 Float_t* variable = namedVariable;
Generic class that generates some named float values from a given object.
virtual MayBePtr< Float_t > find(const std::string &varName)
Pointer to the variable with the given name.
std::map< std::string, Float_t > getNamedValues() const
Getter for a map of names to float values.
AObject Object
Object type from which variables shall be extracted.
virtual std::vector< Named< Float_t * > > getNamedVariables(const std::string &prefix)
Getter for the named references to the individual variables Base implementation returns empty vector.
virtual ~BaseVarSet()=default
Making destructor virtual.
std::map< std::string, Float_t > getNamedValues(const std::string &prefix) const
Getter for a map of names to float values.
virtual bool extract(const Object *obj)
Main method that extracts the variable values from the complex object.
std::vector< Named< Float_t * > > getNamedVariables()
Getter for the named references to the individual variables.
bool extract(const Object &obj)
Method for extraction from an object instead of a pointer.
Partial implementation for an algorithm part that wants to dispatch processing signals to subobjects.
A mixin class to attach a name to an object.
Abstract base class for different kinds of events.