Belle II Software  release-08-01-10
RandomFilter.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 {
17  namespace TrackFindingCDC {
18 
23  template<class AFilter>
24  class RandomFilter : public AFilter {
25  public:
27  using Object = typename AFilter::Object;
28 
29  public:
31  Weight operator()(const Object& obj) final;
32  };
33  }
35 }
Random filter resulting in a random weight between 0 and 1.
Weight operator()(const Object &obj) final
Never reject an item but give back a random value between 0 and 1.
typename AFilter::Object Object
Type of the object to be filtered.
Abstract base class for different kinds of events.