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;
68 std::string mthn =
"[PixelHdwAddress::setAddress()]\t\t\t ";
69 if (what ==
"fecnumber") {
71 }
else if (what ==
"mfec") {
73 }
else if (what ==
"mfecchannel") {
75 }
else if (what ==
"portaddress") {
77 }
else if (what ==
"hubaddress") {
79 }
else if (what ==
"rocid") {
81 }
else if (what ==
"fednumber") {
83 }
else if (what ==
"fedchannel") {
85 }
else if (what ==
"fedrocnumber") {
88 std::cout << __LINE__ <<
"]\t" << mthn <<
"Could not set a value for " << what <<
" (invalid keyword)" << std::endl;
95 std::string mthn =
"[PixelHdwAddress::compare()]\t\t\t ";
99 if (what ==
"fecnumber") {
105 }
else if (what ==
"mfec") {
106 if (
mfec_ != newValue) {
111 }
else if (what ==
"mfecchannel") {
117 }
else if (what ==
"portaddress") {
123 }
else if (what ==
"hubaddress") {
129 }
else if (what ==
"rocid") {
135 }
else if (what ==
"fednumber") {
141 }
else if (what ==
"fedchannel") {
147 }
else if (what ==
"fedrocnumber") {
154 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)
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_