#include <CaloID.h>
Public Types | |
enum | Detectors { DET_ECAL_BARREL = 0, DET_ECAL_ENDCAP, DET_PS1, DET_PS2, DET_HCAL_BARREL, DET_HCAL_ENDCAP, DET_HF, DET_HF_EM, DET_HF_HAD, DET_HO, DET_HGCAL_ENDCAP, DET_NONE } |
Public Member Functions | |
CaloID () | |
default constructor. Sets energy and position to zero More... | |
CaloID (Detectors det) | |
bool | detector (CaloID::Detectors theDetector) const |
Detectors | detector () const |
unsigned | detectors () const |
bool | isSingleDetector () const |
CaloID & | operator= (const CaloID &rhs) |
void | setDetector (CaloID::Detectors theDetector, bool value) |
tells the CaloID that it describes a given detector More... | |
virtual | ~CaloID () |
abstract class More... | |
Private Member Functions | |
int | leastSignificantBitPosition (unsigned n) const |
Private Attributes | |
unsigned | detectors_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const CaloID &id) |
Enumerator | |
---|---|
DET_ECAL_BARREL | |
DET_ECAL_ENDCAP | |
DET_PS1 | |
DET_PS2 | |
DET_HCAL_BARREL | |
DET_HCAL_ENDCAP | |
DET_HF | |
DET_HF_EM | |
DET_HF_HAD | |
DET_HO | |
DET_HGCAL_ENDCAP | |
DET_NONE |
Definition at line 21 of file CaloID.h.
|
inline |
|
inline |
Definition at line 39 of file CaloID.h.
References setDetector().
|
inlinevirtual |
bool CaloID::detector | ( | CaloID::Detectors | theDetector | ) | const |
CaloID::Detectors CaloID::detector | ( | ) | const |
Definition at line 27 of file CaloID.cc.
|
inline |
|
inline |
Definition at line 54 of file CaloID.h.
References detectors_.
|
private |
void CaloID::setDetector | ( | CaloID::Detectors | theDetector, |
bool | value | ||
) |
|
friend |
|
private |
packs the detector information into a bitmask. a CaloID can describe several detectors (bit or)
Definition at line 78 of file CaloID.h.
Referenced by detectors(), isSingleDetector(), and operator=().