|
| TriggerRatesMonitor (edm::ParameterSet const &) |
|
| ~TriggerRatesMonitor () override=default |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &, RunBasedHistograms const &) const |
|
void | globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup) const final |
|
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 |
|
| 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 |
|
EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
bool | wantsStreamLuminosityBlocks () const noexcept final |
|
bool | wantsStreamRuns () const noexcept final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
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 |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef dqm::reco::DQMStore | DQMStore |
|
typedef dqm::reco::MonitorElement | MonitorElement |
|
typedef EDProducerBase | ModuleType |
|
template<typename T > |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
uint64_t | meId (edm::Run const &run) const |
|
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 () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (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 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) |
|
DQMStore * | dqmstore_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Definition at line 97 of file TriggerRatesMonitor.cc.
Implements DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.
Definition at line 237 of file TriggerRatesMonitor.cc.
References triggerObjects_cff::bit, dqm::implementation::IBooker::book1D(), ztail::d, makeLayoutFileForGui::datasetNames, mps_fire::i, dqmiolumiharvest::j, label, m_dqm_path, m_l1tMenu_token, m_lumisections_range, Skims_PA_cff::name, or, s_tcds_trigger_types, dqm::implementation::NavigatorBase::setCurrentFolder(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
246 unsigned int const sizeof_tcds_trigger_types =
sizeof(
s_tcds_trigger_types) /
sizeof(
const char *);
247 if (sizeof_tcds_trigger_types ==
histograms.tcds_counts.size()) {
248 for (
unsigned int i = 0;
i < sizeof_tcds_trigger_types; ++
i)
256 <<
"This should never happen: size of \"s_tcds_trigger_types\" array (" << sizeof_tcds_trigger_types
257 <<
") differs from size of \"histograms.tcds_counts\" vector (size=" <<
histograms.tcds_counts.size()
258 <<
").\nRate histograms of TCDS trigger types will not be booked for this run.";
263 for (
auto const &keyval : l1tMenu.getAlgorithmMap()) {
264 unsigned int const bit = keyval.second.getIndex();
267 <<
"This should never happen: bit of L1T algorithm (bit=" <<
bit <<
", name=\"" << keyval.first
268 <<
"\") is not smaller than size of \"histograms.l1t_counts\" vector (size=" <<
histograms.l1t_counts.size()
269 <<
").\nRate histogram of this L1T algorithm will not be booked for this run.";
275 fmt::sprintf(
"%s (bit %d)%s vs. lumisection", keyval.first,
bit, (masked ?
" (masked)" :
""));
285 for (
unsigned int i = 0;
i <
histograms.datasets[
d].size(); ++
i) {
289 name +
" pass L1 seed, vs. lumisection",
294 name +
" pass prescaler, vs. lumisection",
299 name +
" accept, vs. lumisection",
304 name +
" reject, vs. lumisection",
309 name +
" error, vs. lumisection",
322 if (
type ==
"HLTL1TSeed" or type ==
"HLTLevel1GTSeed" or type ==
"HLTLevel1Activity" or 323 type ==
"HLTLevel1Pattern") {
327 }
else if (
type ==
"HLTPrescaler") {
344 auto const &streamNames =
histograms.hltConfig.streamNames();
345 for (
unsigned int i = 0;
i < streamNames.size(); ++
i)
const std::string m_dqm_path
virtual void setCurrentFolder(std::string const &fullpath)
Log< level::Error, false > LogError
const uint32_t m_lumisections_range
static constexpr const char *const s_tcds_trigger_types[]
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1tMenu_token
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void TriggerRatesMonitor::dqmAnalyze |
( |
edm::Event const & |
event, |
|
|
edm::EventSetup const & |
setup, |
|
|
RunBasedHistograms const & |
histograms |
|
) |
| const |
|
overrideprivatevirtual |
Implements DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.
Definition at line 351 of file TriggerRatesMonitor.cc.
References accept(), ztail::d, edm::InputTag::encode(), JetHT_cfg::hltResults, mps_fire::i, dqmiolumiharvest::j, m_hlt_results_token, m_l1t_results_inputTag, m_l1t_results_token, GlobalAlgBlk::maxPhysicsTriggers, castor_dqm_sourceclient_file_cfg::path, and mysort::results.
354 unsigned int lumisection =
event.luminosityBlock();
357 histograms.events_processed->Fill(lumisection);
363 if (not algBlkBxVecHandle.isValid()) {
366 <<
"] not present or invalid. MonitorElements of L1T results not filled for this event.";
367 }
else if (algBlkBxVecHandle->isEmpty(0)) {
370 <<
"] empty for BX=0. MonitorElements of L1T results not filled for this event.";
372 auto const &
results = algBlkBxVecHandle->at(0, 0);
374 if (
results.getAlgoDecisionFinal(
i))
384 <<
"This should never happen: the number of HLT paths has changed since the beginning of the run" 386 <<
"Histograms for rates of HLT paths, datasets and streams will not be filled for this event.";
390 for (
unsigned int d = 0;
d <
histograms.datasets.size(); ++
d) {
397 for (
unsigned int i = 0;
i <
histograms.datasets[
d].size(); ++
i) {
402 histograms.hlt_by_dataset_counts[
d][
i].pass_l1_seed->Fill(lumisection);
404 histograms.hlt_by_dataset_counts[
d][
i].pass_prescale->Fill(lumisection);
406 histograms.hlt_by_dataset_counts[
d][
i].accept->Fill(lumisection);
407 else if (
path.error())
408 histograms.hlt_by_dataset_counts[
d][
i].error->Fill(lumisection);
410 histograms.hlt_by_dataset_counts[
d][
i].reject->Fill(lumisection);
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results_token
Log< level::Error, false > LogError
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results_token
static constexpr unsigned int maxPhysicsTriggers
const edm::InputTag m_l1t_results_inputTag
void TriggerRatesMonitor::dqmBeginRun |
( |
edm::Run const & |
run, |
|
|
edm::EventSetup const & |
setup, |
|
|
RunBasedHistograms & |
histograms |
|
) |
| const |
|
overrideprivatevirtual |
Reimplemented from DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.
Definition at line 163 of file TriggerRatesMonitor.cc.
References mps_fire::i, SummaryClient_cfi::labels, edm::EDConsumerBase::labelsForToken(), LogDebug, m_hlt_results_token, GlobalAlgBlk::maxPhysicsTriggers, castor_dqm_sourceclient_file_cfg::path, Skims_PA_cff::paths, writedatasetfile::run, s_tcds_trigger_types, singleTopDQM_cfi::setup, jetUpdater_cfi::sort, and tier0::unique().
179 auto const nTriggers =
histograms.hltConfig.size();
182 unsigned int const nDatasets =
histograms.hltConfig.datasetNames().size();
184 histograms.hlt_by_dataset_counts.resize(nDatasets);
188 for (
unsigned int i = 0;
i < nDatasets; ++
i) {
194 if (triggerIdx < nTriggers)
198 <<
"The rates of the HLT path \"" <<
path <<
"\" (dataset: \"" <<
histograms.hltConfig.datasetName(
i)
199 <<
"\") will not be monitored for this run.\nThis HLT path is not available in the process \"" 200 <<
labels.process <<
"\", but it is listed in its \"datasets\" PSet.";
206 unsigned int const nStreams =
histograms.hltConfig.streamNames().size();
209 for (
unsigned int i = 0;
i < nStreams; ++
i) {
213 if (triggerIdx < nTriggers)
217 <<
"The rates of the HLT path \"" <<
path <<
"\" (stream: \"" <<
histograms.hltConfig.streamName(
i)
218 <<
"\", dataset: \"" <<
dataset <<
"\") will not be monitored for this run.\n" 219 <<
"This HLT path is not available in the process \"" <<
labels.process
220 <<
"\", but it is listed in its \"datasets\" PSet.";
232 edm::LogError(
"TriggerRatesMonitor") <<
"Failed to initialise HLTConfigProvider: the rates of HLT triggers, " 233 "datasets and streams will not be monitored for this run.";
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results_token
Log< level::Error, false > LogError
static constexpr const char *const s_tcds_trigger_types[]
def unique(seq, keepstr=True)
static constexpr unsigned int maxPhysicsTriggers
void labelsForToken(EDGetToken iToken, Labels &oLabels) const