File indexing completed on 2024-04-06 11:58:19
0001
0002 #include "CalibFormats/SiStripObjects/interface/SiStripRing.h"
0003 #include <iostream>
0004
0005
0006
0007 SiStripRing::SiStripRing(const FedChannelConnection &conn) : fecRing_(conn.fecRing()), ccus_() {
0008 ccus_.reserve(256);
0009 addDevices(conn);
0010 }
0011
0012
0013
0014 void SiStripRing::addDevices(const FedChannelConnection &conn) {
0015 auto iccu = ccus_.begin();
0016 while (iccu != ccus_.end() && (*iccu).ccuAddr() != conn.ccuAddr()) {
0017 iccu++;
0018 }
0019 if (iccu == ccus().end()) {
0020 ccus_.push_back(SiStripCcu(conn));
0021 } else {
0022 iccu->addDevices(conn);
0023 }
0024 }