34 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"[DTNoiseAnalysisTest]: Constructor";
51 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"DTNoiseAnalysisTest: analyzed " <<
nevents <<
" events";
71 LogVerbatim(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
72 <<
"[DTNoiseAnalysisTest]: End of LS transition, performing the DQM client operation";
76 (*plot).second->Reset();
80 (*plot).second->Reset();
85 vector<const DTChamber*>::const_iterator ch_it =
muonGeom->
chambers().begin();
86 vector<const DTChamber*>::const_iterator ch_end =
muonGeom->
chambers().end();
88 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"[DTNoiseAnalysisTest]: Fill the summary histos";
90 for (; ch_it != ch_end; ++ch_it) {
97 TH2F* histo_root =
histo->getTH2F();
99 for (
int sl = 1; sl != 4; ++sl) {
101 if (chID.
station() == 4 && sl == 2)
104 int binYlow = ((sl - 1) * 4) + 1;
114 int binY = binYlow + (
layer - 1);
116 for (
int wire = firstWire; wire != (nWires + firstWire); wire++) {
118 double noise = histo_root->GetBinContent(wire, binY);
126 }
else if (
sector == 14) {
142 int threshBin =
step + 1;
152 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
153 <<
"[DTNoiseAnalysisTest]: fill summaries for synch noise" << endl;
160 if (histoNoiseSynch !=
nullptr) {
161 for (
int sect = 1; sect != 13; ++sect) {
163 float maxSectRate = 0;
164 for (
int sta = 1; sta != 5; ++sta) {
170 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
171 <<
" Wheel: " <<
wheel <<
" sect: " << sect <<
" station: " << sta <<
" rate is: " << chRate << endl;
172 if (chRate > maxSectRate)
173 maxSectRate = chRate;
180 LogWarning(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
186 string nEvtsName =
"DT/EventInfo/Counters/nProcessedEventsNoise";
197 LogVerbatim(
"DTDQM|DTMonitorClient|DTnoiseAnalysisTest")
198 <<
"[DTNoiseAnalysisTest] ME: " << nEvtsName <<
" not found!" << endl;
222 for (
int wh = -2; wh <= 2; wh++) {
237 for (
int wh = -2; wh <= 2; wh++) {
282 string folderName =
"DT/05-Noise/SynchNoise/";
Log< level::Info, true > LogVerbatim
int station() const
Return the station number.
MonitorElement * threshChannelsHisto
virtual void setCurrentFolder(std::string const &fullpath)
virtual void setEntries(double nentries)
set # of entries
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
std::map< int, MonitorElement * > noisyCellHistos
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
T getUntrackedParameter(std::string const &, T const &) const
int firstChannel() const
Returns the wire number of the first wire.
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
std::string getSynchNoiseMEName(int wheelId) const
virtual TH2F * getTH2F() const
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
virtual double getFloatValue() const
void bookHistos(DQMStore::IBooker &)
book the summary histograms
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
std::string getMEName(const DTChamberId &chID)
Get the ME name.
const DTTopology & specificTopology() const
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * summarySynchNoiseHisto
std::map< int, MonitorElement * > noiseHistos
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
const DTGeometry * muonGeom
virtual MonitorElement * get(std::string const &fullpath) const
MonitorElement * glbSummarySynchNoiseHisto
int wheel() const
Return the wheel number.
~DTNoiseAnalysisTest() override
Destructor.
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
Log< level::Warning, false > LogWarning
MonitorElement * summaryNoiseHisto
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
DTNoiseAnalysisTest(const edm::ParameterSet &ps)
Constructor.
int channels() const
Returns the number of wires in the layer.
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)