src
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::SiStripFec
SiStripFec()
Definition:
SiStripFec.h:34
SiStripFec::rings_
std::vector< SiStripRing > rings_
Definition:
SiStripFec.h:40
sistrip::fecSlot_
static const char fecSlot_[]
Definition:
ConstantsForGranularity.h:53
SiStripFec::addDevices
void addDevices(const FedChannelConnection &conn)
Definition:
SiStripFec.cc:14
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition:
FedChannelConnection.h:26
SiStripRing
Definition:
SiStripRing.h:14
SiStripFec.h
getInfo.conn
conn
Definition:
getInfo.py:9
Generated for CMSSW Reference Manual by
1.8.14