Belle II Software
release-08-01-10
|
A class for sets of detector IDs whose content is limited to restricted set of valid detector IDs. More...
#include <Const.h>
Public Member Functions | |
RestrictedDetectorSet () | |
Exception that is thrown if there is the attempt to add an invalid detector ID to a restricted set. More... | |
RestrictedDetectorSet (const DetectorSet &set) | |
(Copy) constructor. More... | |
RestrictedDetectorSet (EDetector det) | |
Constructor for a set containg one detector ID. More... | |
RestrictedDetectorSet & | operator+= (const DetectorSet &set) |
Addition of another set to this one. More... | |
Iterator | begin () const |
Beginning iterator. | |
Iterator | end () const |
Ending iterator. | |
DetectorSet & | operator-= (const DetectorSet &set) |
Subtraction of another set from this one. More... | |
bool | operator== (const DetectorSet &set) const |
Equality operator. More... | |
bool | operator!= (const DetectorSet &set) const |
Inequality operator. More... | |
bool | contains (const DetectorSet &set) const |
Check whether this set contains another set. More... | |
bool | contains (const Iterator &it) const |
Check whether this set contains detector specified by iterator. More... | |
int | getIndex (EDetector det) const |
Getter for the index of a given detector in this set. More... | |
size_t | size () const |
Getter for number of detector IDs in this set. | |
std::string | __str__ () const |
String for printing in python. | |
Static Public Member Functions | |
static DetectorSet | set () |
Accessor for the set of valid detector IDs. More... | |
Private Member Functions | |
void | checkSet () const |
Check of set validity. More... | |
ClassDef (DetectorSet, 1) | |
Class version. | |
Static Private Member Functions | |
static uint16_t | getBit (EDetector det) |
Conversion of detector ID to bit pattern. More... | |
static EDetector | getDetector (uint16_t bit) |
Conversion of bit pattern to detector ID. More... | |
Private Attributes | |
uint16_t | m_bits |
The internal representation of the set as bit pattern. | |
A class for sets of detector IDs whose content is limited to restricted set of valid detector IDs.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineinherited |
|
inlineinherited |
|
staticprivateinherited |
Conversion of detector ID to bit pattern.
det | The detector ID. |
Definition at line 246 of file UnitConst.cc.
|
staticprivateinherited |
Conversion of bit pattern to detector ID.
bit | The bit pattern. |
Definition at line 259 of file UnitConst.cc.
|
inherited |
Getter for the index of a given detector in this set.
det | The detector ID. |
Definition at line 278 of file UnitConst.cc.
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlinestatic |