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; }
41 return (
id_ >> 12) & 0x3;
45 return (
id_ >> 7) & 0x1f;
49 return ((
id_ >> 6) & 0x1) + 1;
53 return ((
id_ >> 4) & 0x3) + 1;
59 return ((
id_ >> 14) & 0x7) + 1;
63 return (
id_ >> 12) & 0x3;
67 return (
id_ >> 6) & 0x1f;
71 return id_ & 0x00000800 ?
'F' :
'H';
75 return ((
id_ >> 4) & 0x3) + 1;
84 unsigned int id()
const {
return id_; }
void setIdFPix(char np, char LR, int disk, int blade, int panel, int plaquet, int roc)
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)
void check(bool check, const std::string &name)
void parsename(std::string name)
std::string rocname() const
const bool operator<(const PixelROCName &aROC) const
const bool operator==(const PixelROCName &aROC) const