10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
12#include <tracking/trackFindingCDC/filters/wireHitRelation/WholeWireHitRelationFilter.h>
14#include <tracking/trackFindingCDC/eventdata/segments/CDCWireHitCluster.h>
15#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
17#include <tracking/trackFindingCDC/ca/Clusterizer.h>
19#include <tracking/trackFindingCDC/filters/base/RelationFilterUtil.h>
21#include <tracking/trackFindingCDC/utilities/Algorithms.h>
31 namespace TrackFindingCDC {
34 template <
class AWireHitRelationFilter = WholeWireHitRelationFilter>
50 return "Groups the wire hits into super by expanding the given wire hit relation";
55 void apply(std::vector<CDCWireHit>& inputWireHits,
56 std::vector<CDCWireHitCluster>& outputClusters)
final {
59 const std::vector<CDCWireHit*> wireHitPtrs = as_pointers<CDCWireHit>(inputWireHits);
65 B2ASSERT(
"Expect wire hit neighborhood to be symmetric ",
Refines the clustering of wire hits from clusters to clusters.
void apply(std::vector< CDCWireHit > &inputWireHits, std::vector< CDCWireHitCluster > &outputClusters) final
Main algorithm applying the cluster refinement.
std::vector< WeightedRelation< CDCWireHit > > m_wireHitRelations
Memory for the wire hit neighborhood in a cluster.
AWireHitRelationFilter m_wireHitRelationFilter
Wire hit neighborhood relation filter.
std::string getDescription() final
Short description of the findlet.
Clusterizer< CDCWireHit, CDCWireHitCluster > m_wirehitClusterizer
Instance of the hit cluster generator.
ClusterCreator()
Constructor adding the filter as a subordinary processing signal listener.
Implementation of the clustering Clusters elements of a given collection using the relations presente...
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Abstract base class for different kinds of events.
static void appendUsing(ARelationFilter &relationFilter, const std::vector< AObject * > &froms, const std::vector< AObject * > &tos, std::vector< WeightedRelation< AObject > > &weightedRelations, unsigned int maximumNumberOfRelations=std::numeric_limits< unsigned int >::max())
Appends relations between elements in the given AItems using the ARelationFilter.
Utility structure with functions related to weighted relations.