10 #ifndef DataFormats_CTPPSDetId_CTPPSDetId
11 #define DataFormats_CTPPSDetId_CTPPSDetId
61 TotemRPDetId(
unsigned int Arm,
unsigned int Station,
unsigned int RomanPot,
unsigned int Detector);
70 inline int arm()
const
141 static unsigned int rpOfDet(
unsigned int i) {
return i / 10; }
144 static unsigned int stOfDet(
unsigned int i) {
return i / 100; }
147 static unsigned int armOfDet(
unsigned int i) {
return i / 1000; }
150 static unsigned int stOfRP(
unsigned int i) {
return i / 10; }
153 static unsigned int armOfRP(
unsigned int i) {
return i / 100; }
156 static unsigned int armOfSt(
unsigned int i) {
return i / 10; }
198 inline void init(
unsigned int Arm,
unsigned int Station,
unsigned int RomanPot,
unsigned int Detector);
static const unsigned int startRPBit
void init(unsigned int Arm, unsigned int Station, unsigned int RomanPot, unsigned int Detector)
static std::string rpName(unsigned int id, NameFlag flag=nFull)
returns official name of a RP characterized by ''id''; if ''full'' is true, name of station is prefix...
static unsigned int rpOfDet(unsigned int i)
returns ID of RP for given detector ID ''i''
static std::string officialName(ElementLevel level, unsigned int id, NameFlag flag=nFull, unsigned char strip=0)
shortcut to use any of the *Name methods, given the ElementLevel
static std::string planeName(unsigned int id, NameFlag flag=nFull)
returns official name of a plane characterized by ''id''; if ''full'' is true, name of RP is prefixed...
static unsigned int rawToDecId(unsigned int raw)
fast conversion Raw to Decimal ID
static std::string chipName(unsigned int id, NameFlag flag=nFull)
returns official name of a chip characterized by ''id''; if ''full'' is true, name of plane is prefix...
static bool isStripsCoordinateUDirection(int Detector)
static const int kSubdetOffset
bool isStripsCoordinateUDirection() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static unsigned int armOfRP(unsigned int i)
returns ID of arm for given RP ID ''i''
NameFlag
type of name returned by *Name functions
static std::string stationName(unsigned int id, NameFlag flag=nFull)
returns official name of a station characterized by ''id''; if ''full'' is true, name of arm is prefi...
bool isStripsCoordinateVDirection() const
static const unsigned int maskDet
static const unsigned int startStationBit
static const unsigned int maskRP
static std::string stripName(unsigned int id, unsigned char strip, NameFlag flag=nFull)
returns official name of a strip characterized by ''id'' (of chip) and strip number; if ''full'' is t...
static const unsigned int totem_rp_subdet_id
static unsigned int stOfDet(unsigned int i)
returns ID of station for given detector ID ''i''
static const unsigned int maxRP
static const unsigned int startDetBit
ElementLevel
level identifier in the RP hierarchy
static unsigned int armOfSt(unsigned int i)
returns ID of arm for given station ID ''i''
static const unsigned int startArmBit
static const unsigned int maxStation
static unsigned int armOfDet(unsigned int i)
returns ID of arm for given detector ID ''i''
static const unsigned int maxDet
unsigned int detectorDecId() const
static unsigned int stOfRP(unsigned int i)
returns ID of station for given RP ID ''i''
static const int kDetOffset
static std::string armName(unsigned int id, NameFlag flag=nFull)
returns official name of an arm characterized by ''id''; if ''full'' is true, prefix rp_ added ...
static std::string systemName(NameFlag flag=nFull)
returns the name of the RP system
static bool check(unsigned int raw)
returs true it the raw ID is a TOTEM RP one
static const unsigned int maxArm
static const unsigned int maskArm
static unsigned int decToRawId(unsigned int dec)
fast conversion Decimal to Raw ID
static const unsigned int maskStation