Belle II Software  release-08-01-10
StateRejecter.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/findlets/base/Findlet.h>
11 
12 #include <tracking/trackFindingCDC/numerics/WithWeight.h>
13 
14 #include <vector>
15 #include <string>
16 
17 namespace Belle2 {
22  class ModuleParamList;
23 
37  template <class AState, class AFilter>
38  class StateRejecter : public
39  TrackFindingCDC::Findlet<const TrackFindingCDC::WithWeight<const AState*>, TrackFindingCDC::WithWeight<AState*>> {
40  private:
43 
44  public:
46  StateRejecter();
47 
49  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
50 
52  void apply(const std::vector<TrackFindingCDC::WithWeight<const AState*>>& currentPath,
53  std::vector<TrackFindingCDC::WithWeight<AState*>>& childStates) final;
54 
55  private:
57  AFilter m_firstFilter;
59  AFilter m_advanceFilter;
61  AFilter m_secondFilter;
63  AFilter m_updateFilter;
65  AFilter m_thirdFilter;
66  };
68 }
The Module parameter list class.
Reject some (or all) states from a given list of child states using 5 filters.
AFilter m_updateFilter
State filter to kalman update all states.
AFilter m_secondFilter
State filter to decide which available continuations should be traversed next.
AFilter m_advanceFilter
State filter to advance all states.
AFilter m_thirdFilter
State filter to decide which available continuations should be traversed next.
AFilter m_firstFilter
State filter to decide which available continuations should be traversed next.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
A mixin class to attach a weight to an object.
Definition: WithWeight.h:24
StateRejecter()
Construct this findlet and add the subfindlet as listener.
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.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
Abstract base class for different kinds of events.