 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/segmentPairRelation/BaseSegmentPairRelationFilter.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
14 #include <tracking/trackFindingCDC/filters/base/RelationFilter.icc.h>
16 #include <tracking/trackFindingCDC/utilities/VectorRange.h>
17 #include <tracking/trackFindingCDC/utilities/Functional.h>
23 using namespace TrackFindingCDC;
33 const std::vector<const CDCSegmentPair*>& segmentPairs)
const
35 assert(std::is_sorted(segmentPairs.begin(), segmentPairs.end(),
LessOf<Deref>()) &&
36 "Expected segment pairs to be sorted");
41 std::equal_range(segmentPairs.begin(), segmentPairs.end(), &toSegment,
LessOf<Deref>())};
42 return {neighbors.
begin(), neighbors.end()};
Iterator begin() const
Begin of the range for range based for.
Functor factory turning a binary functor and two functors into a new functor which executes the binar...
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
const CDCSegment2D * getToSegment() const
Getter for the to segment.
~BaseSegmentPairRelationFilter()
Default destructor.
Abstract base class for different kinds of events.
std::vector< const CDCSegmentPair * > getPossibleTos(const CDCSegmentPair *from, const std::vector< const CDCSegmentPair * > &segmentPairs) const final
Returns the segment pairs form the range that continue on the to site of the given segment pair.
BaseSegmentPairRelationFilter()
Default constructor.
A pair of iterators usable with the range base for loop.
A reconstructed sequence of two dimensional hits in one super layer.