CMS 3D CMS Logo

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