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