Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:30

0001 
0002 #include "CalibFormats/SiStripObjects/interface/SiStripCcu.h"
0003 #include <iostream>
0004 
0005 // -----------------------------------------------------------------------------
0006 //
0007 SiStripCcu::SiStripCcu(const FedChannelConnection &conn) : ccuAddr_(conn.ccuAddr()), modules_() {
0008   modules_.reserve(32);
0009   addDevices(conn);
0010 }
0011 
0012 // -----------------------------------------------------------------------------
0013 //
0014 void SiStripCcu::addDevices(const FedChannelConnection &conn) {
0015   auto imod = modules_.begin();
0016   while (imod != modules_.end() && (*imod).ccuChan() != conn.ccuChan()) {
0017     imod++;
0018   }
0019   if (imod == modules_.end()) {
0020     modules_.push_back(SiStripModule(conn));
0021   } else {
0022     imod->addDevices(conn);
0023   }
0024 }