#include <HLTriggerJSONMonitoring.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 std::shared_ptr < hltJson::runVars > | globalBeginRun (edm::Run const &, edm::EventSetup const &, void const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, hltJson::lumiVars *) |
static void | globalEndRun (edm::Run const &iRun, edm::EventSetup const &, RunContext const *iContext) |
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::vector< int > | posL1s_ |
std::vector< int > | posPre_ |
unsigned int | processed_ |
std::string | stHltJsd_ |
edm::InputTag | triggerResults_ |
edm::EDGetTokenT < edm::TriggerResults > | triggerResultsToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer< edm::RunCache< hltJson::runVars >, 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 |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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 HLT info.
Created: Fri, 11 Mar 2016
See header file for documentation
Definition at line 67 of file HLTriggerJSONMonitoring.h.
|
explicit |
Definition at line 24 of file HLTriggerJSONMonitoring.cc.
HLTriggerJSONMonitoring::~HLTriggerJSONMonitoring | ( | ) |
Definition at line 32 of file HLTriggerJSONMonitoring.cc.
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 44 of file HLTriggerJSONMonitoring.cc.
References edm::InputTag::encode(), edm::Event::getByToken(), hltAccept_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, cmsHarvester::index, LogDebug, gen::n, or, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, processed_, triggerResults_, and triggerResultsToken_.
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 230 of file HLTriggerJSONMonitoring.cc.
References resetLumi().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 168 of file HLTriggerJSONMonitoring.cc.
References Json::Value::append(), Json::arrayValue, baseRunDir_, datasetNames_, hltConfig_, hltNames_, HLTConfigProvider::init(), LogDebug, edm::InputTag::process(), resetRun(), mps_fire::result, edm::RunBase::run(), stHltJsd_, AlCaHLTBitMon_QueryRunRegistry::string, triggerResults_, interactiveExample::ui, Json::StyledWriter::write(), and writeHLTDefJson().
void HLTriggerJSONMonitoring::endLuminosityBlockSummary | ( | edm::LuminosityBlock const & | iLumi, |
edm::EventSetup const & | iEventSetup, | ||
hltJson::lumiVars * | iSummary | ||
) | const |
Definition at line 259 of file HLTriggerJSONMonitoring.cc.
References hltJson::lumiVars::baseRunDir, baseRunDir_, hltJson::lumiVars::hltAccept, hltAccept_, hltJson::lumiVars::hltDatasets, hltDatasets_, hltJson::lumiVars::hltErrors, hltErrors_, hltJson::lumiVars::hltL1s, hltL1s_, hltJson::lumiVars::hltPre, hltPre_, hltJson::lumiVars::hltReject, hltReject_, hltJson::lumiVars::hltWasRun, hltWasRun_, hltJson::lumiVars::processed, processed_, hltJson::lumiVars::stHltJsd, stHltJsd_, hltJson::lumiVars::streamHLTDestination, hltJson::lumiVars::streamHLTMergeType, interactiveExample::ui, jsoncollector::HistoJ< T >::update(), and jsoncollector::HistoJ< T >::value().
|
static |
Definition at line 37 of file HLTriggerJSONMonitoring.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_FULL_cff::InputTag.
|
static |
Definition at line 233 of file HLTriggerJSONMonitoring.cc.
|
inlinestatic |
Definition at line 80 of file HLTriggerJSONMonitoring.h.
References evf::MergeTypeJSNDATA.
|
static |
Definition at line 304 of file HLTriggerJSONMonitoring.cc.
References cms::Adler32(), Json::Value::append(), hltJson::lumiVars::baseRunDir, cscdqm::DATA, hltJson::lumiVars::hltAccept, hltJson::lumiVars::hltDatasets, hltJson::lumiVars::hltErrors, hltJson::lumiVars::hltL1s, hltJson::lumiVars::hltPre, hltJson::lumiVars::hltReject, hltJson::lumiVars::hltWasRun, edm::LuminosityBlockBase::luminosityBlock(), hltJson::lumiVars::processed, mps_fire::result, edm::LuminosityBlockBase::run(), evf::FastMonitoringService::shouldWriteFiles(), runonSM::SOURCE, hltJson::lumiVars::stHltJsd, hltJson::lumiVars::streamHLTDestination, hltJson::lumiVars::streamHLTMergeType, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::HistoJ< T >::toJsonValue(), jsoncollector::StringJ::update(), jsoncollector::IntJ::value(), jsoncollector::StringJ::value(), jsoncollector::HistoJ< T >::value(), and Json::StyledWriter::write().
|
inlinestatic |
Definition at line 91 of file HLTriggerJSONMonitoring.h.
void HLTriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 147 of file HLTriggerJSONMonitoring.cc.
References hltAccept_, hltDatasets_, hltErrors_, hltL1s_, hltPre_, hltReject_, hltWasRun_, i, and processed_.
Referenced by beginLuminosityBlock(), and resetRun().
void HLTriggerJSONMonitoring::resetRun | ( | bool | changed | ) |
Definition at line 91 of file HLTriggerJSONMonitoring.cc.
References ztail::d, HLTConfigProvider::datasetContents(), datasetContents_, HLTConfigProvider::datasetNames(), datasetNames_, hltAccept_, hltConfig_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, j, diffTwoXMLs::label, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), gen::n, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, resetLumi(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), and HLTConfigProvider::triggerNames().
Referenced by beginRun().
void HLTriggerJSONMonitoring::writeHLTDefJson | ( | std::string | path | ) |
Definition at line 439 of file HLTriggerJSONMonitoring.cc.
References timingPdfMaker::outfile.
Referenced by beginRun().
std::string HLTriggerJSONMonitoring::baseRunDir_ |
Definition at line 121 of file HLTriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<std::vector<std::string> > HLTriggerJSONMonitoring::datasetContents_ |
Definition at line 127 of file HLTriggerJSONMonitoring.h.
Referenced by resetRun().
std::vector<std::string> HLTriggerJSONMonitoring::datasetNames_ |
Definition at line 126 of file HLTriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltAccept_ |
Definition at line 140 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTConfigProvider HLTriggerJSONMonitoring::hltConfig_ |
Definition at line 119 of file HLTriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltDatasets_ |
Definition at line 144 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltErrors_ |
Definition at line 142 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::vector<unsigned int> > HLTriggerJSONMonitoring::hltIndex_ |
Definition at line 124 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltL1s_ |
Definition at line 138 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> HLTriggerJSONMonitoring::hltNames_ |
Definition at line 125 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltPre_ |
Definition at line 139 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltReject_ |
Definition at line 141 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> HLTriggerJSONMonitoring::hltWasRun_ |
Definition at line 137 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> HLTriggerJSONMonitoring::posL1s_ |
Definition at line 129 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<int> HLTriggerJSONMonitoring::posPre_ |
Definition at line 130 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
unsigned int HLTriggerJSONMonitoring::processed_ |
Definition at line 135 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
std::string HLTriggerJSONMonitoring::stHltJsd_ |
Definition at line 132 of file HLTriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
edm::InputTag HLTriggerJSONMonitoring::triggerResults_ |
Definition at line 115 of file HLTriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
edm::EDGetTokenT<edm::TriggerResults> HLTriggerJSONMonitoring::triggerResultsToken_ |
Definition at line 116 of file HLTriggerJSONMonitoring.h.
Referenced by analyze().