9 #ifndef DataFormats_CTPPSDetId_CTPPSDetId 10 #define DataFormats_CTPPSDetId_CTPPSDetId 47 CTPPSDetId(uint32_t
SubDet, uint32_t Arm, uint32_t Station, uint32_t RomanPot = 0);
SubDetector
CTPPS sub-detectors.
static const uint32_t maxStation
NameFlag
type of name returned by *Name functions
void setArm(uint32_t arm)
static const uint32_t startRPBit
static const uint32_t maskStation
static const uint32_t maskRP
CTPPSDetId stationId() const
static const std::string armNames[]
static const uint32_t lowMaskStation
static const uint32_t maskArm
void rpName(std::string &name, NameFlag flag=nFull) const
static const uint32_t maxArm
void armName(std::string &name, NameFlag flag=nFull) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const std::string subDetectorPaths[]
static const uint32_t maxRP
static const std::string rpNames[]
void setStation(uint32_t station)
static const std::string subDetectorNames[]
std::ostream & operator<<(std::ostream &os, const CTPPSDetId &id)
constexpr uint32_t rawId() const
get the raw id
static const uint32_t startStationBit
Base class for CTPPS detector IDs.
CTPPSDetId(uint32_t id)
Construct from a raw id.
result_type operator()(const argument_type &id) const noexcept
void stationName(std::string &name, NameFlag flag=nFull) const
static const uint32_t startArmBit
static const std::string stationNames[]
static const uint32_t lowMaskArm
void subDetectorName(std::string &name, NameFlag flag=nFull) const
static const uint32_t lowMaskRP