Belle II Software light-2406-ragdoll
|
The DetectorSet class for sets of detector IDs in the form of EDetector values. More...
#include <Const.h>
Classes | |
class | Iterator |
Iterator. More... | |
Public Member Functions | |
DetectorSet () | |
Default constructor. | |
DetectorSet (const DetectorSet &)=default | |
Copy constructor. | |
DetectorSet & | operator= (const DetectorSet &)=default |
Assignment operator. | |
DetectorSet (EDetector det) | |
Constructor for a set containig one detector ID. | |
virtual | ~DetectorSet () |
Destructor. | |
Iterator | begin () const |
Beginning iterator. | |
Iterator | end () const |
Ending iterator. | |
DetectorSet & | operator+= (const DetectorSet &set) |
Addition of another set to this one. | |
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. | |
Private Member Functions | |
DetectorSet (uint16_t bits) | |
Constructor. | |
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. | |
The DetectorSet class for sets of detector IDs in the form of EDetector values.
Only detectors may be included, not subdetectors.
|
inline |
Default constructor.
Definition at line 179 of file Const.h.
|
inline |
Constructor for a set containig one detector ID.
det | The ID of the detector. |
Definition at line 190 of file Const.h.
|
inlinevirtual |
|
inlineexplicitprivate |
std::string __str__ | ( | ) | const |
String for printing in python.
Definition at line 298 of file UnitConst.cc.
Const::DetectorSet::Iterator begin | ( | ) | const |
Beginning iterator.
Definition at line 209 of file UnitConst.cc.
|
inline |
|
inline |
Const::DetectorSet::Iterator end | ( | ) | const |
Ending iterator.
Definition at line 220 of file UnitConst.cc.
|
staticprivate |
Conversion of detector ID to bit pattern.
det | The detector ID. |
Definition at line 246 of file UnitConst.cc.
|
staticprivate |
Conversion of bit pattern to detector ID.
bit | The bit pattern. |
Definition at line 259 of file UnitConst.cc.
int getIndex | ( | EDetector | det | ) | const |
Getter for the index of a given detector in this set.
det | The detector ID. |
Definition at line 278 of file UnitConst.cc.
|
inline |
|
inline |
|
inline |
|
inline |
size_t size | ( | ) | const |
Getter for number of detector IDs in this set.
Definition at line 289 of file UnitConst.cc.
|
private |