9#include <tracking/ckf/svd/findlets/CKFToSVDFindlet.h>
11#include <tracking/ckf/general/findlets/SpacePointTagger.icc.h>
12#include <tracking/ckf/general/findlets/StateCreatorWithReversal.icc.h>
13#include <tracking/ckf/general/findlets/StateCreator.icc.h>
14#include <tracking/ckf/general/findlets/CKFRelationCreator.icc.h>
15#include <tracking/ckf/general/findlets/TreeSearcher.icc.h>
16#include <tracking/ckf/general/findlets/OverlapResolver.icc.h>
17#include <tracking/ckf/general/findlets/StateRejecter.icc.h>
18#include <tracking/ckf/general/findlets/ResultStorer.icc.h>
19#include <tracking/ckf/general/utilities/Helpers.h>
21#include <tracking/trackFindingCDC/filters/base/ChooseableFilter.icc.h>
22#include <tracking/ckf/svd/filters/relations/LayerSVDRelationFilter.icc.h>
24#include <framework/core/ModuleParamList.h>
27using namespace TrackFindingCDC;
59 "Minimal Hit requirement for the results (counted in space points)",
62 moduleParamList->
getParameter<std::string>(
"firstHighFilter").setDefaultValue(
"mva_with_direction_check");
63 moduleParamList->
getParameter<std::string>(
"advanceHighFilter").setDefaultValue(
"advance");
64 moduleParamList->
getParameter<std::string>(
"secondHighFilter").setDefaultValue(
"mva");
65 moduleParamList->
getParameter<std::string>(
"updateHighFilter").setDefaultValue(
"fit");
66 moduleParamList->
getParameter<std::string>(
"thirdHighFilter").setDefaultValue(
"mva");
68 moduleParamList->
getParameter<std::string>(
"filter").setDefaultValue(
"mva");
70 moduleParamList->
getParameter<std::string>(
"hitFilter").setDefaultValue(
"sensor");
71 moduleParamList->
getParameter<std::string>(
"seedFilter").setDefaultValue(
"all");
72 moduleParamList->
getParameter<std::string>(
"preSeedFilter").setDefaultValue(
"loose");
73 moduleParamList->
getParameter<std::string>(
"preHitFilter").setDefaultValue(
"loose");
75 moduleParamList->
getParameter<std::string>(
"hitsSpacePointsStoreArrayName").setDefaultValue(
"SVDSpacePoints");
77 moduleParamList->
getParameter<
bool>(
"useAssignedHits").setDefaultValue(
false);
92 checkResizeClear<CKFToSVDState>(
m_states, 40000);
94 checkResizeClear<TrackFindingCDC::WeightedRelation<CKFToSVDState>>(
m_relations, 100000);
115 B2DEBUG(29,
"Created " <<
m_relations.size() <<
" relations.");
118 B2DEBUG(29,
"Having found " <<
m_results.size() <<
" results before overlap check");
123 TrackFindingCDC::erase_remove_if(
m_results, hasLowHitNumber);
Object for temporary storage of a CKF tree search result.
std::vector< CKFToSVDResult > m_filteredResults
Vector for storing the filtered results.
unsigned int m_param_minimalHitRequirement
Minimal hit requirement for the results (counted in number of space points)
ResultStorer< CKFToSVDResult > m_resultStorer
Findlet for storing the results.
SpacePointTagger< CKFToSVDResult, SVDCluster > m_spacePointTagger
Findlet for tagging the used space points.
std::vector< CKFToSVDState > m_states
States for the hits.
TrackLoader m_dataHandler
Findlet for retrieving the cdc tracks and writing the result out.
std::vector< const SpacePoint * > m_spacePointVector
Pointers to the (const) SpacePoints as a vector.
TreeSearcher< CKFToSVDState, SVDStateRejecter, CKFToSVDResult > m_treeSearchFindlet
Findlet doing the main work: the tree finding.
StateCreatorWithReversal< CKFToSVDState > m_stateCreatorFromTracks
Findlet for creating states out of tracks.
~CKFToSVDFindlet() override
Default destructor.
SpacePointLoader m_hitsLoader
Findlet for loading the space points.
std::vector< RecoTrack * > m_cdcRecoTrackVector
Pointers to the CDC Reco tracks as a vector.
OverlapResolver< ChooseableSVDResultFilter > m_overlapResolver
Findlet for resolving overlaps.
std::vector< CKFToSVDResult > m_results
Vector for storing the results.
CKFRelationCreator< CKFToSVDState, ChooseableSVDRelationFilter > m_relationCreator
Findlet for creating relations between states.
void beginEvent() override
Clear the object pools.
std::vector< CKFToSVDState > m_seedStates
States for the tracks.
CKFToSVDFindlet()
Constructor, for setting module description and parameters.
StateCreator< const SpacePoint, CKFToSVDState > m_stateCreatorFromHits
Findlet for creating states out of hits.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void apply() override
Do the track/hit finding/merging.
std::vector< TrackFindingCDC::WeightedRelation< CKFToSVDState > > m_relations
Relations between states.
The Module parameter list class.
void apply(std::vector< const SpacePoint * > &spacePoints) final
Do the space point retrieval.
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.
void beginEvent() override
Receive and dispatch signal for the start of a new event.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Forward prefixed parameters of this findlet to the module parameter list.
void apply(std::vector< RecoTrack * > &seeds) override
Load in the reco tracks and the hits.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.
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.