Belle II Software
release-08-01-10
|
Type for the neighbor relationship from one wire to another. More...
#include <WireNeighborKind.h>
Public Member Functions | |
WireNeighborKind ()=default | |
Default constructor - constructs an invalid neighbor kind. | |
WireNeighborKind (short cellDistance, short oClockDirection) | |
Useful constructor from cell distance and direction to reach the designated neighbor. | |
short | getILayerDifference () const |
Calculate the distance between the current and the layer of the designated neighbor. | |
short | getAbsILayerDifference () const |
Calculate the absolute distance between the current and the layer of the designated neighbor. | |
short | getILayerDifferenceSign () const |
Calculate if the designated neighbor is more outside. | |
short | getCellDistance () const |
Get the distance to the wire neighbor counted in number of cells. More... | |
short | getOClockDirection () const |
Get the direction on the clock to follow to reach the neighbor. | |
bool | isValid () const |
Check if the neighbor kind is in principle valid. | |
Private Attributes | |
short | m_cellDistance = 0 |
Memory for the distance between to wires counted in numbers of cells. | |
short | m_oClockDirection = 0 |
Memory for the direction the neighbor is located. Range 1 - 12 imaged on a regular clock. | |
Type for the neighbor relationship from one wire to another.
Representations is tailored to cover the primary and secondary neighborhood only.
Definition at line 25 of file WireNeighborKind.h.
|
inline |
Get the distance to the wire neighbor counted in number of cells.
This is typically 1 for the primary neighbors and 2 for the secondary neighbors
Definition at line 62 of file WireNeighborKind.h.