#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 19 of file CaloID.h.
|
inline |
|
inline |
Definition at line 37 of file CaloID.h.
References setDetector().
|
inlinevirtual |
bool CaloID::detector | ( | CaloID::Detectors | theDetector | ) | const |
CaloID::Detectors CaloID::detector | ( | ) | const |
Definition at line 19 of file CaloID.cc.
Referenced by detectors(), and isSingleDetector().
|
inline |
Definition at line 46 of file CaloID.h.
References detector(), and detectors_.
|
inline |
Definition at line 52 of file CaloID.h.
References detector(), and detectors_.
|
private |
Definition at line 30 of file CaloID.cc.
Referenced by operator=().
Definition at line 61 of file CaloID.h.
References detectors_, leastSignificantBitPosition(), dqmiodumpmetadata::n, operator<<, and MillePedeFileConverter_cfg::out.
void CaloID::setDetector | ( | CaloID::Detectors | theDetector, |
bool | value | ||
) |
|
friend |
Referenced by operator=().
|
private |
packs the detector information into a bitmask. a CaloID can describe several detectors (bit or)
Definition at line 74 of file CaloID.h.
Referenced by detectors(), isSingleDetector(), and operator=().