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();
128 if (ugtBXhandle.
isValid() and not ugtBXhandle->isEmpty(0)) {
129 psColumn = ugtBXhandle->at(0, 0).getPreScColumn();
131 histograms.psColumnIndexVsLS->Fill(ls, psColumn);
155 descriptions.
add(
"psMonitoring", desc);
edm::EDGetTokenT< GlobalAlgBlkBxCollection > ugtBXToken_
void dqmAnalyze(edm::Event const &event, edm::EventSetup const &setup, Histograms const &) const override
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
dqm::reco::DQMStore DQMStore
void getHistoPSet(edm::ParameterSet &pset, MEbinning &mebinning)
~PSMonitor() override=default
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const VString_t & getLvl1Labels() const
dqm::legacy::MonitorElement MonitorElement
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset, int value)
tuple config
parse the configuration file
PSMonitor(const edm::ParameterSet &)