Belle II Software development
FacetCreator.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
11
12#include <tracking/trackFindingCDC/filters/facet/ChooseableFacetFilter.h>
13#include <tracking/trackFindingCDC/filters/facet/FeasibleRLFacetFilter.h>
14#include <tracking/trackFindingCDC/filters/wireHitRelation/BridgingWireHitRelationFilter.h>
15
16#include <tracking/trackFindingCDC/eventdata/utils/DriftLengthEstimator.h>
17
18#include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
19
20#include <vector>
21#include <string>
22
23namespace Belle2 {
30 namespace TrackFindingCDC {
31 class CDCFacet;
32 class CDCWireHitCluster;
33
35 class FacetCreator : public Findlet<const CDCWireHitCluster, CDCFacet> {
36
37 private:
40
41 public:
44
46 std::string getDescription() final;
47
49 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
50
58 void apply(const std::vector<CDCWireHitCluster>& inputClusters, std::vector<CDCFacet>& facets) final;
59
60 private:
65 void createFacets(const std::vector<CDCWireHit*>& wireHits,
66 const std::vector<WeightedRelation<CDCWireHit> >& wireHitRelations,
67 std::vector<CDCFacet>& facets);
68
74 void createFacetsForHitTriple(const CDCWireHit& startWireHit,
75 const CDCWireHit& middleWireHit,
76 const CDCWireHit& endWireHit,
77 std::vector<CDCFacet>& facets);
78 private:
81
84
87
88 private:
91
94
97
100
101 private:
104 };
105 }
107}
The Module parameter list class.
Wire hit relation filter that is compensating for hit inefficiencies.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
Class providing construction combinatorics for the facets.
Definition: FacetCreator.h:35
DriftLengthEstimator m_driftLengthEstimator
Instance of the drift length estimator to be used.
Definition: FacetCreator.h:99
BridgingWireHitRelationFilter m_wireHitRelationFilter
The filter for the hit neighborhood.
Definition: FacetCreator.h:90
bool m_param_feasibleRLOnly
Parameter : Switch to apply the rl feasibility cut.
Definition: FacetCreator.h:80
void apply(const std::vector< CDCWireHitCluster > &inputClusters, std::vector< CDCFacet > &facets) final
Central function creating the hit triplets from the clusters.
Definition: FacetCreator.cc:58
std::vector< WeightedRelation< CDCWireHit > > m_wireHitRelations
Memory for the wire hit neighborhood in within a cluster.
Definition: FacetCreator.h:103
bool m_param_leastSquareFit
Parameter : Switch to fit the facet with least square method for the drift length update.
Definition: FacetCreator.h:86
std::string getDescription() final
Short description of the findlet.
Definition: FacetCreator.cc:35
ChooseableFacetFilter m_facetFilter
The filter to be used for the facet generation.
Definition: FacetCreator.h:96
bool m_param_updateDriftLength
Parameter : Switch to reestimate the drift length.
Definition: FacetCreator.h:83
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...
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: FacetCreator.cc:40
FeasibleRLFacetFilter m_feasibleRLFacetFilter
The feasibility filter for the right left passage information.
Definition: FacetCreator.h:93
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:98
FacetCreator()
Constructor adding the filter as a subordinary processing signal listener.
Definition: FacetCreator.cc:29
Filter for the construction of good facets investigating the feasibility of the right left passage hy...
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Type for two related objects with a weight.
Abstract base class for different kinds of events.
STL namespace.
Helper construct implementing the (re)estimation of the drift length for various hit objects.