11#include <framework/logging/Logger.h>
45 explicit WireID(
unsigned short eWire = 65535)
62 WireID(
unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire);
69 WireID(
unsigned short iCLayer,
unsigned short iWire);
77 static_cast<TObject
>(*this) = wireID;
92 operator unsigned short()
const
112 void setWireID(
unsigned short iSuperLayer,
unsigned short iLayer,
unsigned short iWire)
114 B2DEBUG(250,
"setWireID called with " << iSuperLayer <<
", " << iLayer <<
", " << iWire);
115 m_eWire = iWire + 512 * iLayer + 4096 * iSuperLayer;
119 void setWireID(
unsigned short iCLayer,
unsigned short iWire);
124 B2DEBUG(250,
"setWireID called with " << eWire);
138 return ((
m_eWire % 4096) / 512);
Class to identify a wire inside the CDC.
WireID(const WireID &wireID)
Copy constructor.
unsigned short m_eWire
Internal storage for the wire identifier in the encoded form.
bool operator<(const WireID &rhs) const
Order by unique id.
WireID & operator=(const WireID &wireID)
Assignment operator.
bool operator==(const WireID &rhs) const
Check for equality.
unsigned short getICLayer() const
Getter for continuous layer numbering.
unsigned short getIWire() const
Getter for wire within the layer.
ClassDef(WireID, 2)
ROOT Macro.
unsigned short getEWire() const
Getter for encoded wire number.
void setWireID(unsigned short eWire)
Setter using the encoded wire number.
unsigned short getISuperLayer() const
Getter for Super-Layer.
WireID & operator=(unsigned short eWire)
Assignment from unsigned short.
WireID(unsigned short eWire=65535)
Constructor taking the encoded wire number.
unsigned short getILayer() const
Getter for layer within the Super-Layer.
void setWireID(unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire)
Setter using official numbering.
Abstract base class for different kinds of events.