test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripRing.cc
Go to the documentation of this file.
1 
3 #include <iostream>
4 
5 // -----------------------------------------------------------------------------
6 //
8  : fecRing_( conn.fecRing() ),
9  ccus_()
10 {
11  ccus_.reserve(256);
12  addDevices( conn );
13 }
14 
15 // -----------------------------------------------------------------------------
16 //
18  auto iccu = ccus_.begin();
19  while ( iccu != ccus_.end() && (*iccu).ccuAddr() != conn.ccuAddr() ) { iccu++; }
20  if ( iccu == ccus().end() ) {
21  ccus_.push_back( SiStripCcu( conn ) );
22  } else {
23  iccu->addDevices( conn );
24  }
25 }
26 
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:43
const std::vector< SiStripCcu > & ccus() const
Definition: SiStripRing.h:49
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & ccuAddr() const
static const char fecRing_[]
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:17