Belle II Software development
AllSegmentTripleRelationFilter.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/AllSegmentTripleRelationFilter.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 for the base implementation
22 // with the default weight
23 return -toSegmentTriple.getStartSegment()->size();
24}
TrackingUtilities::Weight operator()(const TrackingUtilities::CDCSegmentTriple &fromSegmentTriple, const TrackingUtilities::CDCSegmentTriple &toSegmentTriple) final
Main filter method returning the weight of the neighborhood relation.
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.