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