21 std::ostream&
operator<<(std::ostream&
s,
const PixelROCName& pixelroc);
36 char detsub()
const {
return (
id_&0x80000000)?
'B':
'F';}
37 char mp()
const {
return id_&0x40000000?
'p':
'm';}
38 char IO()
const {
return id_&0x20000000?
'I':
'O';}
42 int disk()
const {assert((
id_&0x80000000)==0);
return (
id_>>12)&0x3;}
43 int blade()
const {assert((
id_&0x80000000)==0);
return (
id_>>7)&0x1f;}
44 int panel()
const {assert((
id_&0x80000000)==0);
return ((
id_>>6)&0x1)+1;}
45 int plaquet()
const {assert((
id_&0x80000000)==0);
return ((
id_>>4)&0x3)+1;}
48 int sec()
const {assert((
id_&0x80000000)!=0);
return ((
id_>>14)&0x7)+1;}
49 int layer()
const {assert((
id_&0x80000000)!=0);
return (
id_>>12)&0x3;}
50 int ladder()
const {assert((
id_&0x80000000)!=0);
return (
id_>>6)&0x1f;}
51 char HF()
const {assert((
id_&0x80000000)!=0);
return id_&0x00000800?
'F':
'H';}
52 int module()
const {assert((
id_&0x80000000)!=0);
return ((
id_>>4)&0x3)+1;}
68 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