 |
Belle II Software
release-05-02-19
|
13 #include <framework/logging/Logger.h>
36 class WireID :
public TObject {
47 explicit WireID(
unsigned short eWire = 65535)
64 WireID(
unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire);
71 WireID(
unsigned short iCLayer,
unsigned short iWire);
79 static_cast<TObject
>(*this) = wireID;
94 operator unsigned short()
const
114 void setWireID(
unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire)
116 B2DEBUG(250,
"setWireID called with " << iSuperLayer <<
", " << iLayer <<
", " << iWire);
117 m_eWire = iWire + 512 * iLayer + 4096 * iSuperLayer;
121 void setWireID(
unsigned short iCLayer,
unsigned short iWire);
126 B2DEBUG(250,
"setWireID called with " << eWire);
bool operator==(const WireID &rhs) const
Check for equality.
Class to identify a wire inside the CDC.
unsigned short getILayer() const
Getter for layer within the Super-Layer.
unsigned short getEWire() const
Getter for encoded wire number.
unsigned short getISuperLayer() const
Getter for Super-Layer.
ClassDef(WireID, 2)
ROOT Macro.
Abstract base class for different kinds of events.
WireID & operator=(const WireID &wireID)
Assignment operator.
WireID(unsigned short eWire=65535)
Constructor taking the encoded wire number.
void setWireID(unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire)
Setter using official numbering.
unsigned short getIWire() const
Getter for wire within the layer.
unsigned short getICLayer() const
Getter for continuous layer numbering.
unsigned short m_eWire
Internal storage for the wire identifier in the encoded form.
bool operator<(const WireID &rhs) const
Order by unique id.