CalibFormats
SiStripObjects
src
SiStripCcu.cc
Go to the documentation of this file.
1
2
#include "
CalibFormats/SiStripObjects/interface/SiStripCcu.h
"
3
#include <iostream>
4
5
// -----------------------------------------------------------------------------
6
//
7
SiStripCcu::SiStripCcu
(
const
FedChannelConnection
&
conn
) :
ccuAddr_
(
conn
.ccuAddr()), modules_() {
8
modules_
.reserve(32);
9
addDevices
(
conn
);
10
}
11
12
// -----------------------------------------------------------------------------
13
//
14
void
SiStripCcu::addDevices
(
const
FedChannelConnection
&
conn
) {
15
auto
imod =
modules_
.begin();
16
while
(imod !=
modules_
.end() && (*imod).ccuChan() !=
conn
.ccuChan()) {
17
imod++;
18
}
19
if
(imod ==
modules_
.end()) {
20
modules_
.push_back(
SiStripModule
(
conn
));
21
}
else
{
22
imod->addDevices(
conn
);
23
}
24
}
SiStripModule
Device and connection information at the level of a front-end module.
Definition:
SiStripModule.h:24
SiStripCommissioningClient_cfg.conn
conn
Definition:
SiStripCommissioningClient_cfg.py:5
sistrip::ccuAddr_
static const char ccuAddr_[]
Definition:
ConstantsForGranularity.h:55
SiStripCcu::addDevices
void addDevices(const FedChannelConnection &conn)
Definition:
SiStripCcu.cc:14
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition:
FedChannelConnection.h:26
SiStripCcu::SiStripCcu
SiStripCcu()
Definition:
SiStripCcu.h:34
SiStripCcu::modules_
std::vector< SiStripModule > modules_
Definition:
SiStripCcu.h:40
SiStripCcu.h
Generated for CMSSW Reference Manual by
1.8.16