Belle II Software  release-05-01-25
SloppyFilter.dcl.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - 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 <string>
15 namespace Belle2 {
20  class ModuleParamList;
21 
22  namespace TrackFindingCDC {
23 
25  template<class AFilter>
26  class Sloppy : public AFilter {
27 
28  private:
30  using Super = AFilter;
31 
32  public:
34  using Super::Super;
35 
37  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
38 
39  public:
41  Weight operator()(const typename Super::Object& object) override;
42 
43  private:
45  unsigned int m_param_sloppinessFactor = 10;
46  };
47  }
49 }
Belle2::TrackFindingCDC::Sloppy::operator()
Weight operator()(const typename Super::Object &object) override
Reject an item if the truth variable is 0 or in some fractions of the events, else accept it.
Definition: SloppyFilter.icc.h:45
Belle2::TrackFindingCDC::Sloppy::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Definition: SloppyFilter.icc.h:34
Belle2::TrackFindingCDC::Sloppy::Super
AFilter Super
The parent class.
Definition: SloppyFilter.dcl.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::Sloppy::m_param_sloppinessFactor
unsigned int m_param_sloppinessFactor
Parameter : The prescaling of the false items returning true.
Definition: SloppyFilter.dcl.h:53
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46