#include <TriggerJSONMonitoring.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static std::shared_ptr < hltJson::lumiVars > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, hltJson::lumiVars *) |
Static Public Member Functions inherited from edm::stream::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Public Attributes | |
std::string | baseRunDir_ |
std::vector< std::vector < std::string > > | datasetContents_ |
std::vector< std::string > | datasetNames_ |
std::vector< unsigned int > | hltAccept_ |
HLTConfigProvider | hltConfig_ |
std::vector< unsigned int > | hltDatasets_ |
std::vector< unsigned int > | hltErrors_ |
std::vector< std::vector < unsigned int > > | hltIndex_ |
std::vector< unsigned int > | hltL1s_ |
std::vector< std::string > | hltNames_ |
std::vector< unsigned int > | hltPre_ |
std::vector< unsigned int > | hltReject_ |
std::vector< unsigned int > | hltWasRun_ |
std::string | jsonLegendDefFile_ |
std::string | jsonRateDefFile_ |
std::vector< int > | posL1s_ |
std::vector< int > | posPre_ |
unsigned int | processed_ |
edm::InputTag | triggerResults_ |
edm::EDGetTokenT < edm::TriggerResults > | triggerResultsToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer< edm::LuminosityBlockSummaryCache< hltJson::lumiVars > > | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDAnalyzerBase | |
typedef EDAnalyzerAdaptorBase | ModuleType |
Protected Member Functions inherited from edm::stream::EDAnalyzerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Description: This class prints JSON files with trigger info.
Created: Wed, 09 Jul 2014
See header file for documentation
Definition at line 61 of file TriggerJSONMonitoring.h.
|
explicit |
Definition at line 22 of file TriggerJSONMonitoring.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), triggerResults_, and triggerResultsToken_.
TriggerJSONMonitoring::~TriggerJSONMonitoring | ( | ) |
Definition at line 30 of file TriggerJSONMonitoring.cc.
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 42 of file TriggerJSONMonitoring.cc.
References edm::InputTag::encode(), edm::Event::getByToken(), hltAccept_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, cmsHarvester::index, LogDebug, n, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, processed_, triggerResults_, and triggerResultsToken_.
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 202 of file TriggerJSONMonitoring.cc.
References resetLumi().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 164 of file TriggerJSONMonitoring.cc.
References baseRunDir_, hltConfig_, HLTConfigProvider::init(), jsonLegendDefFile_, jsonRateDefFile_, LogDebug, cmsHarvester::path, edm::InputTag::process(), resetRun(), edm::RunBase::run(), triggerResults_, writeDefJson(), and writeDefLegJson().
void TriggerJSONMonitoring::endLuminosityBlockSummary | ( | edm::LuminosityBlock const & | iLumi, |
edm::EventSetup const & | iEventSetup, | ||
hltJson::lumiVars * | iSummary | ||
) | const |
Definition at line 229 of file TriggerJSONMonitoring.cc.
References asciidump::at, hltJson::lumiVars::baseRunDir, baseRunDir_, hltJson::lumiVars::datasetNames, datasetNames_, hltJson::lumiVars::hltAccept, hltAccept_, hltJson::lumiVars::hltDatasets, hltDatasets_, hltJson::lumiVars::hltErrors, hltErrors_, hltJson::lumiVars::hltL1s, hltL1s_, hltJson::lumiVars::hltNames, hltNames_, hltJson::lumiVars::hltPre, hltPre_, hltJson::lumiVars::hltReject, hltReject_, hltJson::lumiVars::hltWasRun, hltWasRun_, hltJson::lumiVars::jsonLegendDefFile, jsonLegendDefFile_, hltJson::lumiVars::jsonRateDefFile, jsonRateDefFile_, hltJson::lumiVars::processed, processed_, interactiveExample::ui, jsoncollector::HistoJ< T >::update(), and jsoncollector::HistoJ< T >::value().
|
static |
Definition at line 35 of file TriggerJSONMonitoring.cc.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().
|
static |
Definition at line 205 of file TriggerJSONMonitoring.cc.
|
static |
Definition at line 274 of file TriggerJSONMonitoring.cc.
References Json::Value::append(), hltJson::lumiVars::baseRunDir, cscdqm::DATA, hltJson::lumiVars::datasetNames, hltJson::lumiVars::hltAccept, hltJson::lumiVars::hltDatasets, hltJson::lumiVars::hltErrors, hltJson::lumiVars::hltL1s, hltJson::lumiVars::hltNames, hltJson::lumiVars::hltPre, hltJson::lumiVars::hltReject, hltJson::lumiVars::hltWasRun, hltJson::lumiVars::jsonLegendDefFile, hltJson::lumiVars::jsonRateDefFile, edm::LuminosityBlockBase::luminosityBlock(), hltJson::lumiVars::processed, query::result, edm::LuminosityBlockBase::run(), runonSM::SOURCE, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::HistoJ< T >::toString(), and Json::StyledWriter::write().
void TriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 144 of file TriggerJSONMonitoring.cc.
References hltAccept_, hltDatasets_, hltErrors_, hltL1s_, hltPre_, hltReject_, hltWasRun_, i, and processed_.
Referenced by beginLuminosityBlock(), and resetRun().
void TriggerJSONMonitoring::resetRun | ( | bool | changed | ) |
Definition at line 89 of file TriggerJSONMonitoring.cc.
References HLTConfigProvider::datasetContents(), datasetContents_, HLTConfigProvider::datasetNames(), datasetNames_, hltAccept_, hltConfig_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, j, diffTwoXMLs::label, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), n, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, resetLumi(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), and HLTConfigProvider::triggerNames().
Referenced by beginRun().
void TriggerJSONMonitoring::writeDefJson | ( | std::string | path | ) |
Definition at line 351 of file TriggerJSONMonitoring.cc.
References getDQMSummary::outfile.
Referenced by beginRun().
void TriggerJSONMonitoring::writeDefLegJson | ( | std::string | path | ) |
std::string TriggerJSONMonitoring::baseRunDir_ |
Definition at line 103 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<std::vector<std::string> > TriggerJSONMonitoring::datasetContents_ |
Definition at line 109 of file TriggerJSONMonitoring.h.
Referenced by resetRun().
std::vector<std::string> TriggerJSONMonitoring::datasetNames_ |
Definition at line 108 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltAccept_ |
Definition at line 123 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTConfigProvider TriggerJSONMonitoring::hltConfig_ |
Definition at line 101 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltDatasets_ |
Definition at line 127 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltErrors_ |
Definition at line 125 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::vector<unsigned int> > TriggerJSONMonitoring::hltIndex_ |
Definition at line 106 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltL1s_ |
Definition at line 121 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::hltNames_ |
Definition at line 107 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltPre_ |
Definition at line 122 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltReject_ |
Definition at line 124 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltWasRun_ |
Definition at line 120 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::string TriggerJSONMonitoring::jsonLegendDefFile_ |
Definition at line 115 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::string TriggerJSONMonitoring::jsonRateDefFile_ |
Definition at line 114 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<int> TriggerJSONMonitoring::posL1s_ |
Definition at line 111 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<int> TriggerJSONMonitoring::posPre_ |
Definition at line 112 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
unsigned int TriggerJSONMonitoring::processed_ |
Definition at line 118 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
edm::InputTag TriggerJSONMonitoring::triggerResults_ |
Definition at line 97 of file TriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and TriggerJSONMonitoring().
edm::EDGetTokenT<edm::TriggerResults> TriggerJSONMonitoring::triggerResultsToken_ |
Definition at line 98 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and TriggerJSONMonitoring().