8#include <tracking/trackFindingCDC/findlets/complete/TrackFinder.h>
10#include <framework/core/ModuleParamList.templateDetails.h>
11#include <framework/core/ModuleParam.h>
16using namespace TrackFindingCDC;
37 const std::string prefix =
"";
43 moduleParamList.
getParameter<std::string>(
"flightTimeEstimation").setDefaultValue(
"outwards");
51 std::vector<std::string> corrections({
"B2B"});
52 moduleParamList.
getParameter<std::vector<std::string>>(
"corrections")
53 .setDefaultValue(corrections);
61 std::vector<std::string> corrections({
"LayerBreak",
"OneSuperlayer",
"Small"});
62 moduleParamList.
getParameter<std::vector<std::string>>(
"corrections")
63 .setDefaultValue(corrections);
69 return "Combined track finder using the global legendre finder as well as the cellular automaton "
81 "Also run the segment linking track finder and combine results.",
88 std::vector<CDCWireHit> m_wireHits;
89 std::vector<CDCWireHitCluster> m_clusters;
90 std::vector<CDCWireHitCluster> m_superClusters;
91 std::vector<CDCSegment2D> m_segments;
92 std::vector<CDCTrack> m_axialTracks;
93 std::vector<CDCTrack> m_tracks;
94 m_wireHits.reserve(2000);
95 m_clusters.reserve(200);
96 m_superClusters.reserve(100);
97 m_segments.reserve(200);
98 m_axialTracks.reserve(30);
115 m_tracks.swap(m_axialTracks);
The Module parameter list class.
void apply(const std::vector< CDCWireHit > &wireHits, std::vector< CDCTrack > &tracks)
Main method to apply the track finding.
void apply(std::vector< CDCWireHit > &inputWireHits, std::vector< CDCWireHitCluster > &clusters, std::vector< CDCWireHitCluster > &superClusters) final
Generates the segment from wire hits.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
void apply(std::vector< CDCWireHitCluster > &clusters, std::vector< CDCSegment2D > &outputSegments) final
Generates the segment from wire hits.
void apply(std::vector< CDCSegment2D > &segments, std::vector< CDCTrack > &tracks) override
Try to combine the segments and the tracks.
void apply(std::vector< CDCWireHit > &inputWireHits, std::vector< CDCTrack > &tracks) final
Generates the segment from wire hits.
void apply(const std::vector< CDCTrack > &inputTracks, const std::vector< CDCTrack > &secondInputTracks, std::vector< CDCTrack > &tracks) final
Main algorithm.
void apply(const std::vector< CDCSegment2D > &segments, std::vector< CDCTrack > &tracks) final
Main algorithm.
void apply(std::vector< CDCTrack > &tracks) final
Write give tracks into track store array.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCTrack > &tracks) final
Generates the tracks from segments.
SegmentFinderFacetAutomaton m_segmentFinderFacetAutomaton
First stage cellular automaton segment finder.
TrackExporter m_trackExporter
Exports the generated CDCTracks as RecoTracks.
TrackFinder()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
WireHitPreparer m_wireHitPreparer
Preparation findlet creating the wire hits from the packed CDCHits.
SegmentTrackCombiner m_segmentTrackCombiner
Join the matching segments into the tracks.
std::string getDescription() override
Short description of the findlet.
TrackCreatorSingleSegments m_trackCreatorSingleSegments
Add tracks from the first super layer that are contained with in the first super layer.
AxialTrackFinderLegendre m_axialTrackFinderLegendre
Axial track finder.
TrackCombiner m_trackCombiner
Combine the tracks from the global search with the tracks from the local search.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
TrackFinderSegmentPairAutomaton m_trackFinderSegmentPairAutomaton
Second stage cellular automaton track finder from segments.
TrackQualityAsserter m_trackQualityAsserter
Improve the quality of the axial tracks.
void apply() final
Execute the findlet.
ClusterPreparer m_clusterPreparer
Preparation findlet creating the clusters wire hits forming locally connected groups.
bool m_param_withCA
Parameter: Activate the combination of the local segment linking.
TrackQualityAsserter m_finalTrackQualityAsserter
Final track quality assertions.
StereoHitFinder m_stereoHitFinder
Associate the stereo hits that best match to the axial tracks.
void apply(std::vector< CDCTrack > &tracks) final
Main function to clean up the tracks.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void apply(std::vector< CDCWireHit > &outputWireHits) final
Main function preparing the wire hits.
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.