Belle II Software development
OnStateApplier.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#include <tracking/trackingUtilities/numerics/Weight.h>
14
15#include <vector>
16
17namespace Belle2 {
22
28 template <class AState>
29 class OnStateApplier : public
30 TrackingUtilities::Findlet<const TrackingUtilities::WithWeight<const AState*>, TrackingUtilities::WithWeight<AState*>> {
31 private:
33 using Super =
35
36 public:
38 using Object = std::pair<const std::vector<TrackingUtilities::WithWeight<const AState*>>, AState*>;
39
41 void apply(const std::vector<TrackingUtilities::WithWeight<const AState*>>& currentPath,
42 std::vector<TrackingUtilities::WithWeight<AState*>>& childStates) override;
43
45 virtual TrackingUtilities::Weight operator()(const Object& object);
46 };
47
48}
Helper findlet which applies its () operator to all pairs of path and state with all states in the gi...
TrackingUtilities::Findlet< const TrackingUtilities::WithWeight< const AState * >, TrackingUtilities::WithWeight< AState * > > Super
Parent class.
std::pair< const std::vector< TrackingUtilities::WithWeight< const AState * > >, AState * > Object
The object this filter refers to.
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
virtual TrackingUtilities::Weight operator()(const Object &object)
The filter operator for this class.
void apply(const std::vector< TrackingUtilities::WithWeight< const AState * > > &currentPath, std::vector< TrackingUtilities::WithWeight< AState * > > &childStates) override
Apply the () operator to all pairs of state and current path.
Abstract base class for different kinds of events.