17 PixelROCName::PixelROCName() : id_(0) {}
22 std::string mthn =
"[PixelROCName::setIdFPix()]\t\t\t\t ";
86 static std::string mthn =
"[PixelROCName::check()]\t\t\t\t ";
91 cout << __LINE__ <<
"]\t" << mthn <<
"ERROR tried to parse string:'" <<
name;
92 cout <<
"' as a ROC name. Will terminate." << endl;
108 if (
name[0] ==
'F') {
121 char digit[2] = {0, 0};
123 int disk = atoi(digit);
130 int bld = atoi(digit);
132 if (std::isdigit(
name[16])) {
134 bld = 10 * bld + atoi(digit);
143 int pnl = atoi(digit);
150 int plq = atoi(digit);
157 int roc = atoi(digit);
160 roc =
roc * 10 + atoi(digit);
179 char digit[2] = {0, 0};
181 int sec = atoi(digit);
188 int layer = atoi(digit);
197 if (std::isdigit(
name[23])) {
217 int roc = atoi(digit);
220 roc =
roc * 10 + atoi(digit);
238 std::ostringstream s1;
void setIdFPix(char np, char LR, int disk, int blade, int panel, int plaquet, int roc)
const PixelROCName & operator=(const PixelROCName &aROC)
void setIdBPix(char np, char LR, int sec, int layer, int ladder, char HF, int module, int roc)
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
constexpr std::array< uint8_t, layerIndexSize > layer
void check(bool check, const std::string &name)
void parsename(std::string name)
std::string rocname() const
This class stores the name and related hardware mappings for a ROC.