Belle II Software development
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/trackingUtilities/findlets/base/Findlet.h>
11
12#include <tracking/trackingUtilities/numerics/WithWeight.h>
13
14#include <vector>
15#include <string>
16
17namespace Belle2 {
22 class ModuleParamList;
23
37 template <class AState, class AFilter>
38 class StateRejecter : public
39 TrackingUtilities::Findlet<const TrackingUtilities::WithWeight<const AState*>, TrackingUtilities::WithWeight<AState*>> {
40 private:
42 using Super =
44
45 public:
48
50 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
51
53 void apply(const std::vector<TrackingUtilities::WithWeight<const AState*>>& currentPath,
54 std::vector<TrackingUtilities::WithWeight<AState*>>& childStates) final;
55
56 private:
67 };
68
69}
The Module parameter list class.
TrackingUtilities::Findlet< const TrackingUtilities::WithWeight< const AState * >, TrackingUtilities::WithWeight< AState * > > Super
Parent class.
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< TrackingUtilities::WithWeight< const AState * > > &currentPath, std::vector< TrackingUtilities::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.