21 std::ostream&
operator<<(std::ostream&
s,
const PixelROCName& pixelroc);
33 char detsub()
const {
return (
id_ & 0x80000000) ?
'B' :
'F'; }
34 char mp()
const {
return id_ & 0x40000000 ?
'p' :
'm'; }
35 char IO()
const {
return id_ & 0x20000000 ?
'I' :
'O'; }
36 int roc()
const {
return id_ & 0xf; }
40 assert((
id_ & 0x80000000) == 0);
41 return (
id_ >> 12) & 0x3;
44 assert((
id_ & 0x80000000) == 0);
45 return (
id_ >> 7) & 0x1f;
48 assert((
id_ & 0x80000000) == 0);
49 return ((
id_ >> 6) & 0
x1) + 1;
52 assert((
id_ & 0x80000000) == 0);
53 return ((
id_ >> 4) & 0x3) + 1;
58 assert((
id_ & 0x80000000) != 0);
59 return ((
id_ >> 14) & 0x7) + 1;
62 assert((
id_ & 0x80000000) != 0);
63 return (
id_ >> 12) & 0x3;
66 assert((
id_ & 0x80000000) != 0);
67 return (
id_ >> 6) & 0x1f;
70 assert((
id_ & 0x80000000) != 0);
71 return id_ & 0x00000800 ?
'F' :
'H';
74 assert((
id_ & 0x80000000) != 0);
75 return ((
id_ >> 4) & 0x3) + 1;
86 unsigned int id()
const {
return id_; }
void setIdFPix(char np, char LR, int disk, int blade, int panel, int plaquet, int roc)
const PixelROCName & operator=(const PixelROCName &aROC)
const bool operator<(const PixelROCName &aROC) const
void setIdBPix(char np, char LR, int sec, int layer, int ladder, char HF, int module, int roc)
std::string rocname() const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
void check(bool check, const std::string &name)
void parsename(std::string name)
const bool operator==(const PixelROCName &aROC) const