Belle II Software  release-08-01-10
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/trackFindingCDC/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/trackFindingCDC/filters/base/ChooseableFilter.dcl.h>
16 
17 #include <vector>
18 #include <string>
19 
20 namespace Belle2 {
26  namespace TrackFindingCDC {
27  class CDCSegment2D;
28 
29  // Guard to prevent repeated instantiations
30  extern template class TrackFindingCDC::Chooseable<BaseSegmentFilter>;
31  extern template class TrackFindingCDC::ChooseableFilter<SegmentFilterFactory>;
32 
35 
36  private:
39 
40  public:
42  explicit SegmentRejecter(const std::string& defaultFilterName = "all");
43 
45  std::string getDescription() final;
46 
48  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
49 
51  void apply(std::vector<CDCSegment2D>& segment2Ds) final;
52 
53  private:
55  bool m_param_deleteRejected = false;
56 
59  };
60  }
62 }
The Module parameter list class.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Factory that can create appropriate segment filters for new tracks from associated names.
Deletes fake segments that have been rejected by a filter.
Abstract base class for different kinds of events.