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
14#include <vector>
15
16namespace Belle2 {
21 namespace vxdHoughTracking {
22
28 template <class AHit>
29 class OnHitApplier : public
30 TrackFindingCDC::Findlet<const TrackFindingCDC::WithWeight<const AHit*>, TrackFindingCDC::WithWeight<AHit*>> {
31 private:
34
35 public:
37 using Object = std::pair<const std::vector<TrackFindingCDC::WithWeight<const AHit*>>, AHit*>;
38
40 void apply(const std::vector<TrackFindingCDC::WithWeight<const AHit*>>& currentPath,
41 std::vector<TrackFindingCDC::WithWeight<AHit*>>& childHits) override;
42
44 virtual TrackFindingCDC::Weight operator()(const Object& object);
45 };
46
47 }
49}
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 TrackFindingCDC::Weight operator()(const Object &object)
The filter operator for this 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.
std::pair< const std::vector< TrackFindingCDC::WithWeight< const AHit * > >, AHit * > Object
The object this filter refers to.
Abstract base class for different kinds of events.