Belle II Software development
SegmentRejecter.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/findlets/base/Findlet.h>
11
12#include <tracking/trackFindingCDC/filters/segment/BaseSegmentFilter.h>
13#include <tracking/trackFindingCDC/filters/segment/SegmentFilterFactory.h>
14
15#include <tracking/trackingUtilities/filters/base/ChooseableFilter.dcl.h>
16
17#include <vector>
18#include <string>
19
20namespace Belle2 {
25
26 namespace TrackingUtilities {
27 class CDCSegment2D;
28 }
29 namespace TrackFindingCDC {
30
31 // Guard to prevent repeated instantiations
32 // extern template class TrackingUtilities::Chooseable<BaseSegmentFilter>;
33 // extern template class TrackingUtilities::ChooseableFilter<SegmentFilterFactory>;
34
36 class SegmentRejecter : public TrackingUtilities::Findlet<TrackingUtilities::CDCSegment2D&> {
37
38 private:
41
42 public:
44 explicit SegmentRejecter(const std::string& defaultFilterName = "all");
45
47 std::string getDescription() final;
48
50 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
51
53 void apply(std::vector<TrackingUtilities::CDCSegment2D>& segment2Ds) final;
54
55 private:
58
60 TrackingUtilities::ChooseableFilter<SegmentFilterFactory> m_segmentFilter;
61 };
62 }
64}
The Module parameter list class.
Factory that can create appropriate segment filters for new tracks from associated names.
TrackingUtilities::Findlet< TrackingUtilities::CDCSegment2D & > Super
Type of the base class.
bool m_param_deleteRejected
Parameter : Switch to delete the segments instead of marking them as background.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
SegmentRejecter(const std::string &defaultFilterName="all")
Constructor adding the filter as a subordinary processing signal listener.
void apply(std::vector< TrackingUtilities::CDCSegment2D > &segment2Ds) final
Main algorithm.
TrackingUtilities::ChooseableFilter< SegmentFilterFactory > m_segmentFilter
Reference to the filter to be used to filter.
A reconstructed sequence of two dimensional hits in one super layer.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
STL class.
Abstract base class for different kinds of events.
STL namespace.