CMS 3D CMS Logo

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