Belle II Software development
OnHitApplier.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#include <tracking/trackingUtilities/numerics/WithWeight.h>
12#include <tracking/trackingUtilities/numerics/Weight.h>
13
14namespace Belle2 {
19 namespace vxdHoughTracking {
20
26 template <class AHit>
27 class OnHitApplier : public
28 TrackingUtilities::Findlet<const TrackingUtilities::WithWeight<const AHit*>, TrackingUtilities::WithWeight<AHit*>> {
29 private:
32
33 public:
35 using Object = std::pair<const std::vector<TrackingUtilities::WithWeight<const AHit*>>, AHit*>;
36
38 void apply(const std::vector<TrackingUtilities::WithWeight<const AHit*>>& currentPath,
39 std::vector<TrackingUtilities::WithWeight<AHit*>>& childHits) override;
40
42 virtual TrackingUtilities::Weight operator()(const Object& object);
43 };
44
45 }
47}
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
Helper findlet which applies its () operator to all pairs of path and hit with all hits in the given ...
virtual TrackingUtilities::Weight operator()(const Object &object)
The filter operator for this class.
TrackingUtilities::Findlet< const TrackingUtilities::WithWeight< const AHit * >, TrackingUtilities::WithWeight< AHit * > > Super
Parent class.
void apply(const std::vector< TrackingUtilities::WithWeight< const AHit * > > &currentPath, std::vector< TrackingUtilities::WithWeight< AHit * > > &childHits) override
Apply the () operator to all pairs of hit and current path.
std::pair< const std::vector< TrackingUtilities::WithWeight< const AHit * > >, AHit * > Object
The object this filter refers to.
Abstract base class for different kinds of events.