Belle II Software  release-05-01-25
StateRejecter.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: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <tracking/trackFindingCDC/numerics/WithWeight.h>
15 
16 #include <vector>
17 #include <string>
18 
19 namespace Belle2 {
24  class ModuleParamList;
25 
39  template <class AState, class AFilter>
40  class StateRejecter : public
41  TrackFindingCDC::Findlet<const TrackFindingCDC::WithWeight<const AState*>, TrackFindingCDC::WithWeight<AState*>> {
42  private:
44  using Super = TrackFindingCDC::Findlet<const TrackFindingCDC::WithWeight<const AState*>, TrackFindingCDC::WithWeight<AState*>>;
45 
46  public:
49 
51  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
52 
54  void apply(const std::vector<TrackFindingCDC::WithWeight<const AState*>>& currentPath,
55  std::vector<TrackFindingCDC::WithWeight<AState*>>& childStates) final;
56 
57  private:
59  AFilter m_firstFilter;
61  AFilter m_advanceFilter;
63  AFilter m_secondFilter;
65  AFilter m_updateFilter;
67  AFilter m_thirdFilter;
68  };
70 }
Belle2::StateRejecter::m_advanceFilter
AFilter m_advanceFilter
State filter to advance all states.
Definition: StateRejecter.dcl.h:69
Belle2::StateRejecter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
Definition: StateRejecter.icc.h:42
Belle2::StateRejecter::apply
void apply(const std::vector< TrackFindingCDC::WithWeight< const AState * >> &currentPath, std::vector< TrackFindingCDC::WithWeight< AState * >> &childStates) final
Apply all five filters to the child states.
Definition: StateRejecter.icc.h:52
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StateRejecter::m_secondFilter
AFilter m_secondFilter
State filter to decide which available continuations should be traversed next.
Definition: StateRejecter.dcl.h:71
Belle2::TrackFindingCDC::WithWeight
A mixin class to attach a weight to an object.
Definition: WithWeight.h:34
Belle2::StateRejecter::m_firstFilter
AFilter m_firstFilter
State filter to decide which available continuations should be traversed next.
Definition: StateRejecter.dcl.h:67
Belle2::StateRejecter::m_thirdFilter
AFilter m_thirdFilter
State filter to decide which available continuations should be traversed next.
Definition: StateRejecter.dcl.h:75
Belle2::StateRejecter::StateRejecter
StateRejecter()
Construct this findlet and add the subfindlet as listener.
Definition: StateRejecter.icc.h:31
Belle2::StateRejecter::m_updateFilter
AFilter m_updateFilter
State filter to kalman update all states.
Definition: StateRejecter.dcl.h:73
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::StateRejecter::Super
TrackFindingCDC::Findlet< const TrackFindingCDC::WithWeight< const AState * >, TrackFindingCDC::WithWeight< AState * > > Super
Parent class.
Definition: StateRejecter.dcl.h:52