10#include <tracking/ckf/cdc/filters/pathPairs/BaseCDCPathPairFilter.h>
12#include <tracking/trackFindingCDC/numerics/Weight.h>
25 const auto& lhs = *pair.first;
26 const auto& rhs = *pair.second;
27 const auto& lhsLastState = lhs.back();
28 const auto& rhsLastState = rhs.back();
30 const auto lhsArcLength = lhsLastState.getArcLength();
31 const auto rhsArcLength = rhsLastState.getArcLength();
34 if (lhs.size() != rhs.size()) {
35 return lhs.size() > rhs.size();
38 return lhsArcLength < rhsArcLength;
For the two paths with the same number of hits prefers one with shortest arcLength ("densest path")
TrackFindingCDC::Weight operator()(const BaseCDCPathPairFilter::Object &pair) final
Input: pair of paths, returns 1 if pair.first to be selected, 0 otherwise.
Base class for filters on a generic object type.
AObject Object
Type of the object to be analysed.
Abstract base class for different kinds of events.