14#include <fmt/format.h>
30 return id.deId() << 16 |
id.dsId();
42 os << fmt::format(
"DsDetId(DE={:4d},DS={:4d}) CODE={:8d}",
id.deId(),
id.dsId(),
encode(
id));
48 return fmt::format(
"DE{}-DS{}", dsDetId.
deId(), dsDetId.
dsId());
unsigned short int uint16_t
A DsDetId is just a pair (detection element id, dual sampa id)
DsDetId(int deId, int dsId)
uint16_t deId() const
deId returns one of the 156 possible detection element id
int assertIsInRange(std::string what, uint64_t value, uint64_t min, uint64_t max)
std::string asString(const SampaCluster &sc)
DsDetId decodeDsDetId(uint32_t code)
Create a DsDetId object from a integer code.
uint32_t encode(const DsDetId &id)
Create an integer code for the given id.
std::ostream & operator<<(std::ostream &stream, o2::InteractionRecord const &ir)