10 #ifndef DataFormats_CTPPSDetId_TotemRPDetId 11 #define DataFormats_CTPPSDetId_TotemRPDetId 39 TotemRPDetId(uint32_t Arm, uint32_t Station, uint32_t RomanPot = 0, uint32_t
Plane = 0, uint32_t Chip = 0);
46 uint32_t
plane()
const {
return ((
id_ >> startPlaneBit) & maskPlane); }
53 uint32_t
chip()
const {
return ((
id_ >> startChipBit) & maskChip); }
Detector ID class for TOTEM Si strip detectors.
static const uint32_t maskChip
static const uint32_t startChipBit
NameFlag
type of name returned by *Name functions
constexpr uint32_t rawId() const
get the raw id
uint32_t getRPDecimalId() const
std::ostream & operator<<(std::ostream &os, const TotemRPDetId &id)
bool isStripsCoordinateUDirection() const
TotemRPDetId(uint32_t id)
bool isStripsCoordinateVDirection() const
static const uint32_t lowMaskChip
TotemRPDetId(const CTPPSDetId &id)
void rpName(std::string &name, NameFlag flag=nFull) const
void setPlane(uint32_t det)
void chipName(std::string &name, NameFlag flag=nFull) const
void setChip(uint32_t chip)
static const std::string planeNames[]
Base class for CTPPS detector IDs.
static const uint32_t lowMaskPlane
static const uint32_t startPlaneBit
static const uint32_t maxChip
static const uint32_t maskPlane
uint32_t getPlaneDecimalId() const
void planeName(std::string &name, NameFlag flag=nFull) const
static const uint32_t maxPlane
TotemRPDetId getPlaneId() const
static const std::string chipNames[]
constexpr Detector det() const
get the detector field from this detid