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 // Last commit: $Id: SiStripFecCrate.cc,v 1.7 2008/01/22 18:44:27 muzaffar Exp $
2 
4 #include <iostream>
5 
6 // -----------------------------------------------------------------------------
7 //
9  : fecCrate_( conn.fecCrate() ),
10  fecs_()
11 {
12  fecs_.reserve(20);
13  addDevices( conn );
14 }
15 
16 // -----------------------------------------------------------------------------
17 //
19  std::vector<SiStripFec>::const_iterator ifec = fecs().begin();
20  while ( ifec != fecs().end() && (*ifec).fecSlot() != conn.fecSlot() ) { ifec++; }
21  if ( ifec == fecs().end() ) {
22  fecs_.push_back( SiStripFec( conn ) );
23  } else {
24  const_cast<SiStripFec&>(*ifec).addDevices( conn );
25  }
26 }
27 
28 
const uint16_t & fecSlot() const
const std::vector< SiStripFec > & fecs() const
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:18
Class containning control, module, detector and connection information, at the level of a FED channel...
static const char fecCrate_[]
#define end
Definition: vmac.h:38
std::vector< SiStripFec > fecs_
void addDevices(const FedChannelConnection &conn)
tuple conn
Definition: results_mgr.py:53