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/trackFindingCDC/findlets/base/Findlet.h>
11#include <tracking/trackFindingCDC/numerics/WithWeight.h>
12#include <tracking/trackFindingCDC/numerics/Weight.h>
13
14namespace Belle2 {
19 namespace vxdHoughTracking {
20
26 template <class AHit>
27 class OnHitApplier : public
28 TrackFindingCDC::Findlet<const TrackFindingCDC::WithWeight<const AHit*>, TrackFindingCDC::WithWeight<AHit*>> {
29 private:
32
33 public:
35 using Object = std::pair<const std::vector<TrackFindingCDC::WithWeight<const AHit*>>, AHit*>;
36
38 void apply(const std::vector<TrackFindingCDC::WithWeight<const AHit*>>& currentPath,
39 std::vector<TrackFindingCDC::WithWeight<AHit*>>& childHits) override;
40
42 virtual TrackFindingCDC::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 ...
std::pair< const std::vector< TrackFindingCDC::WithWeight< const AHit * > >, AHit * > Object
The object this filter refers to.
virtual TrackFindingCDC::Weight operator()(const Object &object)
The filter operator for this class.
TrackFindingCDC::Findlet< const TrackFindingCDC::WithWeight< const AHit * >, TrackFindingCDC::WithWeight< AHit * > > Super
Parent class.
void apply(const std::vector< TrackFindingCDC::WithWeight< const AHit * > > &currentPath, std::vector< TrackFindingCDC::WithWeight< AHit * > > &childHits) override
Apply the () operator to all pairs of hit and current path.
Abstract base class for different kinds of events.