test
CMS 3D CMS Logo

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