DQM Client Diagnostic.
83 LogVerbatim (
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
84 <<
"[DTNoiseAnalysisTest]: End of LS transition, performing the DQM client operation";
89 (*plot).second->Reset();
94 (*plot).second->Reset();
101 vector<const DTChamber*>::const_iterator ch_it =
muonGeom->
chambers().begin();
102 vector<const DTChamber*>::const_iterator ch_end =
muonGeom->
chambers().end();
104 LogTrace (
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
105 <<
"[DTNoiseAnalysisTest]: Fill the summary histos";
107 for (; ch_it != ch_end; ++ch_it) {
114 TH2F * histo_root = histo->
getTH2F();
116 for(
int sl = 1; sl != 4; ++sl) {
118 if(chID.
station() == 4 && sl == 2)
continue;
120 int binYlow = ((sl-1)*4)+1;
122 for(
int layer = 1; layer <= 4; ++layer) {
130 int binY = binYlow+(layer-1);
132 for(
int wire = firstWire; wire != (nWires+firstWire); wire++){
134 double noise = histo_root->GetBinContent(wire, binY);
138 int sector = chID.
sector();
142 }
else if(sector == 14) {
158 int threshBin =
step + 1;
159 int minBin = 26 +
step*5;
160 int nNoisyCh = histo->Integral(minBin,101);
169 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
170 <<
"[DTNoiseAnalysisTest]: fill summaries for synch noise" << endl;
177 if(histoNoiseSynch != 0) {
178 for(
int sect = 1; sect != 13; ++sect) {
179 TH2F * histo = histoNoiseSynch->
getTH2F();
180 float maxSectRate = 0;
181 for(
int sta = 1; sta != 5; ++sta) {
185 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
186 <<
" Wheel: " <<
wheel <<
" sect: " << sect
187 <<
" station: " << sta
188 <<
" rate is: " << chRate << endl;
189 if (chRate > maxSectRate)
190 maxSectRate = chRate;
199 LogWarning(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
206 string nEvtsName =
"DT/EventInfo/Counters/nProcessedEventsNoise";
217 LogVerbatim (
"DTDQM|DTMonitorClient|DTnoiseAnalysisTest") <<
"[DTNoiseAnalysisTest] ME: " 218 << nEvtsName <<
" not found!" << endl;
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * threshChannelsHisto
MonitorElement * get(const std::string &path)
std::map< int, MonitorElement * > noisyCellHistos
edm::ESHandle< DTGeometry > muonGeom
int firstChannel() const
Returns the wire number of the first wire.
const DTLayer * layer(DTLayerId id) const
Return a layer given its id.
const DTTopology & specificTopology() const
void bookHistos(DQMStore::IBooker &)
book the summary histograms
double getFloatValue(void) const
std::string getMEName(const DTChamberId &chID)
Get the ME name.
void setEntries(double nentries)
set # of entries
int channels() const
Returns the number of wires in the layer.
MonitorElement * summarySynchNoiseHisto
MonitorElement * glbSummarySynchNoiseHisto
std::map< int, MonitorElement * > noiseHistos
std::string getSynchNoiseMEName(int wheelId) const
MonitorElement * summaryNoiseHisto
int station() const
Return the station number.
TH2F * getTH2F(void) const
int wheel() const
Return the wheel number.
void Reset(void)
reset ME (ie. contents, errors, etc)