Belle II Software  release-05-01-25
TrackRejecter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun, Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <tracking/trackFindingCDC/filters/track/BaseTrackFilter.h>
15 #include <tracking/trackFindingCDC/filters/track/TrackFilterFactory.h>
16 
17 #include <tracking/trackFindingCDC/filters/base/ChooseableFilter.dcl.h>
18 
19 #include <vector>
20 #include <string>
21 
22 namespace Belle2 {
28  namespace TrackFindingCDC {
29  class CDCTrack;
30 
31  // Guard to prevent repeated instantiations
32  extern template class Chooseable<BaseTrackFilter>;
33  extern template class ChooseableFilter<TrackFilterFactory>;
34 
36  class TrackRejecter : public Findlet<CDCTrack&> {
37 
38  private:
40  using Super = Findlet<CDCTrack&>;
41 
42  public:
44  explicit TrackRejecter(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<CDCTrack>& tracks) final;
54 
55  private:
57  bool m_param_deleteRejected = true;
58 
60  ChooseableFilter<TrackFilterFactory> m_trackFilter;
61  };
62  }
64 }
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::ChooseableFilter
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Definition: ChooseableFilter.dcl.h:107
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackFilterFactory
Factory that can create appropriate track filters from associated names.
Definition: TrackFilterFactory.h:34
Belle2::TrackFindingCDC::TrackRejecter
Deletes fake tracks that have been rejected by a filter.
Definition: TrackRejecter.h:44
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46