1 #ifndef DATAFORMATS_DETID_H
2 #define DATAFORMATS_DETID_H
33 id_=((det&0xF)<<28)|((subdet&0x7)<<25);
42 operator uint32_t()
const {
return id_; }
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
bool operator==(const CaloTower &t1, const CaloTower &t2)
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<(const FedChannelConnection &, const FedChannelConnection &)
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