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