59 totalDAQFraction = ibooker.
bookFloat(
"DAQSummary");
60 totalDAQFraction->
Fill(-1);
63 daqMap = ibooker.
book2D(
"DAQSummaryMap",
"DT Certification Summary Map",12,1,13,5,-2,3);
65 daqMap->setAxisTitle(
"wheel",2);
72 streams <<
"DT_Wheel" <<
wheel;
83 if(setup.
find(recordKey) !=
nullptr) {
85 totalDAQFraction->Fill(0.);
86 daqFractions[-2]->Fill(0.);
87 daqFractions[-1]->Fill(0.);
88 daqFractions[-0]->Fill(0.);
89 daqFractions[1]->Fill(0.);
90 daqFractions[2]->Fill(0.);
97 vector<int> fedInIDs = sumFED->
m_fed_in;
104 if (checkUros) {
LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
105 <<
"Checking uROS FEDs as Legacy FEDs"<< endl;}
108 for(vector<int>::const_iterator fed = fedInIDs.begin();
109 fed != fedInIDs.end();
112 if(!(*fed >= FEDIDmin && *fed <= FEDIDMax))
continue;
118 for(
int ros = 1; ros != 13; ++ros) {
119 if(!
mapping->readOutToGeometry(*fed,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy)) {
120 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
121 <<
"FED: " << *fed <<
" Ch: " << ros <<
" wheel: " << wheel <<
" Sect: " << sector << endl;
122 daqFractions[
wheel]->Fill(daqFractions[wheel]->getFloatValue() + 1./12.);
123 totalDAQFraction->Fill(totalDAQFraction->getFloatValue() + 1./60.);
124 daqMap->Fill(sector,wheel);
129 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
130 totalDAQFraction->Fill(-1);
132 daqFractions[
wheel]->Fill(-1);
T getUntrackedParameter(std::string const &, T const &) const
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
def setup(process, global_tag, zero_tesla=False)
std::vector< int > m_fed_in
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
~DTDAQInfo() override
Destructor.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
boost::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &) const
DTDAQInfo(const edm::ParameterSet &pset)
Constructor.
MonitorElement * bookFloat(Args &&...args)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)