Belle II Software development
AllTrackRelationFilter.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/trackRelation/AllTrackRelationFilter.h>
9
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
15Weight AllTrackRelationFilter::operator()(const CDCTrack& fromTrack, const CDCTrack& toTrack)
16{
17 return fromTrack.getAutomatonCell().getCellWeight() + toTrack.getAutomatonCell().getCellWeight();
18}
Weight operator()(const CDCTrack &fromTrack, const CDCTrack &toTrack) final
Implementation accepting all possible neighbors.
Weight getCellWeight() const
Getter for the cell weight.
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition: CDCTrack.h:125
Abstract base class for different kinds of events.