1 #ifndef DATAFORMATS_DETID_H 2 #define DATAFORMATS_DETID_H 31 id_=((det&0xF)<<28)|((subdet&0x7)<<25);
40 operator uint32_t()
const {
return id_; }
static const int kSubdetOffset
DetId()
Create an empty or null id (also for persistence)
DetId(uint32_t id)
Create an id from a raw number.
uint32_t rawId() const
get the raw id
bool operator==(DetId id) const
equality
bool operator!=(DetId id) const
inequality
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool null() const
is this a null id ?
bool operator<(DetId id) const
comparison
static const int kDetOffset
DetId(Detector det, int subdet)
Create an id, filling the detector and subdetector fields as specified.
Detector det() const
get the detector field from this detid
uint32_t operator()() const