8#include <tracking/ckf/svd/findlets/SpacePointLoader.h>
9#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
10#include <tracking/spacePointCreation/SpacePoint.h>
12#include <framework/core/ModuleParamList.templateDetails.h>
14#include <tracking/ckf/general/utilities/ClassMnemomics.h>
28 "Use only already assigned hits",
31 m_storeArrayLoader.exposeParameters(moduleParamList, TrackFindingCDC::prefixed(prefix,
"hits"));
39 const auto hitIsNotAlreadyUsed = [](
const auto & hit) {
40 return not hit->getAssignmentState();
42 TrackFindingCDC::erase_remove_if(spacePoints, hitIsNotAlreadyUsed);
44 const auto hitIsAlreadyUsed = [](
const auto & hit) {
45 return hit->getAssignmentState();
47 TrackFindingCDC::erase_remove_if(spacePoints, hitIsAlreadyUsed);
50 B2DEBUG(29,
"Starting with " << spacePoints.size() <<
" hits.");
The Module parameter list class.
SpacePointLoader()
Add the sub findlet as a listener.
void apply(std::vector< const SpacePoint * > &spacePoints) final
Do the space point retrieval.
TrackFindingCDC::StoreArrayLoader< const SpacePoint > m_storeArrayLoader
Findlet for actually loading the hits.
bool m_param_useAssignedHits
Use only already used hits.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Forward prefixed parameters of this findlet to the module parameter list.
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.