34 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"[DTNoiseAnalysisTest]: Constructor";
54 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"DTNoiseAnalysisTest: analyzed " <<
nevents <<
" events";
74 LogVerbatim(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
75 <<
"[DTNoiseAnalysisTest]: End of LS transition, performing the DQM client operation";
79 (*plot).second->Reset();
83 (*plot).second->Reset();
88 vector<const DTChamber*>::const_iterator ch_it =
muonGeom->
chambers().begin();
89 vector<const DTChamber*>::const_iterator ch_end =
muonGeom->
chambers().end();
91 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest") <<
"[DTNoiseAnalysisTest]: Fill the summary histos";
93 for (; ch_it != ch_end; ++ch_it) {
100 TH2D* histo_root =
histo->getTH2D();
102 for (
int sl = 1; sl != 4; ++sl) {
104 if (chID.
station() == 4 && sl == 2)
107 int binYlow = ((sl - 1) * 4) + 1;
117 int binY = binYlow + (
layer - 1);
119 for (
int wire = firstWire;
wire != (nWires + firstWire);
wire++) {
121 double noise = histo_root->GetBinContent(
wire, binY);
143 }
else if (
sector == 14) {
159 int threshBin =
step + 1;
169 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
170 <<
"[DTNoiseAnalysisTest]: fill summaries for synch noise" << endl;
177 if (histoNoiseSynch !=
nullptr) {
178 for (
int sect = 1; sect != 13; ++sect) {
180 float maxSectRate = 0;
181 for (
int sta = 1; sta != 5; ++sta) {
187 LogTrace(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
188 <<
" Wheel: " <<
wheel <<
" sect: " << sect <<
" station: " << sta <<
" rate is: " << chRate << endl;
189 if (chRate > maxSectRate)
190 maxSectRate = chRate;
197 LogWarning(
"DTDQM|DTMonitorClient|DTNoiseAnalysisTest")
203 string nEvtsName =
"DT/EventInfo/Counters/nProcessedEventsNoise";
214 LogVerbatim(
"DTDQM|DTMonitorClient|DTnoiseAnalysisTest")
215 <<
"[DTNoiseAnalysisTest] ME: " << nEvtsName <<
" not found!" << endl;
239 for (
int wh = -2; wh <= 2; wh++) {
254 for (
int wh = -2; wh <= 2; wh++) {
299 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
static constexpr std::array< std::array< float, 4 >, 2 > lenghtSL_MB
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.
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.
static constexpr float cellW
virtual double getFloatValue() const
static constexpr std::array< std::array< float, 4 >, 3 > kW_MB
void bookHistos(DQMStore::IBooker &)
book the summary histograms
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
static constexpr float instLumi
Abs< T >::type abs(const T &t)
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.
constexpr unsigned int minBin
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)