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 //
CommissioningTask::HistoSet::vSumOfSquares_
std::vector< double > vSumOfSquares_
Definition: CommissioningTask.h:46
sistrip::mlDqmSource_
static const char mlDqmSource_[]
Definition: ConstantsForLogger.h:20
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
MessageLogger.h
CommissioningTask::HistoSet::vSumOfContents_
std::vector< float > vSumOfContents_
Definition: CommissioningTask.h:45
sistrip::FAST_CABLING
Definition: ConstantsForRunType.h:89
edm::DetSet
Definition: DetSet.h:23
CommissioningTask::connection
const FedChannelConnection & connection() const
Definition: CommissioningTask.h:189
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
DQMStore.h
FastFedCablingTask::histo_
HistoSet histo_
Definition: FastFedCablingTask.h:18
CommissioningTask
Definition: CommissioningTask.h:24
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
CommissioningTask::HistoSet::vNumOfEntries_
std::vector< float > vNumOfEntries_
Definition: CommissioningTask.h:44
CommissioningTask::fedKey
const uint32_t & fedKey() const
Definition: CommissioningTask.h:192
dqm::legacy::DQMStore
Definition: DQMStore.h:728
sistrip::EXPERT_HISTO
Definition: ConstantsForHistoType.h:29
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
FastFedCablingTask.h
FastFedCablingTask::FastFedCablingTask
FastFedCablingTask(DQMStore *, const FedChannelConnection &)
Definition: FastFedCablingTask.cc:14
FedChannelConnection
Class containning control, module, detector and connection information, at the level of a FED channel...
Definition: FedChannelConnection.h:26
SiStripConstants.h
CommissioningTask::HistoSet::histo
void histo(MonitorElement *)
Definition: CommissioningTask.cc:89
edmLumisInFiles.summary
summary
Definition: edmLumisInFiles.py:39
CommissioningTask::updateHistoSet
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: CommissioningTask.cc:274
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
FastFedCablingTask::~FastFedCablingTask
~FastFedCablingTask() override
Definition: FastFedCablingTask.cc:19
FastFedCablingTask::book
void book() override
Definition: FastFedCablingTask.cc:23
CommissioningTask::dqm
DQMStore *const dqm() const
Definition: CommissioningTask.h:188
SiStripHistoTitle.h
SiStripHistoTitle::title
const std::string & title() const
Definition: SiStripHistoTitle.h:109
edm::DetSet::data
collection_type data
Definition: DetSet.h:80
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
dqm
Definition: DQMStore.h:18
sistrip::FED_KEY
Definition: ConstantsForKeyType.h:30
sistrip
sistrip classes
Definition: EnsembleCalibrationLA.cc:10
SiStripEventSummary
Definition: SiStripEventSummary.h:22
FastFedCablingTask::update
void update() override
Definition: FastFedCablingTask.cc:57
FastFedCablingTask::fill
void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override
Definition: FastFedCablingTask.cc:42
sistrip::LLD_CHAN
Definition: ConstantsForGranularity.h:78