36 : fecnumber_(fecnumber),
38 mfecchannel_(mfecchannel),
39 portaddress_(portaddress),
40 hubaddress_(hubaddress),
42 fednumber_(fednumber),
43 fedchannel_(fedchannel),
44 fedrocnumber_(fedrocnumber) {
51 s <<
"[PixelHdwAddress::operator<<]" << std::endl;
52 s <<
"fecnumber :" << pixelroc.
fecnumber_ << std::endl;
53 s <<
"mfec :" << pixelroc.
mfec_ << std::endl;
56 s <<
"hubaddress :" << pixelroc.
hubaddress_ << std::endl;
57 s <<
"rocid :" << pixelroc.
rocid_ << std::endl;
58 s <<
"fednumber :" << pixelroc.
fednumber_ << std::endl;
59 s <<
"fedchannel :" << pixelroc.
fedchannel_ << std::endl;
83 std::string mthn =
"[PixelHdwAddress::setAddress()]\t\t\t ";
84 if (what ==
"fecnumber") {
86 }
else if (what ==
"mfec") {
88 }
else if (what ==
"mfecchannel") {
90 }
else if (what ==
"portaddress") {
92 }
else if (what ==
"hubaddress") {
94 }
else if (what ==
"rocid") {
96 }
else if (what ==
"fednumber") {
98 }
else if (what ==
"fedchannel") {
100 }
else if (what ==
"fedrocnumber") {
103 std::cout << __LINE__ <<
"]\t" << mthn <<
"Could not set a value for " << what <<
" (invalid keyword)" << std::endl;
110 std::string mthn =
"[PixelHdwAddress::compare()]\t\t\t ";
114 if (what ==
"fecnumber") {
120 }
else if (what ==
"mfec") {
121 if (
mfec_ != newValue) {
126 }
else if (what ==
"mfecchannel") {
132 }
else if (what ==
"portaddress") {
138 }
else if (what ==
"hubaddress") {
144 }
else if (what ==
"rocid") {
150 }
else if (what ==
"fednumber") {
156 }
else if (what ==
"fedchannel") {
162 }
else if (what ==
"fedrocnumber") {
169 std::cout << __LINE__ <<
"]\t" << mthn <<
"Could not compare value for " << what <<
" (invalid keyword)"
bool operator()(const PixelHdwAddress &roc1, const PixelHdwAddress &roc2) const
Store mfec, mfecchannel etc.
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
const PixelHdwAddress & operator=(const PixelHdwAddress &aROC)
unsigned int mfecchannel_
unsigned int portaddress_
void setAddress(std::string what, int value)
Store mfec, mfecchannel etc.
void compare(std::string what, bool &changed, unsigned int newValue, unsigned int &oldValue)
unsigned int fedrocnumber_