Belle II Software development
SimpleSegmentTripleRelationFilter.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/trackFindingCDC/filters/segmentTripleRelation/SimpleSegmentTripleRelationFilter.h>
9
10#include <tracking/trackingUtilities/eventdata/tracks/CDCSegmentTriple.h>
11#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
12
13using namespace Belle2;
14using namespace TrackFindingCDC;
15using namespace TrackingUtilities;
16
18 __attribute__((unused)),
19 const CDCSegmentTriple& toSegmentTriple)
20{
21 // Just let all found neighbors pass since we have the same start -> end segment
22 // and let the cellular automaton figure auto which is longest
23
24 // can of course be adjusted by comparing the z components between
25 // triple and neighbor triples
26
27 // neighbor weight is a penalty for the overlap of the segments since we would
28 // count it to times
29 // could also be a better measure of fit quality
30 return -toSegmentTriple.getStartSegment()->size();
31}
TrackingUtilities::Weight operator()(const TrackingUtilities::CDCSegmentTriple &fromSegmentTriple, const TrackingUtilities::CDCSegmentTriple &toSegmentTriple) final
Implementation currently accepts all combinations.
Class representing a triple of reconstructed segments in adjacent superlayer.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start axial segment.
Abstract base class for different kinds of events.