10#include <tracking/vxdHoughTracking/findlets/OnHitApplier.dcl.h>
11#include <tracking/trackFindingCDC/numerics/WeightComperator.h>
12#include <tracking/trackFindingCDC/utilities/Algorithms.h>
19 namespace vxdHoughTracking {
25 if (childHits.empty()) {
30 AHit& hit = *hitWithWeight;
31 const TrackFindingCDC::Weight& weight = this->
operator()({currentPath, &hit});
32 hitWithWeight.setWeight(weight);
35 TrackFindingCDC::erase_remove_if(childHits, TrackFindingCDC::HasNaNWeight());
A mixin class to attach a weight to an object.
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.
void apply(const std::vector< TrackFindingCDC::WithWeight< const AHit * > > ¤tPath, 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.