9 #ifndef DataFormats_CTPPSDetId_CTPPSDetId 10 #define DataFormats_CTPPSDetId_CTPPSDetId 42 CTPPSDetId(uint32_t
SubDet, uint32_t Arm, uint32_t Station, uint32_t RomanPot=0);
54 return ((
id_>>startArmBit) & maskArm);
65 return ((
id_>>startStationBit) & maskStation);
76 return ((
id_>>startRPBit) & maskRP);
119 case nShort: name =
"";
break;
131 case nShort: name =
"";
break;
133 case nPath:
armName(name,
flag); name +=
"/station ";
break;
143 case nShort: name =
"";
break;
SubDetector
CTPPS sub-detectors.
static const uint32_t maxStation
NameFlag
type of name returned by *Name functions
void setArm(uint32_t arm)
constexpr uint32_t rawId() const
get the raw id
CTPPSDetId getStationId() const
static const uint32_t startRPBit
static const uint32_t maskStation
static const uint32_t maskRP
static const std::string armNames[]
static const uint32_t lowMaskStation
static const uint32_t maskArm
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const uint32_t maxArm
void rpName(std::string &name, NameFlag flag=nFull) const
CTPPSDetId getRPId() const
static const std::string subDetectorPaths[]
void armName(std::string &name, NameFlag flag=nFull) const
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)
CTPPSDetId getArmId() const
static const uint32_t startStationBit
Base class for CTPPS detector IDs.
CTPPSDetId(uint32_t id)
Construct from a raw id.
static const uint32_t startArmBit
void stationName(std::string &name, NameFlag flag=nFull) const
static const std::string stationNames[]
static const uint32_t lowMaskArm
static const uint32_t lowMaskRP
void subDetectorName(std::string &name, NameFlag flag=nFull) const