Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:18

0001 
0002 #include "CalibFormats/SiStripObjects/interface/SiStripFec.h"
0003 #include <iostream>
0004 
0005 // -----------------------------------------------------------------------------
0006 //
0007 SiStripFec::SiStripFec(const FedChannelConnection &conn) : fecSlot_(conn.fecSlot()), rings_() {
0008   rings_.reserve(8);
0009   addDevices(conn);
0010 }
0011 
0012 // -----------------------------------------------------------------------------
0013 //
0014 void SiStripFec::addDevices(const FedChannelConnection &conn) {
0015   auto iring = rings_.begin();
0016   while (iring != rings_.end() && (*iring).fecRing() != conn.fecRing()) {
0017     iring++;
0018   }
0019   if (iring == rings_.end()) {
0020     rings_.push_back(SiStripRing(conn));
0021   } else {
0022     iring->addDevices(conn);
0023   }
0024 }