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  std::vector<SiStripCcu>::const_iterator 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  const_cast<SiStripCcu&>(*iccu).addDevices( conn );
24  }
25 }
26 
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:42
const std::vector< SiStripCcu > & ccus() const
Definition: SiStripRing.h:48
Class containning control, module, detector and connection information, at the level of a FED channel...
#define end
Definition: vmac.h:37
const uint16_t & ccuAddr() const
static const char fecRing_[]
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:17
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:17
tuple conn
Definition: results_mgr.py:53