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/trackFindingCDC/eventdata/tracks/CDCSegmentTriple.h>
11#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
12
13using namespace Belle2;
14using namespace TrackFindingCDC;
15
17 __attribute__((unused)),
18 const CDCSegmentTriple& toSegmentTriple)
19{
20 // Just let all found neighors pass for the base implementation
21 // with the default weight
22 return -toSegmentTriple.getStartSegment()->size();
23}
Weight operator()(const CDCSegmentTriple &fromSegmentTriple, const CDCSegmentTriple &toSegmentTriple) final
Main filter method returning the weight of the neighborhood relation.
Class representing a triple of reconstructed segements in adjacent superlayer.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start axial segment.
Abstract base class for different kinds of events.