51 totalDAQFraction = ibooker.
bookFloat(
"DAQSummary");
52 totalDAQFraction->
Fill(-1);
55 daqMap = ibooker.
book2D(
"DAQSummaryMap",
"DT Certification Summary Map", 12, 1, 13, 5, -2, 3);
57 daqMap->setAxisTitle(
"wheel", 2);
64 streams <<
"DT_Wheel" <<
wheel;
74 totalDAQFraction->Fill(0.);
75 daqFractions[-2]->Fill(0.);
76 daqFractions[-1]->Fill(0.);
77 daqFractions[-0]->Fill(0.);
78 daqFractions[1]->Fill(0.);
79 daqFractions[2]->Fill(0.);
84 runInfoRec->get(sumFED);
85 vector<int> fedInIDs = sumFED->
m_fed_in;
93 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo") <<
"Checking uROS FEDs as Legacy FEDs" << endl;
97 for (vector<int>::const_iterator fed = fedInIDs.begin(); fed != fedInIDs.end(); ++fed) {
99 if (!(*fed >= FEDIDmin && *fed <= FEDIDMax))
106 for (
int ros = 1; ros != 13; ++ros) {
107 if (!
mapping->readOutToGeometry(*fed, ros, 2, 2, 2, wheel, dummy, sector, dummy, dummy, dummy)) {
108 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
109 <<
"FED: " << *fed <<
" Ch: " << ros <<
" wheel: " << wheel <<
" Sect: " << sector << endl;
110 daqFractions[
wheel]->Fill(daqFractions[wheel]->getFloatValue() + 1. / 12.);
111 totalDAQFraction->Fill(totalDAQFraction->getFloatValue() + 1. / 60.);
112 daqMap->Fill(sector, wheel);
117 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
118 totalDAQFraction->Fill(-1);
120 daqFractions[
wheel]->Fill(-1);
T getUntrackedParameter(std::string const &, T const &) const
std::optional< T > tryToGet() const
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
MonitorElement * bookFloat(TString const &name)
void setCurrentFolder(std::string const &fullpath)
std::vector< int > m_fed_in
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
~DTDAQInfo() override
Destructor.
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
DTDAQInfo(const edm::ParameterSet &pset)
Constructor.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)