8#include <tracking/trackFindingCDC/filters/segmentPairRelation/BasicSegmentPairRelationVarSet.h>
10#include <tracking/trackingUtilities/eventdata/tracks/CDCSegmentPair.h>
11#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
14using namespace TrackFindingCDC;
15using namespace TrackingUtilities;
19 if (not ptrSegmentPairRelation)
return false;
21 const CDCSegmentPair* fromSegmentPair = ptrSegmentPairRelation->first;
22 const CDCSegmentPair* toSegmentPair = ptrSegmentPairRelation->second;
25 var<
named(
"middle_sl_id")>() = middleSegment->getISuperLayer();
26 var<
named(
"middle_is_axial")>() = middleSegment->isAxial();
29 var<
named(
"middle_size")>() = middleSegment->size();
bool extract(const TrackingUtilities::Relation< const TrackingUtilities::CDCSegmentPair > *ptrSegmentPairRelation) final
Generate and assign the contained variables.
A reconstructed sequence of two dimensional hits in one super layer.
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
const CDCSegment2D * getToSegment() const
Getter for the to segment.
std::size_t size() const
Getter for the total number of hits in this segment pair.
Type for two related objects.
static constexpr int named(const char *name)
Abstract base class for different kinds of events.