Belle II Software  release-05-01-25
NotFilter.dcl.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - 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/numerics/Weight.h>
13 
14 #include <memory>
15 
16 namespace Belle2 {
21  class ModuleParamList;
22 
23  namespace TrackFindingCDC {
25  template<class AFilter>
26  class NotFilter : public AFilter {
27 
28  private:
30  using Super = AFilter;
31 
32  public:
34  using Object = typename AFilter::Object;
35 
36  public:
38  NotFilter(std::unique_ptr<AFilter> filter);
39 
41  ~NotFilter();
42 
44  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
45 
47  Weight operator()(const typename AFilter::Object& obj) final;
48 
49  private:
51  std::unique_ptr<AFilter> m_filter;
52  };
53  }
55 }
Belle2::TrackFindingCDC::NotFilter::NotFilter
NotFilter(std::unique_ptr< AFilter > filter)
Constructor from filter to be inverted.
Definition: NotFilter.icc.h:35
Belle2::filter
std::map< ExpRun, std::pair< double, double > > filter(const std::map< ExpRun, std::pair< double, double >> &runs, double cut, std::map< ExpRun, std::pair< double, double >> &runsRemoved)
filter events to remove runs shorter than cut, it stores removed runs in runsRemoved
Definition: Splitter.cc:43
Belle2::TrackFindingCDC::NotFilter::Object
typename AFilter::Object Object
Type of the object to be filtered.
Definition: NotFilter.dcl.h:42
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::NotFilter::Super
AFilter Super
Type of the base class.
Definition: NotFilter.dcl.h:38
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::NotFilter::~NotFilter
~NotFilter()
Default destructor.
Belle2::TrackFindingCDC::NotFilter::m_filter
std::unique_ptr< AFilter > m_filter
Filter to be inverted.
Definition: NotFilter.dcl.h:59
Belle2::TrackFindingCDC::NotFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: NotFilter.icc.h:45
Belle2::TrackFindingCDC::NotFilter::operator()
Weight operator()(const typename AFilter::Object &obj) final
Accept inverse.
Definition: NotFilter.icc.h:52