CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripCcu.cc
Go to the documentation of this file.
1 
3 #include <iostream>
4 
5 // -----------------------------------------------------------------------------
6 //
8  : ccuAddr_( conn.ccuAddr() ),
9  modules_()
10 {
11  modules_.reserve(32);
12  addDevices( conn );
13 }
14 
15 // -----------------------------------------------------------------------------
16 //
18  std::vector<SiStripModule>::const_iterator imod = modules().begin();
19  while ( imod != modules().end() && (*imod).ccuChan() != conn.ccuChan() ) { imod++; }
20  if ( imod == modules().end() ) {
21  modules_.push_back( SiStripModule( conn ) );
22  } else {
23  const_cast<SiStripModule&>(*imod).addDevices( conn );
24  }
25 }
const std::vector< SiStripModule > & modules() const
Definition: SiStripCcu.h:48
Device and connection information at the level of a front-end module.
Definition: SiStripModule.h:24
void addDevices(const FedChannelConnection &conn)
static const char ccuAddr_[]
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & ccuChan() const
#define end
Definition: vmac.h:37
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:17
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:42
tuple conn
Definition: results_mgr.py:53