Belle II Software  release-08-01-10
NegativeFilter.dcl.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/numerics/Weight.h>
11 
12 namespace Belle2 {
18  namespace TrackFindingCDC {
20  template<class AFilter>
21  class NegativeFilter : public AFilter {
22 
23  private:
25  using Super = AFilter;
26 
27  public:
29  using Object = typename AFilter::Object;
30 
31  using Super::Super;
32 
34  Weight operator()(const typename AFilter::Object& obj) final;
35  };
36  }
38 }
Filter adapter type that negates the acceptance criterion for cross checks.
AFilter Super
Type of the base class.
Weight operator()(const typename AFilter::Object &obj) final
Invert the result.
typename AFilter::Object Object
Type of the object to be filtered.
Abstract base class for different kinds of events.