|
|
Go to the documentation of this file.
32 struct RunBasedHistograms {
34 std::vector<dqm::reco::MonitorElement*> orbit_bx;
35 std::vector<dqm::reco::MonitorElement*> orbit_bx_all_byLS;
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")) {}
133 booker.setCurrentFolder(
m_dqm_path +
"/orbitVsBX");
134 histograms.orbit_bx_all = booker.book2D(
"OrbitVsBX",
135 "Event orbits vs. bunch crossing",
145 for (
unsigned int i = 0;
i < nLS; ++
i) {
147 histograms.orbit_bx_all_byLS[
i] = booker.book2D(
"OrbitVsBX_LS" + iname,
148 "Event orbits vs. bunch crossing, for lumisection " + iname,
156 histograms.orbit_bx_all_byLS[
i]->setYTitle(
"orbit");
159 booker.setCurrentFolder(
m_dqm_path +
"/orbitVsBX/TCDS");
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()))
const std::string m_dqm_path
static const unsigned int s_bx_range
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
constexpr auto size(const C &c) -> decltype(c.size())
dqm::implementation::IBooker IBooker
~TriggerBxVsOrbitMonitor() override=default
dqm::legacy::DQMStore DQMStore
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TriggerBxVsOrbitMonitor(edm::ParameterSet const &)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static constexpr const char *const s_tcds_trigger_types[]
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
dqm::legacy::MonitorElement MonitorElement
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
static const unsigned int s_orbit_range
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results