|
| | WireID (unsigned short eWire=65535) |
| | Constructor taking the encoded wire number. More...
|
| |
|
| WireID (const WireID &wireID) |
| | Copy constructor.
|
| |
| | WireID (unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire) |
| | Constructor using the official numbering scheme. More...
|
| |
| | WireID (unsigned short iCLayer, unsigned short iWire) |
| | Constructor using continuous layer numbers as used in the geometry build-up for the simulation. More...
|
| |
|
WireID & | operator= (const WireID &wireID) |
| | Assignment operator.
|
| |
| WireID & | operator= (unsigned short eWire) |
| | Assignment from unsigned short. More...
|
| |
|
| 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. More...
|
| |
|
unsigned short | getICLayer () const |
| | Getter for continuous layer numbering.
|
| |
|
unsigned short | getEWire () const |
| | Getter for encoded wire number.
|
| |
Class to identify a wire inside the CDC.
There are three representations for this:
- Super-Layer, Layer within the Super-Layer, Wire within the Layer as documented here,
- Layer as continuous counted through all Super-Layers, Wire within the Layer,
- Wire number encoded into a single unsigned short. This works as following:
SuperLayer: bits 1 - 4 (/4096)
Layer: bits 5 - 7 (% 4096, / 512)
Wire: bits 8 - 16 (% 512)
Note: These operations could as well be achieved by bit-shifting operations.
Definition at line 34 of file WireID.h.