Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 }