11 for (
unsigned int i = 0;
i < 10;
i++)
13 std::vector<int>
algos =
cfg.getUntrackedParameter<std::vector<int> >(
"watchedErrors");
14 for (std::vector<int>::const_iterator it =
algos.begin(); it !=
algos.end(); ++it) {
15 unsigned int ialgo = *it;
30 for (
int i = 0;
i < 3; ++
i)
31 me_t[
i]->getTH1F()->SetStats(
false);
36 for (
int i = 0;
i < 3; ++
i)
37 me_e[
i]->getTH1F()->SetStats(
false);
44 me_mapBadEvents = ibooker.
book2D(
"mapErrorRecords",
"mapErrorRecords", 36, -0.5, 35.5, 3, 789.5, 792.5);
50 for (
unsigned int i = 0;
i <= 9; ++
i) {
52 for (
unsigned int fed = 790; fed <= 792; ++fed) {
68 for (
auto cnt :
counts.theRecordTypes)
69 me_t[cnt.first.first - 790]->
Fill(cnt.first.second, cnt.second);
72 for (
auto cnt :
counts.theGoodEvents)
76 for (
auto cnt :
counts.theBadEvents)
80 for (
auto cnt :
counts.theReadoutErrors) {
85 int fed = cnt.first.first;
void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * me_mapBadEvents
T const * product() const
static TH1F * emptyReadoutErrorHisto(int fedId)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * me_mapGoodEvents
edm::EDGetTokenT< RPCRawDataCounts > rpcRawDataCountsTag_
std::vector< MonitorElement * > theWatchedErrorHistos[3]
static TH2F * emptyReadoutErrorMapHisto(int fedId, int type)
RPCMonitorRaw(const edm::ParameterSet &cfg)
~RPCMonitorRaw() override
unsigned int theWatchedErrorHistoPos[10]
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
static TH1F * emptyRecordTypeHisto(int fedId)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)