CalibFormats
SiStripObjects
src
SiStripFec.cc
Go to the documentation of this file.
1
2
#include "
CalibFormats/SiStripObjects/interface/SiStripFec.h
"
3
#include <iostream>
4
5
// -----------------------------------------------------------------------------
6
//
7
SiStripFec::SiStripFec
(
const
FedChannelConnection
&
conn
) :
fecSlot_
(
conn
.fecSlot()), rings_() {
8
rings_
.reserve(8);
9
addDevices
(
conn
);
10
}
11
12
// -----------------------------------------------------------------------------
13
//
14
void
SiStripFec::addDevices
(
const
FedChannelConnection
&
conn
) {
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
Generated for CMSSW Reference Manual by
1.8.16