Belle II Software light-2406-ragdoll
|
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. | |
RestrictedDetectorSet (const DetectorSet &set) | |
(Copy) constructor. | |
RestrictedDetectorSet (EDetector det) | |
Constructor for a set containg one detector ID. | |
RestrictedDetectorSet & | operator+= (const DetectorSet &set) |
Addition of another set to this one. | |
Iterator | begin () const |
Beginning iterator. | |
Iterator | end () const |
Ending iterator. | |
DetectorSet & | operator-= (const DetectorSet &set) |
Subtraction of another set from this one. | |
bool | operator== (const DetectorSet &set) const |
Equality operator. | |
bool | operator!= (const DetectorSet &set) const |
Inequality operator. | |
bool | contains (const DetectorSet &set) const |
Check whether this set contains another set. | |
bool | contains (const Iterator &it) const |
Check whether this set contains detector specified by iterator. | |
int | getIndex (EDetector det) const |
Getter for the index of a given detector in this set. | |
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. | |
Private Member Functions | |
void | checkSet () const |
Check of set validity. | |
ClassDef (DetectorSet, 1) | |
Class version. | |
Static Private Member Functions | |
static uint16_t | getBit (EDetector det) |
Conversion of detector ID to bit pattern. | |
static EDetector | getDetector (uint16_t bit) |
Conversion of bit pattern to detector ID. | |
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 |
Exception that is thrown if there is the attempt to add an invalid detector ID to a restricted set.
Default constructor.
Definition at line 307 of file Const.h.
|
inline |
(Copy) constructor.
set | The copied set of detector IDs. |
Definition at line 314 of file Const.h.
|
inline |
|
inherited |
String for printing in python.
Definition at line 298 of file UnitConst.cc.
|
inherited |
Beginning iterator.
Definition at line 209 of file UnitConst.cc.
|
inlineprivate |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Ending iterator.
Definition at line 220 of file UnitConst.cc.
|
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 |
Addition of another set to this one.
set | The other set of detector IDs. |
Definition at line 327 of file Const.h.
|
inlineinherited |
|
inlineinherited |
|
inlinestatic |
|
inherited |
Getter for number of detector IDs in this set.
Definition at line 289 of file UnitConst.cc.
|
privateinherited |