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
uint16_t *__restrict__ id
constexpr bool null() const
is this a null id ?
constexpr uint32_t rawId() const
get the raw id
constexpr bool operator<(DetId id) const
comparison
static const int kSubdetOffset
static const int kSubdetMask
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
constexpr DetId(Detector det, int subdet)
Create an id, filling the detector and subdetector fields as specified.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
constexpr bool operator!=(DetId id) const
inequality
constexpr uint32_t operator()() const
bool operator!=(DTCELinkId const &lhs, DTCELinkId const &rhs)
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
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
static const int kDetOffset
constexpr DetId()
Create an empty or null id (also for persistence)
constexpr Detector det() const
get the detector field from this detid