8#include <tracking/trackFindingCDC/filters/segmentPair/BasicSegmentPairVarSet.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
11#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
14using namespace TrackFindingCDC;
18 if (not ptrSegmentPair)
return false;
28 if (fromSegment->empty())
return false;
29 if (toSegment->empty())
return false;
31 var<
named(
"axial_first")>() = fromSegment->back().isAxial();
32 var<
named(
"axial_size")>() = axialSegment->size();
33 var<
named(
"stereo_size")>() = stereoSegment->size();
35 ISuperLayer fromISuperLayer = fromSegment->back().getISuperLayer();
36 ISuperLayer toISuperLayer = toSegment->front().getISuperLayer();
38 std::pair<int, int> superLayerIdPair = std::minmax(fromISuperLayer, toISuperLayer);
39 var<
named(
"sl_id_pair")>() = superLayerIdPair.second * 10 + superLayerIdPair.first;
bool extract(const CDCSegmentPair *ptrSegmentPair) 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 * getAxialSegment() const
Getter for the axial segment.
const CDCSegment2D * getToSegment() const
Getter for the to segment.
const CDCSegment2D * getStereoSegment() const
Getter for the stereo segment.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
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.