10#include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
12#include <tracking/trackFindingCDC/utilities/Relation.h>
13#include <tracking/trackFindingCDC/utilities/MayBePtr.h>
24 namespace TrackFindingCDC {
26 template <
class ABaseVarSet>
54 return firstExtracted and secondExtracted;
71 result.insert(result.end(), extend.begin(), extend.end());
79 MayBePtr<Float_t>
find(
const std::string& varName)
override
84 std::string varNameWithoutPrefix = varName.substr(
m_firstPrefix.size());
85 MayBePtr<Float_t> found =
m_firstVarSet.find(varNameWithoutPrefix);
86 if (found)
return found;
92 std::string varNameWithoutPrefix = varName.substr(
m_secondPrefix.size());
93 MayBePtr<Float_t> found =
m_secondVarSet.find(varNameWithoutPrefix);
94 if (found)
return found;
Generic class that generates some named float values from a given object.
void initialize() override
Receive and dispatch signal before the start of the event processing.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Generic class that generates the same variables from a each of a pair of instances.
typename ABaseVarSet::Object BaseObject
Object type from which the variables shall be extracted.
ABaseVarSet m_firstVarSet
VarSet for the first element of the set.
void initialize() override
Initialize the variable set before event processing.
bool extract(const Relation< const BaseObject > *obj) override
Main method that extracts the variable values from the complex object.
std::string m_secondPrefix
Prefix for all variable in the variable set of the second element of the pair.
std::vector< Named< Float_t * > > getNamedVariables(const std::string &prefix) override
Getter for the named references to the individual variables Base implementation returns empty vector.
ABaseVarSet m_secondVarSet
VarSet for the second element of the set.
bool extract(const Relation< const BaseObject > &obj)
Method for extraction from an object instead of a pointer.
std::string m_firstPrefix
Prefix for all variable in the variable set of the first element of the pair.
MayBePtr< Float_t > find(const std::string &varName) override
Pointer to the variable with the given name.
Type for two related objects.
Abstract base class for different kinds of events.