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/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 since we have the same start -> end segment
21 // and let the cellular automaton figure auto which is longest
22
23 // can of course be adjusted by comparing the z components between
24 // triple and neighbor triples
25
26 // neighbor weight is a penalty for the overlap of the segments since we would
27 // count it to times
28 // could also be a better measure of fit quality
29 return -toSegmentTriple.getStartSegment()->size();
30}
Class representing a triple of reconstructed segements in adjacent superlayer.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start axial segment.
Weight operator()(const CDCSegmentTriple &fromSegmentTriple, const CDCSegmentTriple &toSegmentTriple) final
Implementation currently accepts all combinations.
Abstract base class for different kinds of events.