66 : folderName_(config.getParameter<
std::
string>(
"FolderName")),
79 mebinning.xmax = double(pset.
getParameter<int32_t>(
"nbins"));
93 std::vector<std::string>
labels;
97 nbins = labels.size();
99 xmax = double(labels.size());
104 labels.resize(nbins,
"");
107 histname =
"psColumnIndexVsLS";
108 histtitle =
"PS column index vs LS";
111 me->setAxisTitle(
"LS", 1);
112 me->setAxisTitle(
"PS column index", 2);
113 histograms.psColumnIndexVsLS =
me;
116 for (
auto const&
l : labels) {
117 histograms.psColumnIndexVsLS->setBinLabel(bin,
l, 2);
123 int ls =
event.id().luminosityBlock();
129 psColumn = ugtBXhandle->
at(0, 0).getPreScColumn();
131 histograms.psColumnIndexVsLS->Fill(ls, psColumn);
155 descriptions.
add(
"psMonitoring", desc);
T getParameter(std::string const &) const
edm::EDGetTokenT< GlobalAlgBlkBxCollection > ugtBXToken_
void dqmAnalyze(edm::Event const &event, edm::EventSetup const &setup, Histograms const &) const override
void setCurrentFolder(std::string const &fullpath)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool isEmpty(int bx) const
dqm::dqmstoreimpl::DQMStore DQMStore
void getHistoPSet(edm::ParameterSet &pset, MEbinning &mebinning)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override
#define DEFINE_FWK_MODULE(type)
example_global void dqmAnalyze(edm::Event const &,@example_global edm::EventSetup const &,@example_global Histograms___class__ const &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const VString_t & getLvl1Labels() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
dqm::legacy::MonitorElement MonitorElement
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset, int value)
PSMonitor(const edm::ParameterSet &)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
const T & at(int bx, unsigned i) const