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) {
87 totalDAQFraction->Fill(0.);
88 daqFractions[-2]->Fill(0.);
89 daqFractions[-1]->Fill(0.);
90 daqFractions[-0]->Fill(0.);
91 daqFractions[1]->Fill(0.);
92 daqFractions[2]->Fill(0.);
98 vector<int> fedInIDs = sumFED->
m_fed_in;
102 const int FEDIDMax = 774;
105 for(vector<int>::const_iterator fed = fedInIDs.begin();
106 fed != fedInIDs.end();
109 if(!(*fed >= FEDIDmin && *fed <= FEDIDMax))
continue;
116 for(
int ros = 1; ros != 13; ++ros) {
117 if(!
mapping->readOutToGeometry(*fed,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy)) {
118 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
119 <<
"FED: " << *fed <<
" Ch: " << ros <<
" wheel: " << wheel <<
" Sect: " << sector << endl;
120 daqFractions[
wheel]->Fill(daqFractions[wheel]->getFloatValue() + 1./12.);
121 totalDAQFraction->Fill(totalDAQFraction->getFloatValue() + 1./60.);
122 daqMap->Fill(sector,wheel);
128 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
129 totalDAQFraction->Fill(-1);
131 daqFractions[
wheel]->Fill(-1);
143 if(setup.
find(recordKey) !=
nullptr) {
145 totalDAQFraction->Fill(0.);
146 daqFractions[-2]->Fill(0.);
147 daqFractions[-1]->Fill(0.);
148 daqFractions[-0]->Fill(0.);
149 daqFractions[1]->Fill(0.);
150 daqFractions[2]->Fill(0.);
157 vector<int> fedInIDs = sumFED->
m_fed_in;
164 for(vector<int>::const_iterator fed = fedInIDs.begin();
165 fed != fedInIDs.end();
168 if(!(*fed >= FEDIDmin && *fed <= FEDIDMax))
continue;
174 for(
int ros = 1; ros != 13; ++ros) {
175 if(!
mapping->readOutToGeometry(*fed,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy)) {
176 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
177 <<
"FED: " << *fed <<
" Ch: " << ros <<
" wheel: " << wheel <<
" Sect: " << sector << endl;
178 daqFractions[
wheel]->Fill(daqFractions[wheel]->getFloatValue() + 1./12.);
179 totalDAQFraction->Fill(totalDAQFraction->getFloatValue() + 1./60.);
180 daqMap->Fill(sector,wheel);
185 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
186 totalDAQFraction->Fill(-1);
188 daqFractions[
wheel]->Fill(-1);
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)
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
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)
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)