33 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
34 <<
"[DTBlockedROChannelsTest]: Constructor";
45 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
46 <<
"DataIntegrityTest: analyzed " <<
nupdates <<
" updates";
64 for(
int ros = 1; ros != 13; ++ros) {
65 for(
int rob = 1; rob != 26; ++rob) {
70 if(!
mapping->readOutToGeometry(dduId,ros,rob-1,0,2,wheel,station,sector,dummy,dummy,dummy) ||
71 !
mapping->readOutToGeometry(dduId,ros,rob-1,0,16,wheel,station,sector,dummy,dummy,dummy)) {
79 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
80 <<
"[DTRobBinsMap] FED: " << dduId <<
" ROS " << ros <<
" ROB: " << rob-1
81 <<
" not in the mapping!" << endl;
87 for(map<DTChamberId, DTRobBinsMap>::iterator chAndRobs =
chamberMap.begin();
89 chAndRobs->second.init(
false);
104 summaryHisto = ibooker.
book2D(
"ROChannelSummary",
"Summary Blocked RO Channels",12,1,13,5,-2,3);
108 for(
int wheel = -2; wheel != 3; ++wheel) {
109 stringstream namestream; namestream <<
"ROChannelSummary_W" << wheel;
110 stringstream titlestream; titlestream <<
"Blocked RO Channels (Wh " << wheel <<
")";
111 wheelHitos[wheel] = ibooker.
book2D(namestream.str().c_str(),titlestream.str().c_str(),12,1,13,4,1,5);
140 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
141 <<
"[DTBlockedROChannelsTest]: End of LS " <<
nLumiSegs <<
". Client called in online mode, performing client operations";
153 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
154 <<
"[DTBlockedROChannelsTest] endRun called. Client called in offline mode, performing operations.";
170 neventsPrev = procEvents;
180 for(
int wheel = -2; wheel != 3; ++wheel) {
187 for(map<DTChamberId, DTRobBinsMap>::iterator chAndRobs =
chamberMap.begin();
191 int sectorForPlot = chId.
sector();
192 if(sectorForPlot == 13 || (sectorForPlot == 4 && chId.
station() ==4)) {
195 }
else if(sectorForPlot == 14 || (sectorForPlot == 10 && chId.
station() ==4)) {
201 double chPercent = (*chAndRobs).second.getChamberPercentage(igetter);
204 totalPerc += chPercent*scale*1./240.;
222 return mapping->readOutToGeometry(dduId,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy);
233 stringstream mename; mename <<
"DT/00-DataIntegrity/FED" << fed <<
"/ROS" << ros
234 <<
"/FED" << fed <<
"_ROS" << ros <<
"_ROSError";
237 stringstream whname; whname <<
"DT/00-DataIntegrity/FED" << fed
238 <<
"/FED" << fed <<
"_ROSStatus";
255 robsAndValues[robBin] = getValueRobBin(robBin);
266 value += (int)meROS->getBinContent(9,robBin);
267 value += (int)meROS->getBinContent(11,robBin);
278 value += (int)meDDU->getBinContent(2,rosBin);
279 value += (int)meDDU->getBinContent(10,rosBin);
289 if(robsAndValues.find(robBin) == robsAndValues.end()) {
290 LogWarning(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
291 <<
"[DTRobBinsMap]***Error: ROB: " << robBin <<
" is not valid" << endl;
295 int newValue = getValueRobBin(robBin);
296 if(newValue > robsAndValues[robBin]) {
297 robsAndValues[robBin] = newValue;
307 meROS = igetter.
get(rosHName);
308 meDDU = igetter.
get(dduHName);
309 int nChangedROBs = 0;
312 int newValue = getValueRos();
313 if(newValue > rosValue) {
318 for(map<int, int>::const_iterator robAndValue = robsAndValues.begin();
319 robAndValue != robsAndValues.end(); ++robAndValue) {
320 if(robChanged((*robAndValue).first)) nChangedROBs++;
322 return 1.-((double)nChangedROBs/(
double)robsAndValues.size());
327 meROS = igetter.
get(rosHName);
328 meDDU = igetter.
get(dduHName);
330 rosValue = getValueRos();
331 for(map<int, int>::const_iterator robAndValue = robsAndValues.begin();
332 robAndValue != robsAndValues.end(); ++robAndValue) {
333 robChanged((*robAndValue).first);
LuminosityBlockID id() const
T getUntrackedParameter(std::string const &, T const &) const
DTTimeEvolutionHisto * hSystFractionVsLS
~DTBlockedROChannelsTest()
Destructor.
void accumulateValueTimeSlot(float value)
void performClientDiagnostic(DQMStore::IGetter &igetter)
DQM Client operations.
std::map< DTChamberId, DTRobBinsMap > chamberMap
MonitorElement * get(const std::string &path)
#define DEFINE_FWK_MODULE(type)
void beginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
void fillChamberMap(DQMStore::IGetter &igetter, const edm::EventSetup &c)
std::map< int, MonitorElement * > wheelHitos
const MonitorElement * meROS
void addRobBin(int robBin)
DTBlockedROChannelsTest(const edm::ParameterSet &ps)
Constructor.
int getValueRobBin(int robBin) const
const MonitorElement * meDDU
int readOutToGeometry(int dduId, int rosNumber, int &wheel, int §or)
edm::ESHandle< DTReadOutMapping > mapping
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
DQM Client Diagnostic in online mode.
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
void readNewValues(DQMStore::IGetter &igetter)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
int64_t getIntValue(void) const
LuminosityBlockNumber_t luminosityBlock() const
void updateTimeSlot(int ls, int nEventsInLS)
bool robChanged(int robBin)
int station() const
Return the station number.
int wheel() const
Return the wheel number.
MonitorElement * summaryHisto
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
double getChamberPercentage(DQMStore::IGetter &)