8#include <tracking/trackFindingCDC/filters/segmentPairRelation/SimpleSegmentPairRelationFilter.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
11#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
14using namespace TrackFindingCDC;
25 size_t fromOverlapSize = fromSegmentPair.
getToSegment()->size();
26 size_t fromSize = fromOverlapSize + fromSegmentPair.
getFromSegment()->size();
30 size_t toSize = toOverlapSize + toSegmentPair.
getToSegment()->size();
33 return -(fromWeight * fromOverlapSize / fromSize + toWeight * toOverlapSize / toSize) / 2.0;
Weight getCellWeight() const
Getter for the cell weight.
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.
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
Weight operator()(const CDCSegmentPair &fromSegmentPair, const CDCSegmentPair &toSegmentPair) final
Main filter method weighting the relation between the segment pairs.
Abstract base class for different kinds of events.