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);
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;
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";
290 LogWarning(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
291 <<
"[DTRobBinsMap]***Error: ROB: " << robBin <<
" is not valid" << endl;
309 int nChangedROBs = 0;
318 for(map<int, int>::const_iterator robAndValue =
robsAndValues.begin();
320 if(
robChanged((*robAndValue).first)) nChangedROBs++;
322 return 1.-((double)nChangedROBs/(
double)
robsAndValues.size());
331 for(map<int, int>::const_iterator robAndValue =
robsAndValues.begin();
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.
int readOutToGeometry(int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const
transform identifiers
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.
def setup(process, global_tag, zero_tesla=False)
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.
std::map< int, int > robsAndValues
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)
double getBinContent(int binx) const
get content of bin (1-D)
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)
double getChamberPercentage(DQMStore::IGetter &)