59 totalDAQFraction = ibooker.
bookFloat(
"DAQSummary");
60 totalDAQFraction->
Fill(-1);
61 cout <<
" totalDAQFraction done " << endl;
64 daqMap = ibooker.
book2D(
"DAQSummaryMap",
"DT Certification Summary Map",12,1,13,5,-2,3);
66 daqMap->setAxisTitle(
"wheel",2);
67 cout <<
" map done " << endl;
72 for(
int wheel = -2; wheel != 3; ++wheel) {
74 streams <<
"DT_Wheel" << wheel;
76 daqFractions[wheel] = ibooker.
bookFloat(streams.str());
77 daqFractions[wheel]->
Fill(-1);
85 if(setup.
find(recordKey) != 0) {
89 totalDAQFraction->Fill(0.);
90 daqFractions[-2]->Fill(0.);
91 daqFractions[-1]->Fill(0.);
92 daqFractions[-0]->Fill(0.);
93 daqFractions[1]->Fill(0.);
94 daqFractions[2]->Fill(0.);
100 vector<int> fedInIDs = sumFED->m_fed_in;
107 for(vector<int>::const_iterator fed = fedInIDs.begin();
108 fed != fedInIDs.end();
111 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);
130 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
131 totalDAQFraction->Fill(-1);
132 for(
int wheel = -2; wheel != 3; ++wheel) {
133 daqFractions[wheel]->Fill(-1);
145 if(setup.
find(recordKey) != 0) {
147 totalDAQFraction->Fill(0.);
148 daqFractions[-2]->Fill(0.);
149 daqFractions[-1]->Fill(0.);
150 daqFractions[-0]->Fill(0.);
151 daqFractions[1]->Fill(0.);
152 daqFractions[2]->Fill(0.);
159 vector<int> fedInIDs = sumFED->m_fed_in;
166 for(vector<int>::const_iterator fed = fedInIDs.begin();
167 fed != fedInIDs.end();
170 if(!(*fed >= FEDIDmin && *fed <= FEDIDMax))
continue;
176 for(
int ros = 1; ros != 13; ++ros) {
177 if(!mapping->readOutToGeometry(*fed,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy)) {
178 LogTrace(
"DQM|DTMonitorClient|DTDAQInfo")
179 <<
"FED: " << *fed <<
" Ch: " << ros <<
" wheel: " << wheel <<
" Sect: " << sector << endl;
180 daqFractions[wheel]->Fill(daqFractions[wheel]->getFloatValue() + 1./12.);
181 totalDAQFraction->Fill(totalDAQFraction->getFloatValue() + 1./60.);
182 daqMap->Fill(sector,wheel);
184 cout <<
" daqMap->Fill , ros = " << ros<<endl;
188 cout <<
" recordkey nehi "<<endl;
189 LogWarning(
"DQM|DTMonitorClient|DTDAQInfo") <<
"*** Warning: record key not found for RunInfoRcd" << endl;
190 totalDAQFraction->Fill(-1);
191 for(
int wheel = -2; wheel != 3; ++wheel) {
192 daqFractions[wheel]->Fill(-1);
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
virtual ~DTDAQInfo()
Destructor.
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")