Belle II Software  release-05-01-25
ObserverFilter.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: Nils Braun *
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 namespace Belle2 {
19  namespace TrackFindingCDC {
20 
22  template<class AFilter>
23  class ObserverFilter : public AFilter {
24 
25  private:
27  using Super = AFilter;
28 
29  public:
31  using AFilter::AFilter;
32 
34  using Object = typename AFilter::Object;
35 
36  public:
38  void terminate() override;
39 
40  public:
49  Weight operator()(const Object& object) override;
50 
51  private:
53  unsigned int m_yesAnswers = 0;
54 
56  unsigned int m_noAnswers = 0;
57  };
58  }
60 }
Belle2::TrackFindingCDC::ObserverFilter::terminate
void terminate() override
Terminate the filter after event processing.
Definition: ObserverFilter.icc.h:36
Belle2::TrackFindingCDC::ObserverFilter::Super
AFilter Super
Type of the filter base class.
Definition: ObserverFilter.dcl.h:35
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::ObserverFilter::Object
typename AFilter::Object Object
Object type to be filtered.
Definition: ObserverFilter.dcl.h:42
Belle2::TrackFindingCDC::ObserverFilter::operator()
Weight operator()(const Object &object) override
Function to evaluate the object.
Definition: ObserverFilter.icc.h:43
Belle2::TrackFindingCDC::ObserverFilter::m_yesAnswers
unsigned int m_yesAnswers
Number of counted yes answers.
Definition: ObserverFilter.dcl.h:61
Belle2::TrackFindingCDC::ObserverFilter::m_noAnswers
unsigned int m_noAnswers
Number of counted no answers.
Definition: ObserverFilter.dcl.h:64