Belle II Software  release-05-01-25
FacetCreator.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - 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 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <tracking/trackFindingCDC/filters/facet/ChooseableFacetFilter.h>
15 #include <tracking/trackFindingCDC/filters/facet/FeasibleRLFacetFilter.h>
16 #include <tracking/trackFindingCDC/filters/wireHitRelation/BridgingWireHitRelationFilter.h>
17 
18 #include <tracking/trackFindingCDC/eventdata/utils/DriftLengthEstimator.h>
19 
20 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
21 
22 #include <vector>
23 #include <string>
24 
25 namespace Belle2 {
32  namespace TrackFindingCDC {
33  class CDCFacet;
34  class CDCWireHitCluster;
35 
37  class FacetCreator : public Findlet<const CDCWireHitCluster, CDCFacet> {
38 
39  private:
41  using Super = Findlet<const CDCWireHitCluster, CDCFacet>;
42 
43  public:
46 
48  std::string getDescription() final;
49 
51  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
52 
60  void apply(const std::vector<CDCWireHitCluster>& inputClusters, std::vector<CDCFacet>& facets) final;
61 
62  private:
67  void createFacets(const std::vector<CDCWireHit*>& wireHits,
68  const std::vector<WeightedRelation<CDCWireHit> >& wireHitRelations,
69  std::vector<CDCFacet>& facets);
70 
76  void createFacetsForHitTriple(const CDCWireHit& startWireHit,
77  const CDCWireHit& middleWireHit,
78  const CDCWireHit& endWireHit,
79  std::vector<CDCFacet>& facets);
80  private:
82  bool m_param_feasibleRLOnly = true;
83 
85  bool m_param_updateDriftLength = true;
86 
88  bool m_param_leastSquareFit = false;
89 
90  private:
93 
96 
99 
102 
103  private:
106  };
107  }
109 }
Belle2::TrackFindingCDC::FacetCreator::m_param_updateDriftLength
bool m_param_updateDriftLength
Parameter : Switch to reestimate the drift length.
Definition: FacetCreator.h:93
Belle2::TrackFindingCDC::FacetCreator::m_facetFilter
ChooseableFacetFilter m_facetFilter
The filter to be used for the facet generation.
Definition: FacetCreator.h:106
Belle2::TrackFindingCDC::FacetCreator::m_wireHitRelationFilter
BridgingWireHitRelationFilter m_wireHitRelationFilter
The filter for the hit neighborhood.
Definition: FacetCreator.h:100
Belle2::TrackFindingCDC::ChooseableFilter< FacetFilterFactory >
Belle2::TrackFindingCDC::FacetCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: FacetCreator.cc:42
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter
Wire hit relation filter that is compensating for hit inefficiencies.
Definition: BridgingWireHitRelationFilter.h:50
Belle2::TrackFindingCDC::FacetCreator::createFacetsForHitTriple
void createFacetsForHitTriple(const CDCWireHit &startWireHit, const CDCWireHit &middleWireHit, const CDCWireHit &endWireHit, std::vector< CDCFacet > &facets)
Generates reconstruted facets on the three given wire hits by hypothesizing over the 8 left right pas...
Definition: FacetCreator.cc:135
Belle2::TrackFindingCDC::FacetCreator::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: FacetCreator.cc:37
Belle2::TrackFindingCDC::FacetCreator::m_param_feasibleRLOnly
bool m_param_feasibleRLOnly
Parameter : Switch to apply the rl feasibility cut.
Definition: FacetCreator.h:90
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::FacetCreator::Super
Findlet< const CDCWireHitCluster, CDCFacet > Super
Type of the base class.
Definition: FacetCreator.h:49
Belle2::TrackFindingCDC::FacetCreator::m_param_leastSquareFit
bool m_param_leastSquareFit
Parameter : Switch to fit the facet with least square method for the drift length update.
Definition: FacetCreator.h:96
Belle2::TrackFindingCDC::FacetCreator::m_driftLengthEstimator
DriftLengthEstimator m_driftLengthEstimator
Instance of the drift length estimator to be used.
Definition: FacetCreator.h:109
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::CDCWireHitCluster
An aggregation of CDCWireHits.
Definition: CDCWireHitCluster.h:31
Belle2::TrackFindingCDC::FacetCreator::createFacets
void createFacets(const std::vector< CDCWireHit * > &wireHits, const std::vector< WeightedRelation< CDCWireHit > > &wireHitRelations, std::vector< CDCFacet > &facets)
Generates facets on the given wire hits generating neighboring triples of hits.
Definition: FacetCreator.cc:100
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::TrackFindingCDC::FacetCreator::apply
void apply(const std::vector< CDCWireHitCluster > &inputClusters, std::vector< CDCFacet > &facets) final
Central function creating the hit triplets from the clusters.
Definition: FacetCreator.cc:60
Belle2::TrackFindingCDC::CDCWireHit
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:65
Belle2::TrackFindingCDC::FeasibleRLFacetFilter
Filter for the constuction of good facets investigating the feasability of the right left passage hyp...
Definition: FeasibleRLFacetFilter.h:40
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::DriftLengthEstimator
Helper construct implementing the (re)estimation of the drift length for various hit objects.
Definition: DriftLengthEstimator.h:38
Belle2::TrackFindingCDC::FacetCreator::m_wireHitRelations
std::vector< WeightedRelation< CDCWireHit > > m_wireHitRelations
Memory for the wire hit neighborhood in within a cluster.
Definition: FacetCreator.h:113
Belle2::TrackFindingCDC::FacetCreator::m_feasibleRLFacetFilter
FeasibleRLFacetFilter m_feasibleRLFacetFilter
The feasibility filter for the right left passage information.
Definition: FacetCreator.h:103
Belle2::TrackFindingCDC::FacetCreator::FacetCreator
FacetCreator()
Constructor adding the filter as a subordinary processing signal listener.
Definition: FacetCreator.cc:31