CMS 3D CMS Logo

FastFedCablingTask.cc
Go to the documentation of this file.
6 #include <algorithm>
7 #include <sstream>
8 #include <iomanip>
9 
10 using namespace sistrip;
11 
12 // -----------------------------------------------------------------------------
13 //
15  : CommissioningTask(dqm, conn, "FastFedCablingTask"), histo_() {}
16 
17 // -----------------------------------------------------------------------------
18 //
20 
21 // -----------------------------------------------------------------------------
22 //
27  fedKey(),
29  connection().lldChannel())
30  .title();
31 
32  uint16_t nbins = 34;
33  histo_.histo(dqm()->bookProfile(title, title, nbins, -0.5, nbins * 1. - 0.5, 1025, 0., 1025.));
34 
35  histo_.vNumOfEntries_.resize(nbins, 0);
36  histo_.vSumOfContents_.resize(nbins, 0);
37  histo_.vSumOfSquares_.resize(nbins, 0);
38 }
39 
40 // -----------------------------------------------------------------------------
41 //
43  if (digis.data.empty()) {
44  edm::LogWarning(mlDqmSource_) << "[FastFedCablingTask::" << __func__ << "]"
45  << " No digis found!";
46  return;
47  }
48 
49  uint32_t bin = summary.binNumber();
50  for (uint16_t ibin = 0; ibin < digis.data.size(); ibin++) {
51  updateHistoSet(histo_, bin, digis.data[ibin].adc());
52  }
53 }
54 
55 // -----------------------------------------------------------------------------
56 //
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
static const char mlDqmSource_[]
std::vector< float > vSumOfContents_
sistrip classes
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...
const uint32_t & fedKey() const
void book() override
DQMStore *const dqm() const
FastFedCablingTask(DQMStore *, const FedChannelConnection &)
void update() override
void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override
collection_type data
Definition: DetSet.h:80
void histo(MonitorElement *)
conn
Definition: getInfo.py:9
std::vector< double > vSumOfSquares_
const std::string & title() const
~FastFedCablingTask() override
const FedChannelConnection & connection() const
Log< level::Warning, false > LogWarning
Definition: DQMStore.h:18