CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
TriggerBxMonitor Class Reference
Inheritance diagram for TriggerBxMonitor:
DQMGlobalEDAnalyzer< RunBasedHistograms > DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... > edm::global::EDProducer< edm::RunCache< RunBasedHistograms >, edm::EndRunProducer, edm::Accumulator, Args... > edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TriggerBxMonitor (edm::ParameterSet const &)
 
 ~TriggerBxMonitor () override=default
 
- Public Member Functions inherited from DQMGlobalEDAnalyzer< RunBasedHistograms >
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &, RunBasedHistograms const &) const
 
void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup) const final
 
- Public Member Functions inherited from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >
void accumulate (edm::StreamID id, edm::Event const &event, edm::EventSetup const &setup) const final
 
 DQMGlobalEDAnalyzerBase ()
 
std::shared_ptr< RunBasedHistograms > globalBeginRun (edm::Run const &run, edm::EventSetup const &setup) const final
 
void globalEndRun (edm::Run const &, edm::EventSetup const &) const final
 
- Public Member Functions inherited from edm::global::EDProducer< edm::RunCache< RunBasedHistograms >, edm::EndRunProducer, edm::Accumulator, Args... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
 
void dqmAnalyze (edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
 

Private Attributes

const std::string m_dqm_path
 
const edm::EDGetTokenT< edm::TriggerResultsm_hlt_results
 
const edm::EDGetTokenT< GlobalAlgBlkBxCollectionm_l1t_results
 
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcdm_l1tMenuToken
 
const uint32_t m_ls_range
 
const bool m_make_1d_plots
 
const bool m_make_2d_plots
 

Static Private Attributes

static const unsigned int s_bx_range = 3564
 
static constexpr const char * s_tcds_trigger_types []
 

Additional Inherited Members

- Public Types inherited from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >
uint64_t meId (edm::Run const &run) const
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 
- Protected Attributes inherited from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >
DQMStoredqmstore_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 66 of file TriggerBxMonitor.cc.

Constructor & Destructor Documentation

◆ TriggerBxMonitor()

TriggerBxMonitor::TriggerBxMonitor ( edm::ParameterSet const &  config)
explicit

Definition at line 126 of file TriggerBxMonitor.cc.

127  : // module configuration
128  m_l1tMenuToken{esConsumes<edm::Transition::BeginRun>()},
129  m_l1t_results(consumes<GlobalAlgBlkBxCollection>(config.getUntrackedParameter<edm::InputTag>("l1tResults"))),
130  m_hlt_results(consumes<edm::TriggerResults>(config.getUntrackedParameter<edm::InputTag>("hltResults"))),
131  m_dqm_path(config.getUntrackedParameter<std::string>("dqmPath")),
132  m_make_1d_plots(config.getUntrackedParameter<bool>("make1DPlots")),
133  m_make_2d_plots(config.getUntrackedParameter<bool>("make2DPlots")),
134  m_ls_range(config.getUntrackedParameter<uint32_t>("lsRange")) {}
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
Definition: config.py:1
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
const uint32_t m_ls_range
const std::string m_dqm_path
const bool m_make_1d_plots
const bool m_make_2d_plots
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1tMenuToken

◆ ~TriggerBxMonitor()

TriggerBxMonitor::~TriggerBxMonitor ( )
overridedefault

Member Function Documentation

◆ bookHistograms()

void TriggerBxMonitor::bookHistograms ( DQMStore::IBooker booker,
edm::Run const &  run,
edm::EventSetup const &  setup,
RunBasedHistograms &  histograms 
) const
overrideprivatevirtual

Implements DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.

Definition at line 179 of file TriggerBxMonitor.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), mps_fire::i, m_dqm_path, m_l1tMenuToken, m_ls_range, m_make_1d_plots, m_make_2d_plots, GlobalAlgBlk::maxPhysicsTriggers, Skims_PA_cff::name, s_bx_range, s_tcds_trigger_types, dqm::implementation::NavigatorBase::setCurrentFolder(), singleTopDQM_cfi::setup, findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.

182  {
183  // TCDS trigger type plots
184  {
186 
187  // book 2D histogram to monitor all TCDS trigger types in a single plot
189  histograms.tcds_bx_all = booker.book2D("TCDS Trigger Types",
190  "TCDS Trigger Types vs. bunch crossing",
191  s_bx_range + 1,
192  -0.5,
193  s_bx_range + 0.5,
194  size,
195  -0.5,
196  size - 0.5);
197 
198  // book the individual histograms for the known TCDS trigger types
199  booker.setCurrentFolder(m_dqm_path + "/TCDS");
200  for (unsigned int i = 0; i < size; ++i) {
201  if (s_tcds_trigger_types[i]) {
202  if (m_make_1d_plots) {
203  histograms.tcds_bx.at(i) =
205  }
206  if (m_make_2d_plots) {
207  std::string const& name_ls = std::string(s_tcds_trigger_types[i]) + " vs LS";
208  histograms.tcds_bx_2d.at(i) = booker.book2D(
209  name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5);
210  }
211  histograms.tcds_bx_all->setBinLabel(i + 1, s_tcds_trigger_types[i], 2); // Y axis
212  }
213  }
214  }
215 
216  // L1T plots
217  {
218  // book 2D histogram to monitor all L1 triggers in a single plot
220  histograms.l1t_bx_all = booker.book2D("Level 1 Triggers",
221  "Level 1 Triggers vs. bunch crossing",
222  s_bx_range + 1,
223  -0.5,
224  s_bx_range + 0.5,
226  -0.5,
228 
229  // book the individual histograms for the L1 triggers that are included in the L1 menu
230  booker.setCurrentFolder(m_dqm_path + "/L1T");
231  auto const& l1tMenu = setup.getData(m_l1tMenuToken);
232  for (auto const& keyval : l1tMenu.getAlgorithmMap()) {
233  unsigned int bit = keyval.second.getIndex();
234  std::string const& name = fmt::sprintf("%s (bit %d)", keyval.first, bit);
235  if (m_make_1d_plots) {
236  histograms.l1t_bx.at(bit) = booker.book1D(name, name, s_bx_range + 1, -0.5, s_bx_range + 0.5);
237  }
238  if (m_make_2d_plots) {
239  std::string const& name_ls = name + " vs LS";
240  histograms.l1t_bx_2d.at(bit) =
241  booker.book2D(name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5);
242  }
243  histograms.l1t_bx_all->setBinLabel(bit + 1, keyval.first, 2); // Y axis
244  }
245  }
246 
247  // HLT plots
248  if (histograms.hltConfig.inited()) {
249  // book 2D histogram to monitor all HLT paths in a single plot
251  histograms.hlt_bx_all = booker.book2D("High Level Triggers",
252  "High Level Triggers vs. bunch crossing",
253  s_bx_range + 1,
254  -0.5,
255  s_bx_range + 0.5,
256  histograms.hltConfig.size(),
257  -0.5,
258  histograms.hltConfig.size() - 0.5);
259 
260  // book the individual HLT triggers histograms
261  booker.setCurrentFolder(m_dqm_path + "/HLT");
262  for (unsigned int i = 0; i < histograms.hltConfig.size(); ++i) {
263  std::string const& name = histograms.hltConfig.triggerName(i);
264  if (m_make_1d_plots) {
265  histograms.hlt_bx[i] = booker.book1D(name, name, s_bx_range + 1, -0.5, s_bx_range + 0.5);
266  }
267  if (m_make_2d_plots) {
268  std::string const& name_ls = name + " vs LS";
269  histograms.hlt_bx_2d[i] =
270  booker.book2D(name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5);
271  }
272  histograms.hlt_bx_all->setBinLabel(i + 1, name, 2); // Y axis
273  }
274  }
275 }
size
Write out results.
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
static constexpr const char * s_tcds_trigger_types[]
const uint32_t m_ls_range
const std::string m_dqm_path
const bool m_make_1d_plots
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
static const unsigned int s_bx_range
static constexpr unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
const bool m_make_2d_plots
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1tMenuToken

◆ dqmAnalyze()

void TriggerBxMonitor::dqmAnalyze ( edm::Event const &  event,
edm::EventSetup const &  setup,
RunBasedHistograms const &  histograms 
) const
overrideprivatevirtual

Implements DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.

Definition at line 277 of file TriggerBxMonitor.cc.

References simKBmtfDigis_cfi::bx, PDWG_DiJetAODSkim_cff::hltResults, mps_fire::i, eostools::ls(), m_hlt_results, m_l1t_results, m_make_1d_plots, m_make_2d_plots, GlobalAlgBlk::maxPhysicsTriggers, bookConverter::results, s_tcds_trigger_types, and findQualityFiles::size.

279  {
280  unsigned int bx = event.bunchCrossing();
281  unsigned int ls = event.luminosityBlock();
282 
283  // monitor the bx distribution for the TCDS trigger types
284  {
286  unsigned int type = event.experimentType();
287  if (type < size) {
288  if (m_make_1d_plots and histograms.tcds_bx.at(type))
289  histograms.tcds_bx[type]->Fill(bx);
290  if (m_make_2d_plots and histograms.tcds_bx_2d.at(type))
291  histograms.tcds_bx_2d[type]->Fill(bx, ls);
292  }
293  histograms.tcds_bx_all->Fill(bx, type);
294  }
295 
296  // monitor the bx distribution for the L1 triggers
297  {
298  auto const& bxvector = event.get(m_l1t_results);
299  if (not bxvector.isEmpty(0)) {
300  auto const& results = bxvector.at(0, 0);
301  for (unsigned int i = 0; i < GlobalAlgBlk::maxPhysicsTriggers; ++i)
302  if (results.getAlgoDecisionFinal(i)) {
303  if (m_make_1d_plots and histograms.l1t_bx.at(i))
304  histograms.l1t_bx[i]->Fill(bx);
305  if (m_make_2d_plots and histograms.l1t_bx_2d.at(i))
306  histograms.l1t_bx_2d[i]->Fill(bx, ls);
307  histograms.l1t_bx_all->Fill(bx, i);
308  }
309  }
310  }
311 
312  // monitor the bx distribution for the HLT triggers
313  if (histograms.hltConfig.inited()) {
314  auto const& hltResults = event.get(m_hlt_results);
315  for (unsigned int i = 0; i < hltResults.size(); ++i) {
316  if (hltResults.at(i).accept()) {
317  if (m_make_1d_plots and histograms.hlt_bx.at(i))
318  histograms.hlt_bx[i]->Fill(bx);
319  if (m_make_2d_plots and histograms.hlt_bx_2d.at(i))
320  histograms.hlt_bx_2d[i]->Fill(bx, ls);
321  histograms.hlt_bx_all->Fill(bx, i);
322  }
323  }
324  }
325 }
size
Write out results.
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
static constexpr const char * s_tcds_trigger_types[]
def ls(path, rec=False)
Definition: eostools.py:349
const bool m_make_1d_plots
static constexpr unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
const bool m_make_2d_plots

◆ dqmBeginRun()

void TriggerBxMonitor::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  setup,
RunBasedHistograms &  histograms 
) const
overrideprivatevirtual

Reimplemented from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.

Definition at line 136 of file TriggerBxMonitor.cc.

References SummaryClient_cfi::labels, edm::EDConsumerBase::labelsForToken(), m_hlt_results, m_make_1d_plots, m_make_2d_plots, GlobalAlgBlk::maxPhysicsTriggers, writedatasetfile::run, s_tcds_trigger_types, singleTopDQM_cfi::setup, and findQualityFiles::size.

138  {
139  // initialise the TCDS vector
140  if (m_make_1d_plots) {
141  histograms.tcds_bx.clear();
142  histograms.tcds_bx.resize(std::size(s_tcds_trigger_types));
143  }
144  if (m_make_2d_plots) {
145  histograms.tcds_bx_2d.clear();
146  histograms.tcds_bx_2d.resize(std::size(s_tcds_trigger_types));
147  }
148 
149  // cache the L1 trigger menu
150  if (m_make_1d_plots) {
151  histograms.l1t_bx.clear();
153  }
154  if (m_make_2d_plots) {
155  histograms.l1t_bx_2d.clear();
157  }
158 
159  // initialise the HLTConfigProvider
160  bool changed = true;
163  if (histograms.hltConfig.init(run, setup, labels.process, changed)) {
164  if (m_make_1d_plots) {
165  histograms.hlt_bx.clear();
166  histograms.hlt_bx.resize(histograms.hltConfig.size());
167  }
168  if (m_make_2d_plots) {
169  histograms.hlt_bx_2d.clear();
170  histograms.hlt_bx_2d.resize(histograms.hltConfig.size());
171  }
172  } else {
173  // HLTConfigProvider not initialised, skip the the HLT monitoring
174  edm::LogError("TriggerBxMonitor")
175  << "failed to initialise HLTConfigProvider, the HLT bx distribution will not be monitored";
176  }
177 }
size
Write out results.
Log< level::Error, false > LogError
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
static constexpr const char * s_tcds_trigger_types[]
const bool m_make_1d_plots
static constexpr unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
const bool m_make_2d_plots
void labelsForToken(EDGetToken iToken, Labels &oLabels) const

◆ fillDescriptions()

void TriggerBxMonitor::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 115 of file TriggerBxMonitor.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v14_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

115  {
117  desc.addUntracked<edm::InputTag>("l1tResults", edm::InputTag("gtStage2Digis"));
118  desc.addUntracked<edm::InputTag>("hltResults", edm::InputTag("TriggerResults"));
119  desc.addUntracked<std::string>("dqmPath", "HLT/TriggerBx");
120  desc.addUntracked<bool>("make1DPlots", true);
121  desc.addUntracked<bool>("make2DPlots", false);
122  desc.addUntracked<uint32_t>("lsRange", 4000);
123  descriptions.add("triggerBxMonitor", desc);
124 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ m_dqm_path

const std::string TriggerBxMonitor::m_dqm_path
private

Definition at line 106 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

◆ m_hlt_results

const edm::EDGetTokenT<edm::TriggerResults> TriggerBxMonitor::m_hlt_results
private

Definition at line 105 of file TriggerBxMonitor.cc.

Referenced by dqmAnalyze(), and dqmBeginRun().

◆ m_l1t_results

const edm::EDGetTokenT<GlobalAlgBlkBxCollection> TriggerBxMonitor::m_l1t_results
private

Definition at line 104 of file TriggerBxMonitor.cc.

Referenced by dqmAnalyze().

◆ m_l1tMenuToken

const edm::ESGetToken<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd> TriggerBxMonitor::m_l1tMenuToken
private

Definition at line 103 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

◆ m_ls_range

const uint32_t TriggerBxMonitor::m_ls_range
private

Definition at line 109 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

◆ m_make_1d_plots

const bool TriggerBxMonitor::m_make_1d_plots
private

Definition at line 107 of file TriggerBxMonitor.cc.

Referenced by bookHistograms(), dqmAnalyze(), and dqmBeginRun().

◆ m_make_2d_plots

const bool TriggerBxMonitor::m_make_2d_plots
private

Definition at line 108 of file TriggerBxMonitor.cc.

Referenced by bookHistograms(), dqmAnalyze(), and dqmBeginRun().

◆ s_bx_range

const unsigned int TriggerBxMonitor::s_bx_range = 3564
staticprivate

Definition at line 79 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

◆ s_tcds_trigger_types

constexpr const char * TriggerBxMonitor::s_tcds_trigger_types
staticprivate
Initial value:
= {
"Empty",
"Physics",
"Calibration",
"Random",
"Auxiliary",
nullptr,
nullptr,
nullptr,
"Cyclic",
"Bunch-pattern",
"Software",
"TTS",
nullptr,
nullptr,
nullptr,
nullptr
}

Definition at line 83 of file TriggerBxMonitor.cc.

Referenced by bookHistograms(), dqmAnalyze(), and dqmBeginRun().