32 struct RunBasedHistograms {
34 std::vector<dqm::reco::MonitorElement*> orbit_bx;
35 std::vector<dqm::reco::MonitorElement*> orbit_bx_all_byLS;
94 desc.addUntracked<
int>(
"minLS", 134);
95 desc.addUntracked<
int>(
"maxLS", 136);
96 desc.addUntracked<
int>(
"minBX", 894);
97 desc.addUntracked<
int>(
"maxBX", 912);
98 descriptions.
add(
"triggerBxVsOrbitMonitor",
desc);
106 m_minLS(
config.getUntrackedParameter<
int>(
"minLS")),
107 m_maxLS(
config.getUntrackedParameter<
int>(
"maxLS")),
108 m_minBX(
config.getUntrackedParameter<
int>(
"minBX")),
109 m_maxBX(
config.getUntrackedParameter<
int>(
"maxBX")) {}
135 "Event orbits vs. bunch crossing",
145 for (
unsigned int i = 0;
i < nLS; ++
i) {
148 "Event orbits vs. bunch crossing, for lumisection " + iname,
156 histograms.orbit_bx_all_byLS[
i]->setYTitle(
"orbit");
160 for (
unsigned int i = 0;
i <
size; ++
i) {
179 unsigned int type =
event.experimentType();
180 unsigned int ls =
event.id().luminosityBlock();
182 unsigned int bx =
event.bunchCrossing();
186 if (iLS >= 0 and iLS <
int(
histograms.orbit_bx_all_byLS.size()))
virtual void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
static const unsigned int s_orbit_range
std::string to_string(const V &value)
static const unsigned int s_bx_range
dqm::reco::DQMStore DQMStore
~TriggerBxVsOrbitMonitor() override=default
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
TriggerBxVsOrbitMonitor(edm::ParameterSet const &)
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
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())
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const std::string m_dqm_path
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
static constexpr const char *const s_tcds_trigger_types[]
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)