11 #include <sys/socket.h> 12 #include <sys/unistd.h> 37 LogDebug(
"Commissioning") <<
"[CalibrationTask::CalibrationTask] Constructing object...";
42 int stop =
start + 256;
56 LogDebug(
"Commissioning") <<
"[CalibrationTask::CalibrationTask] Destructing object...";
62 LogDebug(
"Commissioning") <<
"[CalibrationTask::book]";
68 for (
int i = 0;
i < 16; ++
i) {
92 for (
int i = 0;
i < 16; ++
i) {
117 LogDebug(
"Commissioning") <<
"[CalibrationTask::fill]";
142 for (
int k = 0;
k < 16; ++
k) {
146 (digis.
data[isub +
k * 8].adc() -
ped[isub +
k * 8]));
150 (digis.
data[128 + isub +
k * 8].adc() -
ped[128 + isub +
k * 8]));
158 LogDebug(
"Commissioning") <<
"[CalibrationTask::update]";
160 for (
const auto& element :
calib1_) {
161 for (
auto vecelement : element.second)
165 for (
const auto& element :
calib2_) {
166 for (
auto vecelement : element.second)
const Range getRange(const uint32_t &detID) const
Utility class that holds histogram title.
void setCurrentFolder(std::string const &fullpath) override
std::map< std::string, std::vector< HistoSet > > calib2_
std::pair< ContainerIterator, ContainerIterator > Range
static std::string to_string(const XMLCh *ch)
float getPed(const uint16_t &strip, const Range &range) const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Class containning control, module, detector and connection information, at the level of a FED channel...
std::map< std::string, std::vector< HistoSet > > calib1_
sistrip::RunType runType_
CalibrationTask(DQMStore *, const FedChannelConnection &, const sistrip::RunType &, const char *filename, uint32_t run, const SiStripPedestals &pedestals)
const uint32_t & fedKey() const
void setCurrentFolder(const std::string &)
DQMStore *const dqm() const
std::vector< uint16_t > ped
~CalibrationTask() override
const std::string & title() const
const FedChannelConnection & connection() const
void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override