33 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
34 <<
"[DTBlockedROChannelsTest]: Constructor";
45 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
46 <<
"DataIntegrityTest: analyzed " <<
nupdates <<
" updates";
65 for(
int ros = 1; ros != 13; ++ros) {
66 for(
int rob = 1; rob != 26; ++rob) {
71 if(!
mapping->
readOutToGeometry(dduId,ros,rob-1,0,2,wheel,station,sector,dummy,dummy,dummy) ||
72 !
mapping->
readOutToGeometry(dduId,ros,rob-1,0,16,wheel,station,sector,dummy,dummy,dummy)) {
80 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
81 <<
"[DTRobBinsMap] FED: " << dduId <<
" ROS " << ros <<
" ROB: " << rob-1
82 <<
" not in the mapping!" << endl;
88 for(map<DTChamberId, DTRobBinsMap>::iterator chAndRobs =
chamberMap.begin();
90 chAndRobs->second.init(
false);
105 summaryHisto = ibooker.
book2D(
"ROChannelSummary",
"Summary Blocked RO Channels",12,1,13,5,-2,3);
110 stringstream namestream; namestream <<
"ROChannelSummary_W" <<
wheel;
111 stringstream titlestream; titlestream <<
"Blocked RO Channels (Wh " << wheel <<
")";
112 wheelHitos[
wheel] = ibooker.
book2D(namestream.str().c_str(),titlestream.str().c_str(),12,1,13,4,1,5);
141 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
142 <<
"[DTBlockedROChannelsTest]: End of LS " <<
nLumiSegs <<
". Client called in online mode, performing client operations";
154 LogTrace(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
155 <<
"[DTBlockedROChannelsTest] endRun called. Client called in offline mode, performing operations.";
171 neventsPrev = procEvents;
188 for(map<DTChamberId, DTRobBinsMap>::iterator chAndRobs =
chamberMap.begin();
192 int sectorForPlot = chId.
sector();
193 if(sectorForPlot == 13 || (sectorForPlot == 4 && chId.
station() ==4)) {
196 }
else if(sectorForPlot == 14 || (sectorForPlot == 10 && chId.
station() ==4)) {
202 double chPercent = (*chAndRobs).second.getChamberPercentage(igetter);
205 totalPerc += chPercent*scale*1./240.;
223 return mapping->
readOutToGeometry(dduId,ros,2,2,2,wheel,dummy,sector,dummy,dummy,dummy);
234 stringstream mename; mename <<
"DT/00-DataIntegrity/FED" << fed <<
"/ROS" << ros
235 <<
"/FED" << fed <<
"_ROS" << ros <<
"_ROSError";
238 stringstream whname; whname <<
"DT/00-DataIntegrity/FED" << fed
239 <<
"/FED" << fed <<
"_ROSStatus";
291 LogWarning(
"DTDQM|DTRawToDigi|DTMonitorClient|DTBlockedROChannelsTest")
292 <<
"[DTRobBinsMap]***Error: ROB: " << robBin <<
" is not valid" << endl;
310 int nChangedROBs = 0;
319 for(map<int, int>::const_iterator robAndValue =
robsAndValues.begin();
321 if(
robChanged((*robAndValue).first)) nChangedROBs++;
323 return 1.-((double)nChangedROBs/(
double)
robsAndValues.size());
332 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 &)