Go to the documentation of this file.
10 #include <arpa/inet.h>
14 #include <sys/socket.h>
15 #include <sys/unistd.h>
40 LogDebug(
"Commissioning") <<
"[CalibrationTask::CalibrationTask] Constructing object...";
47 int stop =
start + 256;
61 LogDebug(
"Commissioning") <<
"[CalibrationTask::CalibrationTask] Destructing object...";
67 LogDebug(
"Commissioning") <<
"[CalibrationTask::book]";
73 for (
int i = 0;
i < 16; ++
i) {
97 for (
int i = 0;
i < 16; ++
i) {
122 LogDebug(
"Commissioning") <<
"[CalibrationTask::fill]";
147 for (
int k = 0;
k < 16; ++
k) {
151 (digis.
data[isub +
k * 8].adc() -
ped[isub +
k * 8]));
155 (digis.
data[128 + isub +
k * 8].adc() -
ped[128 + isub +
k * 8]));
163 LogDebug(
"Commissioning") <<
"[CalibrationTask::update]";
165 for (
const auto& element :
calib1_) {
166 for (
auto vecelement : element.second)
170 for (
const auto& element :
calib2_) {
171 for (
auto vecelement : element.second)
std::pair< ContainerIterator, ContainerIterator > Range
std::map< std::string, std::vector< HistoSet > > calib2_
const FedChannelConnection & connection() const
const uint32_t & fedKey() const
~CalibrationTask() override
void setCurrentFolder(std::string const &fullpath) override
const Range getRange(const uint32_t &detID) const
Class containning control, module, detector and connection information, at the level of a FED channel...
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
void setCurrentFolder(const std::string &)
std::map< std::string, std::vector< HistoSet > > calib1_
DQMStore *const dqm() const
sistrip::RunType runType_
CalibrationTask(DQMStore *, const FedChannelConnection &, const sistrip::RunType &, const char *filename, uint32_t run, const edm::EventSetup &setup)
const std::string & title() const
Utility class that holds histogram title.
void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override
float getPed(const uint16_t &strip, const Range &range) const
std::vector< uint16_t > ped