31 <<
" is not a valid Totem RP id";
42 <<
" Invalid parameters: "
44 <<
" Station "<<Station
45 <<
" RomanPot "<<RomanPot
46 <<
" Detector "<<Detector
50 uint32_t
ok=0xfe000000;
64 this->
init(Arm, Station, RomanPot, Detector);
71 os <<
" Arm "<<
id.arm()
72 <<
" Station "<<
id.station()
73 <<
" RomanPot "<<
id.romanPot()
74 <<
" Detector "<<
id.detector();
84 if (flag ==
nFull) name =
"rp";
85 if (flag ==
nPath) name =
"RP";
98 if (
id == 0) name +=
"45";
99 if (
id == 1) name +=
"56";
110 if (flag ==
nPath) name =
armName(
id / 10, flag) +
"/station ";
112 if ((
id % 10) == 0) name +=
"210";
113 if ((
id % 10) == 2) name +=
"220";
126 if ((
id % 10) == 0) name +=
"nr_tp";
127 if ((
id % 10) == 1) name +=
"nr_bt";
128 if ((
id % 10) == 2) name +=
"nr_hr";
129 if ((
id % 10) == 3) name +=
"fr_hr";
130 if ((
id % 10) == 4) name +=
"fr_tp";
131 if ((
id % 10) == 5) name +=
"fr_bt";
140 if (flag ==
nFull) name =
rpName(
id / 10, flag) +
"_";
141 if (flag ==
nPath) name =
rpName(
id / 10, flag) +
"/plane ";
144 sprintf(buf,
"%02u", (
id % 10) + 1);
158 sprintf(buf,
"%u", (
id % 10) + 1);
172 sprintf(buf,
"%u", strip);
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 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 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...
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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...
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 maxRP
static const unsigned int startDetBit
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
ElementLevel
level identifier in the RP hierarchy
static const unsigned int startArmBit
static const unsigned int maxStation
static const unsigned int maxDet
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
Detector det() const
get the detector field from this detid
static const unsigned int maxArm
static const unsigned int maskArm
static const unsigned int maskStation