Belle II Software  release-05-02-19
RandomFilter.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, 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 namespace Belle2 {
19  namespace TrackFindingCDC {
20 
25  template<class AFilter>
26  class RandomFilter : public AFilter {
27  public:
29  using Object = typename AFilter::Object;
30 
31  public:
33  Weight operator()(const Object& obj) final;
34  };
35  }
37 }
Belle2::TrackFindingCDC::RandomFilter::Object
typename AFilter::Object Object
Type of the object to be filtered.
Definition: RandomFilter.dcl.h:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::RandomFilter::operator()
Weight operator()(const Object &obj) final
Never reject an item but give back a random value between 0 and 1.
Definition: RandomFilter.icc.h:32