Belle II Software  release-05-01-25
ClusterPreparer.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/findlets/combined/ClusterPreparer.h>
11 
12 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
13 
14 using namespace Belle2;
15 using namespace TrackFindingCDC;
16 
18 {
22 }
23 
25 {
26  return "Clusters the wire hits in the CDC to form locally connected groups with two granularities.";
27 }
28 
29 void ClusterPreparer::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
30 {
31  m_superClusterCreator.exposeParameters(moduleParamList, prefixed(prefix, "SuperCluster"));
32  m_clusterRefiner.exposeParameters(moduleParamList, prefix);
33  m_clusterBackgroundDetector.exposeParameters(moduleParamList, prefixed(prefix, "Cluster"));
34 }
35 
36 void ClusterPreparer::apply(std::vector<CDCWireHit>& inputWireHits,
37  std::vector<CDCWireHitCluster>& clusters,
38  std::vector<CDCWireHitCluster>& superClusters)
39 {
40  clusters.reserve(100);
41  superClusters.reserve(50);
42 
43  m_superClusterCreator.apply(inputWireHits, superClusters);
44  m_clusterRefiner.apply(superClusters, clusters);
46 }
Belle2::TrackFindingCDC::ClusterBackgroundDetector::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: ClusterBackgroundDetector.cc:31
Belle2::TrackFindingCDC::ClusterBackgroundDetector::apply
void apply(std::vector< CDCWireHitCluster > &outputClusters) final
Main algorithm applying the cluster background detection.
Definition: ClusterBackgroundDetector.cc:37
Belle2::TrackFindingCDC::CompositeProcessingSignalListener::addProcessingSignalListener
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Definition: CompositeProcessingSignalListener.cc:57
Belle2::TrackFindingCDC::ClusterPreparer::m_clusterBackgroundDetector
ClusterBackgroundDetector m_clusterBackgroundDetector
Marks the clusters as background.
Definition: ClusterPreparer.h:69
Belle2::TrackFindingCDC::ClusterRefiner::apply
void apply(const std::vector< CDCWireHitCluster > &inputSuperClusters, std::vector< CDCWireHitCluster > &outputClusters) final
Main algorithm applying the cluster refinement.
Definition: ClusterRefiner.h:69
Belle2::TrackFindingCDC::ClusterPreparer::ClusterPreparer
ClusterPreparer()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
Definition: ClusterPreparer.cc:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::ClusterRefiner::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: ClusterRefiner.h:63
Belle2::TrackFindingCDC::ClusterPreparer::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: ClusterPreparer.cc:24
Belle2::TrackFindingCDC::ClusterPreparer::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: ClusterPreparer.cc:29
Belle2::TrackFindingCDC::ClusterPreparer::m_clusterRefiner
ClusterRefiner< BridgingWireHitRelationFilter > m_clusterRefiner
Creates the clusters from super clusters.
Definition: ClusterPreparer.h:66
Belle2::TrackFindingCDC::SuperClusterCreator::apply
void apply(std::vector< CDCWireHit > &inputWireHits, std::vector< CDCWireHitCluster > &outputSuperClusters) final
Main algorithm applying the cluster refinement.
Definition: SuperClusterCreator.cc:50
Belle2::TrackFindingCDC::SuperClusterCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SuperClusterCreator.cc:40
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::ClusterPreparer::m_superClusterCreator
SuperClusterCreator m_superClusterCreator
Composes the super clusters.
Definition: ClusterPreparer.h:63
Belle2::TrackFindingCDC::ClusterPreparer::apply
void apply(std::vector< CDCWireHit > &inputWireHits, std::vector< CDCWireHitCluster > &clusters, std::vector< CDCWireHitCluster > &superClusters) final
Generates the segment from wire hits.
Definition: ClusterPreparer.cc:36