8#include <tracking/trackFindingCDC/filters/segmentPairRelation/BasicSegmentPairRelationVarSet.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
11#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
14using namespace TrackFindingCDC;
18 if (not ptrSegmentPairRelation)
return false;
20 const CDCSegmentPair* fromSegmentPair = ptrSegmentPairRelation->first;
21 const CDCSegmentPair* toSegmentPair = ptrSegmentPairRelation->second;
24 var<
named(
"middle_sl_id")>() = middleSegment->getISuperLayer();
25 var<
named(
"middle_is_axial")>() = middleSegment->isAxial();
28 var<
named(
"middle_size")>() = middleSegment->size();
bool extract(const Relation< const 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)
Getter for the index from the name.
Float_t & var()
Reference getter for the value of the ith variable. Static version.
Abstract base class for different kinds of events.