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  std::vector<SiStripRing>::const_iterator 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  const_cast<SiStripRing&>(*iring).addDevices( conn );
24  }
25 }
const std::vector< SiStripRing > & rings() const
Definition: SiStripFec.h:48
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:42
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...
#define end
Definition: vmac.h:37
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:17
tuple conn
Definition: results_mgr.py:53