![]() |
Belle II Software development
|
Class to identify a wire inside the CDC. More...
#include <WireID.h>
Public Member Functions | |
WireID (unsigned short eWire=65535) | |
Constructor taking the encoded wire number. | |
WireID (const WireID &wireID) | |
Copy constructor. | |
WireID (unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire) | |
Constructor using the official numbering scheme. | |
WireID (unsigned short iCLayer, unsigned short iWire) | |
Constructor using continuous layer numbers as used in the geometry build-up for the simulation. | |
WireID & | operator= (const WireID &wireID) |
Assignment operator. | |
WireID & | operator= (unsigned short eWire) |
Assignment from unsigned short. | |
operator unsigned short () const | |
Convert to unsigned short. | |
bool | operator== (const WireID &rhs) const |
Check for equality. | |
bool | operator< (const WireID &rhs) const |
Order by unique id. | |
void | setWireID (unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire) |
Setter using official numbering. | |
void | setWireID (unsigned short iCLayer, unsigned short iWire) |
Setter using numbering of geometry build-up. | |
void | setWireID (unsigned short eWire) |
Setter using the encoded wire number. | |
unsigned short | getISuperLayer () const |
Getter for Super-Layer. | |
unsigned short | getILayer () const |
Getter for layer within the Super-Layer. | |
unsigned short | getIWire () const |
Getter for wire within the layer. | |
unsigned short | getICLayer () const |
Getter for continuous layer numbering. | |
unsigned short | getEWire () const |
Getter for encoded wire number. | |
Private Member Functions | |
ClassDef (WireID, 2) | |
ROOT Macro. | |
Private Attributes | |
unsigned short | m_eWire |
Internal storage for the wire identifier in the encoded form. | |
Class to identify a wire inside the CDC.
There are three representations for this:
|
inlineexplicit |
Constructor taking the encoded wire number.
eWire | Number of wire using the encoded format. Careful - wires are not continuously within the encoded number. The default is set to the maximum allowed value, as 0 corresponds already to some wire. This assigned value does NOT correspond to any real wire. |
Definition at line 45 of file WireID.h.
WireID | ( | unsigned short | iSuperLayer, |
unsigned short | iLayer, | ||
unsigned short | iWire | ||
) |
Constructor using the official numbering scheme.
iSuperLayer | Number of Super-Layer. |
iLayer | Number of Layer within the Super-Layer. |
iWire | Wire number within the layer. |
Definition at line 35 of file WireID.cc.
WireID | ( | unsigned short | iCLayer, |
unsigned short | iWire | ||
) |
Constructor using continuous layer numbers as used in the geometry build-up for the simulation.
iCLayer | Number of Layer counted continuously over the full CDC. |
iWire | Number of Wire within the layer equivalenty to the official numbering. |
|
inline |
unsigned short getICLayer | ( | ) | const |
Getter for continuous layer numbering.
Definition at line 24 of file WireID.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Convert to unsigned short.
|
inline |
|
inline |
|
inline |
|
inline |
void setWireID | ( | unsigned short | iCLayer, |
unsigned short | iWire | ||
) |
Setter using numbering of geometry build-up.
|
inline |
|
private |