test
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  auto 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  imod->addDevices( conn );
24  }
25 }
Device and connection information at the level of a front-end module.
Definition: SiStripModule.h:24
static const char ccuAddr_[]
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & ccuChan() const
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:17
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:43