8#include <tracking/trackFindingCDC/filters/trackRelation/BasicTrackRelationVarSet.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
13using namespace TrackFindingCDC;
17 if (not ptrTrackRelation)
return false;
24 const CDCTrack& fromTrack = *ptrFromTrack;
25 const CDCTrack& toTrack = *ptrToTrack;
27 ISuperLayer fromISuperLayer = fromTrack.back().getISuperLayer();
28 ISuperLayer toISuperLayer = toTrack.front().getISuperLayer();
29 std::pair<int, int> superLayerIdPair = std::minmax(fromISuperLayer, toISuperLayer);
30 var<
named(
"sl_id_pair")>() = superLayerIdPair.second * 10 + superLayerIdPair.first;
31 var<
named(
"delta_sl_id")>() = toISuperLayer - fromISuperLayer;
32 var<
named(
"from_size")>() = fromTrack.size();
33 var<
named(
"to_size")>() = toTrack.size();
bool extract(const Relation< const CDCTrack > *ptrTrackRelation) final
Generate and assign the contained variables.
Class representing a sequence of three dimensional reconstructed hits.
Type for two related objects.
From * getFrom() const
Getter for the pointer to the from side object.
To * getTo() const
Getter for the pointer to the to side object.
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.