Belle II Software development
BridgingWireHitRelationFilter.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/trackingUtilities/filters/base/RelationFilter.dcl.h>
11
12#include <string>
13#include <map>
14#include <array>
15#include <vector>
16
17namespace Belle2 {
22 class ModuleParamList;
23
24 namespace TrackingUtilities {
25 class CDCWireHit;
26 }
27 namespace TrackFindingCDC {
28
42 class BridgingWireHitRelationFilter : public TrackingUtilities::RelationFilter<TrackingUtilities::CDCWireHit> {
43
44 private:
47
48 public:
51
54
56 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
57
59 void initialize() override;
60
65 std::vector<TrackingUtilities::CDCWireHit*> getPossibleTos(TrackingUtilities::CDCWireHit* from,
66 const std::vector<TrackingUtilities::CDCWireHit*>& wireHits) const final;
67
68 private:
71 {{0, 2}, {2, 2}, {4, 2}, {6, 2}, {8, 2}, {10, 2}};
72
75
78 };
79 }
81}
The Module parameter list class.
std::map< int, int > m_param_missingPrimaryNeighborThresholdMap
Parameter: A map from o'clock direction to the number of missing primary drift cells.
void initialize() override
Receive signal at the begin of the event processing and prepare some parameters.
std::vector< TrackingUtilities::CDCWireHit * > getPossibleTos(TrackingUtilities::CDCWireHit *from, const std::vector< TrackingUtilities::CDCWireHit * > &wireHits) const final
Returns a vector containing the neighboring wire hits of the given wire hit out of the sorted range g...
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.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
TrackingUtilities::RelationFilter< TrackingUtilities::CDCWireHit > Super
Type of the base class.
std::vector< short > m_consideredSecondaryNeighbors
Indices of the considered o'clock positions of the secondary neighborhood.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Base class for filtering the neighborhood of objects.
Abstract base class for different kinds of events.