Belle II Software development
WireNeighborPair.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/topology/WireNeighborPair.h>
9
10#include <tracking/trackFindingCDC/topology/CDCWireTopology.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
16{
17 if (not getFirst() or not getSecond()) return WireNeighborKind();
18
20}
WireNeighborKind getNeighborKind(const WireID &wireID, const WireID &otherWireID) const
Checks if two wires are closest neighbors.
static CDCWireTopology & getInstance()
Getter for the singleton instance of the wire topology.
Type for the neighbor relationship from one wire to another.
WireNeighborKind getNeighborKind() const
Getter for the kind of neighbor hood relation the first wire has with the second.
MayBePtr< const CDCWire > getSecond() const
Getter for the second wire.
MayBePtr< const CDCWire > getFirst() const
Getter for the first wire.
Abstract base class for different kinds of events.