CMS 3D CMS Logo

SiStripFecCrate.cc
Go to the documentation of this file.
1 
3 #include <iostream>
4 
5 // -----------------------------------------------------------------------------
6 //
8  fecs_.reserve(20);
10 }
11 
12 // -----------------------------------------------------------------------------
13 //
15  auto ifec = fecs_.begin();
16  while (ifec != fecs_.end() && (*ifec).fecSlot() != conn.fecSlot()) {
17  ifec++;
18  }
19  if (ifec == fecs_.end()) {
20  fecs_.push_back(SiStripFec(conn));
21  } else {
22  ifec->addDevices(conn);
23  }
24 }
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
SiStripFecCrate.h
SiStripFecCrate::addDevices
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFecCrate.cc:14
SiStripFecCrate::SiStripFecCrate
SiStripFecCrate()
Definition: SiStripFecCrate.h:34
sistrip::fecCrate_
static const char fecCrate_[]
Definition: ConstantsForGranularity.h:52
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition: FedChannelConnection.h:26
SiStripFec
Definition: SiStripFec.h:14
SiStripFecCrate::fecs_
std::vector< SiStripFec > fecs_
Definition: SiStripFecCrate.h:40