|
| 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 99 of file TriggerRatesMonitor.cc.
Implements DQMGlobalEDAnalyzerBase< RunBasedHistograms, Args... >.
Definition at line 238 of file TriggerRatesMonitor.cc.
References triggerObjects_cff::bit, dqm::implementation::IBooker::book1D(), 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, runGCPTkAlMap::title, and L1TEGammaOffline_cfi::triggerNames.
247 unsigned int const sizeof_tcds_trigger_types =
sizeof(
s_tcds_trigger_types) /
sizeof(
const char *);
248 if (sizeof_tcds_trigger_types ==
histograms.tcds_counts.size()) {
249 for (
unsigned int i = 0;
i < sizeof_tcds_trigger_types; ++
i)
257 <<
"This should never happen: size of \"s_tcds_trigger_types\" array (" << sizeof_tcds_trigger_types
258 <<
") differs from size of \"histograms.tcds_counts\" vector (size=" <<
histograms.tcds_counts.size()
259 <<
").\nRate histograms of TCDS trigger types will not be booked for this run.";
264 for (
auto const &keyval : l1tMenu.getAlgorithmMap()) {
265 unsigned int const bit = keyval.second.getIndex();
268 <<
"This should never happen: bit of L1T algorithm (bit=" <<
bit <<
", name=\"" << keyval.first
269 <<
"\") is not smaller than size of \"histograms.l1t_counts\" vector (size=" <<
histograms.l1t_counts.size()
270 <<
").\nRate histogram of this L1T algorithm will not be booked for this run.";
276 fmt::sprintf(
"%s (bit %d)%s vs. lumisection", keyval.first,
bit, (masked ?
" (masked)" :
""));
288 name +
" pass L1 seed, vs. lumisection",
293 name +
" pass prescaler, vs. lumisection",
298 name +
" accept, vs. lumisection",
303 name +
" reject, vs. lumisection",
317 if (
type ==
"HLTL1TSeed" or type ==
"HLTLevel1GTSeed" or type ==
"HLTLevel1Activity" or 318 type ==
"HLTLevel1Pattern") {
322 }
else if (
type ==
"HLTPrescaler") {
339 auto const &streamNames =
histograms.hltConfig.streamNames();
340 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 346 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.
349 unsigned int lumisection =
event.luminosityBlock();
352 histograms.events_processed->Fill(lumisection);
358 if (not algBlkBxVecHandle.isValid()) {
361 <<
"] not present or invalid. MonitorElements of L1T results not filled for this event.";
362 }
else if (algBlkBxVecHandle->isEmpty(0)) {
365 <<
"] empty for BX=0. MonitorElements of L1T results not filled for this event.";
367 auto const &
results = algBlkBxVecHandle->at(0, 0);
369 if (
results.getAlgoDecisionFinal(
i))
379 <<
"This should never happen: the number of HLT paths has changed since the beginning of the run" 381 <<
"Histograms for rates of HLT paths, datasets and streams will not be filled for this event.";
385 for (
unsigned int i = 0;
i <
histograms.hltIndices.size(); ++
i) {
390 histograms.hlt_counts[
i].pass_l1_seed->Fill(lumisection);
392 histograms.hlt_counts[
i].pass_prescale->Fill(lumisection);
394 histograms.hlt_counts[
i].accept->Fill(lumisection);
395 else if (
path.error())
398 histograms.hlt_counts[
i].reject->Fill(lumisection);
401 for (
unsigned int d = 0;
d <
histograms.datasets.size(); ++
d) {
411 for (
unsigned int i = 0;
i <
histograms.streams.size(); ++
i) {
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 165 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().
181 auto const nTriggers =
histograms.hltConfig.size();
187 unsigned int const nDatasets =
histograms.hltConfig.datasetNames().size();
190 for (
unsigned int i = 0;
i < nDatasets; ++
i) {
195 if (triggerIdx < nTriggers)
199 <<
"The rates of the HLT path \"" <<
path <<
"\" (dataset: \"" <<
histograms.hltConfig.datasetName(
i)
200 <<
"\") will not be monitored for this run.\nThis HLT path is not available in the process \"" 201 <<
labels.process <<
"\", but it is listed in its \"datasets\" PSet.";
207 unsigned int const nStreams =
histograms.hltConfig.streamNames().size();
210 for (
unsigned int i = 0;
i < nStreams; ++
i) {
214 if (triggerIdx < nTriggers)
218 <<
"The rates of the HLT path \"" <<
path <<
"\" (stream: \"" <<
histograms.hltConfig.streamName(
i)
219 <<
"\", dataset: \"" <<
dataset <<
"\") will not be monitored for this run.\n" 220 <<
"This HLT path is not available in the process \"" <<
labels.process
221 <<
"\", but it is listed in its \"datasets\" PSet.";
233 edm::LogError(
"TriggerRatesMonitor") <<
"Failed to initialise HLTConfigProvider: the rates of HLT triggers, " 234 "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