CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripRing.cc
Go to the documentation of this file.
1 // Last commit: $Id: SiStripRing.cc,v 1.7 2008/01/22 18:44:27 muzaffar Exp $
2 
4 #include <iostream>
5 
6 // -----------------------------------------------------------------------------
7 //
9  : fecRing_( conn.fecRing() ),
10  ccus_()
11 {
12  ccus_.reserve(256);
13  addDevices( conn );
14 }
15 
16 // -----------------------------------------------------------------------------
17 //
19  std::vector<SiStripCcu>::const_iterator iccu = ccus().begin();
20  while ( iccu != ccus().end() && (*iccu).ccuAddr() != conn.ccuAddr() ) { iccu++; }
21  if ( iccu == ccus().end() ) {
22  ccus_.push_back( SiStripCcu( conn ) );
23  } else {
24  const_cast<SiStripCcu&>(*iccu).addDevices( conn );
25  }
26 }
27 
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:43
const std::vector< SiStripCcu > & ccus() const
Definition: SiStripRing.h:49
Class containning control, module, detector and connection information, at the level of a FED channel...
#define end
Definition: vmac.h:38
const uint16_t & ccuAddr() const
static const char fecRing_[]
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:18
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:18
tuple conn
Definition: results_mgr.py:53