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 // Last commit: $Id: SiStripFec.cc,v 1.7 2008/01/22 18:44:27 muzaffar Exp $
2 
4 #include <iostream>
5 
6 // -----------------------------------------------------------------------------
7 //
9  : fecSlot_( conn.fecSlot() ),
10  rings_()
11 {
12  rings_.reserve(8);
13  addDevices( conn );
14 }
15 
16 // -----------------------------------------------------------------------------
17 //
19  std::vector<SiStripRing>::const_iterator iring = rings().begin();
20  while ( iring != rings().end() && (*iring).fecRing() != conn.fecRing() ) { iring++; }
21  if ( iring == rings().end() ) {
22  rings_.push_back( SiStripRing( conn ) );
23  } else {
24  const_cast<SiStripRing&>(*iring).addDevices( conn );
25  }
26 }
const std::vector< SiStripRing > & rings() const
Definition: SiStripFec.h:49
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:43
static const char fecSlot_[]
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:18
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:38
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:18
tuple conn
Definition: results_mgr.py:53