10 detectors_ = detectors_ | (1 << theDetector);
12 detectors_ = detectors_ ^ (1 << theDetector);
20 if (!isSingleDetector())
23 int pos = leastSignificantBitPosition(detectors_);
36 if (
n & 0x000000000000FFFFLL) {
41 if (
n & 0x00000000000000FFLL) {
46 if (
n & 0x000000000000000FLL) {
51 if (
n & 0x0000000000000003LL) {
56 if (
n & 0x0000000000000001LL) {
66 out <<
"CaloID: " <<
id.detectors();
Detectors detector() const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
int leastSignificantBitPosition(unsigned n) const
void setDetector(CaloID::Detectors theDetector, bool value)
tells the CaloID that it describes a given detector