8#include <tracking/trackFindingCDC/filters/axialSegmentPair/AllAxialSegmentPairFilter.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCAxialSegmentPair.h>
12#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
15using namespace TrackFindingCDC;
19 const CDCAxialSegment2D* ptrStartSegment = axialSegmentPair.
getStartSegment();
20 const CDCAxialSegment2D* ptrEndSegment = axialSegmentPair.
getEndSegment();
22 assert(ptrStartSegment);
23 assert(ptrEndSegment);
25 const CDCAxialSegment2D& startSegment = *ptrStartSegment;
26 const CDCAxialSegment2D& endSegment = *ptrEndSegment;
28 return startSegment.size() + endSegment.size();
Weight operator()(const CDCAxialSegmentPair &axialSegmentPair) final
Checks if a pair of axial segments is a good combination.
Class representing a pair of reconstructed axial segments in adjacent superlayer.
const CDCAxialSegment2D * getEndSegment() const
Getter for the end segment.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start segment.
Abstract base class for different kinds of events.