Belle II Software  release-05-01-25
BridgingWireHitRelationFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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/filters/base/RelationFilter.dcl.h>
13 
14 #include <string>
15 #include <map>
16 #include <array>
17 #include <vector>
18 
19 namespace Belle2 {
24  class ModuleParamList;
25 
26  namespace TrackFindingCDC {
27  class CDCWireHit;
28 
42  class BridgingWireHitRelationFilter : public RelationFilter<CDCWireHit> {
43 
44  private:
46  using Super = RelationFilter<CDCWireHit>;
47 
48  public:
51 
54 
56  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
57 
59  void initialize() override;
60 
65  std::vector<CDCWireHit*> getPossibleTos(CDCWireHit* from,
66  const std::vector<CDCWireHit*>& wireHits) const final;
67 
68  private:
71  {{0, 2}, {2, 2}, {4, 2}, {6, 2}, {8, 2}, {10, 2}};
72 
74  std::array<short, 12> m_missingPrimaryNeighborThresholds;
75 
77  std::vector<short> m_consideredSecondaryNeighbors;
78  };
79  }
81 }
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::m_missingPrimaryNeighborThresholds
std::array< short, 12 > m_missingPrimaryNeighborThresholds
Array for the number of primary drift cells to be included for the o'clock position at each index.
Definition: BridgingWireHitRelationFilter.h:82
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::m_consideredSecondaryNeighbors
std::vector< short > m_consideredSecondaryNeighbors
Indices of the considered o'clock positions of the secondary neighborhood.
Definition: BridgingWireHitRelationFilter.h:85
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Definition: BridgingWireHitRelationFilter.cc:39
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::BridgingWireHitRelationFilter
BridgingWireHitRelationFilter()
Default constructor.
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::initialize
void initialize() override
Receive signal at the begin of the event processing and prepare some parameters.
Definition: BridgingWireHitRelationFilter.cc:51
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::m_param_missingPrimaryNeighborThresholdMap
std::map< int, int > m_param_missingPrimaryNeighborThresholdMap
Parameter: A map from o'clock direction to the number of missing primary drift cells.
Definition: BridgingWireHitRelationFilter.h:78
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::getPossibleTos
std::vector< CDCWireHit * > getPossibleTos(CDCWireHit *from, const std::vector< CDCWireHit * > &wireHits) const final
Returns a vector containing the neighboring wire hits of the given wire hit out of the sorted range g...
Definition: BridgingWireHitRelationFilter.cc:70
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::Super
RelationFilter< CDCWireHit > Super
Type of the base class.
Definition: BridgingWireHitRelationFilter.h:54
Belle2::TrackFindingCDC::BridgingWireHitRelationFilter::~BridgingWireHitRelationFilter
~BridgingWireHitRelationFilter()
Default destructor.
Belle2::TrackFindingCDC::CDCWireHit
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:65
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46