10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
12#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
14#include <framework/core/ModuleParamList.h>
15#include <framework/datastore/StoreArray.h>
24 namespace TrackFindingCDC {
31 template <
class IOType>
40 const std::string& classMnemomicName =
"",
41 const std::string& classMnemomicDescription =
"")
65 classMnemomicCapitalName[0] = ::toupper(classMnemomicCapitalName.at(0));
67 moduleParamList->
addParameter(prefixed(prefix, classMnemomicCapitalName +
"sStoreArrayName"),
88 void apply(std::vector<IOType*>& output)
final
93 output.reserve(output.size() + storeArray.
getEntries());
95 for (
auto& item : storeArray) {
97 output.push_back(&item);
The Module parameter list class.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
int getEntries() const
Get the number of objects in the array.
void initialize() override
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Findlet< IOType * > Super
Type of the base class.
void initialize() override
Receive signal before the start of the event processing.
StoreArrayLoader(const std::string &storeArrayName="", const std::string &classMnemomicName="", const std::string &classMnemomicDescription="")
Constructor taking the default name of the store vector which is the source for the import.
std::string getDescription() override
Short description of the findlet.
std::string m_param_storeArrayName
Name of the store vector to be used.
std::string m_classMnemomicDescription
Short description for the type of objects to be written out.
std::string m_classMnemomicName
Short name for the type of objects to be written out.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters to a module.
void apply(std::vector< IOType * > &output) final
Loads the items from the DataStore.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
std::string getClassMnemomicParameterName(const CDCWireHit *dispatchTag)
Returns a short name for class CDCWireHit to be used in names of parameters.
std::string getClassMnemomicParameterDescription(const CDCWireHit *dispatchTag)
Returns a short description for class CDCWireHit to be used in descriptions of parameters.