Go to the documentation of this file. 1 #ifndef DATAFORMATS_DETID_H
2 #define DATAFORMATS_DETID_H
54 constexpr
operator uint32_t()
const {
return id_; }
57 constexpr uint32_t
rawId()
const {
return id_; }
59 constexpr
bool null()
const {
return id_ == 0; }
constexpr bool operator==(DetId id) const
equality
constexpr bool operator<(uint32_t i, DetId id)
comparison
constexpr Detector det() const
get the detector field from this detid
static const int kSubdetMask
static const int kSubdetOffset
constexpr DetId(Detector det, int subdet)
Create an id, filling the detector and subdetector fields as specified.
constexpr bool operator<(DetId id) const
comparison
constexpr bool operator!=(DetId id) const
inequality
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
constexpr DetId(uint32_t id)
Create an id from a raw number.
static const int kDetMask
result_type operator()(argument_type const &id) const noexcept
constexpr bool operator!=(uint32_t i, DetId id)
inequality
static const int kDetOffset
constexpr uint32_t rawId() const
get the raw id
constexpr bool operator==(uint32_t i, DetId id)
equality
constexpr DetId()
Create an empty or null id (also for persistence)
constexpr uint32_t operator()() const