Belle II Software  release-05-01-25
WireNeighborPair.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/topology/WireNeighborPair.h>
11 
12 #include <tracking/trackFindingCDC/topology/CDCWireTopology.h>
13 
14 using namespace Belle2;
15 using namespace TrackFindingCDC;
16 
18 {
19  if (not getFirst() or not getSecond()) return WireNeighborKind();
20 
22 }
Belle2::TrackFindingCDC::WireNeighborPair::getNeighborKind
WireNeighborKind getNeighborKind() const
Getter for the kind of neighbor hood relation the first wire has with the second.
Definition: WireNeighborPair.cc:17
Belle2::TrackFindingCDC::WireNeighborPair::getSecond
MayBePtr< const CDCWire > getSecond() const
Getter for the second wire.
Definition: WireNeighborPair.h:53
Belle2::TrackFindingCDC::CDCWireTopology::getInstance
static CDCWireTopology & getInstance()
Getter for the singleton instance of the wire topology.
Definition: CDCWireTopology.cc:22
Belle2::TrackFindingCDC::WireNeighborPair::getFirst
MayBePtr< const CDCWire > getFirst() const
Getter for the first wire.
Definition: WireNeighborPair.h:49
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::WireNeighborKind
Type for the neighbor relationship from one wire to another.
Definition: WireNeighborKind.h:35
Belle2::TrackFindingCDC::CDCWireTopology::getNeighborKind
WireNeighborKind getNeighborKind(const WireID &wireID, const WireID &otherWireID) const
Checks if two wires are closest neighbors.
Definition: CDCWireTopology.cc:101