Belle II Software  release-05-01-25
AndFilter.dcl.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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 AndFilter : public AFilter {
27 
28  private:
30  using Super = AFilter;
31 
32  public:
34  AndFilter(std::unique_ptr<AFilter> lhsFilter, std::unique_ptr<AFilter> rhsFilter);
35 
37  ~AndFilter();
38 
40  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
41 
43  Weight operator()(const typename AFilter::Object& obj) final;
44 
45  private:
47  std::unique_ptr<AFilter> m_lhsFilter;
48 
50  std::unique_ptr<AFilter> m_rhsFilter;
51  };
52  }
54 }
Belle2::TrackFindingCDC::AndFilter::m_lhsFilter
std::unique_ptr< AFilter > m_lhsFilter
Left hand side filter.
Definition: AndFilter.dcl.h:55
Belle2::TrackFindingCDC::AndFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: AndFilter.icc.h:47
Belle2::TrackFindingCDC::AndFilter::~AndFilter
~AndFilter()
Default destructor.
Belle2::TrackFindingCDC::AndFilter::operator()
Weight operator()(const typename AFilter::Object &obj) final
Return result of right hand side filter if left hand side filter acknowledges.
Definition: AndFilter.icc.h:55
Belle2::TrackFindingCDC::AndFilter::m_rhsFilter
std::unique_ptr< AFilter > m_rhsFilter
Right hand side filter.
Definition: AndFilter.dcl.h:58
Belle2::TrackFindingCDC::AndFilter::Super
AFilter Super
Type of the base class.
Definition: AndFilter.dcl.h:38
Belle2::TrackFindingCDC::AndFilter::AndFilter
AndFilter(std::unique_ptr< AFilter > lhsFilter, std::unique_ptr< AFilter > rhsFilter)
Constructor from two filters to be joined.
Definition: AndFilter.icc.h:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46