1 #ifndef DATAFORMATS_DETID_H 2 #define DATAFORMATS_DETID_H 32 id_=((det&0xF)<<28)|((subdet&0x7)<<25);
41 operator uint32_t()
const {
return id_; }
77 return std::hash<uint32_t>()(
id.
rawId());
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) ...
result_type operator()(argument_type const &id) const noexcept
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