#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 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 | |
AlgorithmMap | algorithmMap |
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< unsigned int > | L1AlgoAccept_ |
std::vector< int > | L1AlgoBitNumber_ |
std::vector< std::string > | L1AlgoNames_ |
std::vector< unsigned int > | L1Global_ |
std::vector< std::string > | L1GlobalType_ |
std::vector< unsigned int > | L1TechAccept_ |
std::vector< int > | L1TechBitNumber_ |
std::vector< std::string > | L1TechNames_ |
edm::InputTag | level1Results_ |
const L1GtTriggerMenu * | m_l1GtMenu |
edm::EDGetTokenT < L1GlobalTriggerReadoutRecord > | m_l1t_results |
const L1GtTriggerMask * | m_l1tAlgoMask |
const L1GtTriggerMask * | m_l1tTechMask |
std::vector< int > | posL1s_ |
std::vector< int > | posPre_ |
unsigned int | processed_ |
std::string | stHltJsd_ |
std::string | stL1Jsd_ |
AlgorithmMap | technicalMap |
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 |
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 79 of file TriggerJSONMonitoring.h.
|
explicit |
Definition at line 22 of file TriggerJSONMonitoring.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), HLT_25ns14e33_v1_cff::InputTag, level1Results_, m_l1t_results, triggerResults_, and triggerResultsToken_.
TriggerJSONMonitoring::~TriggerJSONMonitoring | ( | ) |
Definition at line 36 of file TriggerJSONMonitoring.cc.
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 49 of file TriggerJSONMonitoring.cc.
References edm::InputTag::encode(), edm::EventBase::experimentType(), edm::Event::getByToken(), hltAccept_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, cmsHarvester::index, L1AlgoAccept_, L1Global_, L1TechAccept_, JetPDSkim_cfg::l1tResults, LogDebug, m_l1t_results, gen::n, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, processed_, triggerResults_, and triggerResultsToken_.
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 369 of file TriggerJSONMonitoring.cc.
References resetLumi().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 252 of file TriggerJSONMonitoring.cc.
References algorithmMap, Json::Value::append(), Json::arrayValue, baseRunDir_, datasetNames_, edm::EventSetup::get(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtTriggerMenu::gtTechnicalTriggerMap(), hltConfig_, hltNames_, HLTConfigProvider::init(), L1AlgoNames_, L1GlobalType_, L1TechNames_, LogDebug, m_l1GtMenu, m_l1tAlgoMask, m_l1tTechMask, edm::InputTag::process(), edm::ESHandle< class >::product(), resetRun(), query::result, edm::RunBase::run(), stHltJsd_, stL1Jsd_, AlCaHLTBitMon_QueryRunRegistry::string, technicalMap, triggerResults_, interactiveExample::ui, Json::StyledWriter::write(), writeDefJson(), and writeL1DefJson().
void TriggerJSONMonitoring::endLuminosityBlockSummary | ( | edm::LuminosityBlock const & | iLumi, |
edm::EventSetup const & | iEventSetup, | ||
hltJson::lumiVars * | iSummary | ||
) | const |
Definition at line 397 of file TriggerJSONMonitoring.cc.
References asciidump::at, 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::L1Accept, L1AlgoAccept_, hltJson::lumiVars::L1Global, L1Global_, L1GlobalType_, hltJson::lumiVars::L1TechAccept, L1TechAccept_, hltJson::lumiVars::processed, processed_, hltJson::lumiVars::stHltJsd, stHltJsd_, hltJson::lumiVars::stL1Jsd, stL1Jsd_, hltJson::lumiVars::streamHLTDestination, hltJson::lumiVars::streamL1Destination, interactiveExample::ui, jsoncollector::HistoJ< T >::update(), and jsoncollector::HistoJ< T >::value().
|
static |
Definition at line 41 of file TriggerJSONMonitoring.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_25ns14e33_v1_cff::InputTag.
|
static |
Definition at line 372 of file TriggerJSONMonitoring.cc.
|
inlinestatic |
Definition at line 92 of file TriggerJSONMonitoring.h.
|
static |
Definition at line 461 of file TriggerJSONMonitoring.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, hltJson::lumiVars::L1Accept, hltJson::lumiVars::L1Global, hltJson::lumiVars::L1TechAccept, edm::LuminosityBlockBase::luminosityBlock(), hltJson::lumiVars::processed, query::result, edm::LuminosityBlockBase::run(), runonSM::SOURCE, hltJson::lumiVars::stHltJsd, hltJson::lumiVars::stL1Jsd, hltJson::lumiVars::streamHLTDestination, hltJson::lumiVars::streamL1Destination, 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 102 of file TriggerJSONMonitoring.h.
void TriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 219 of file TriggerJSONMonitoring.cc.
References hltAccept_, hltDatasets_, hltErrors_, hltL1s_, hltPre_, hltReject_, hltWasRun_, i, L1AlgoAccept_, L1Global_, L1GlobalType_, L1TechAccept_, and processed_.
Referenced by beginLuminosityBlock(), and resetRun().
void TriggerJSONMonitoring::resetRun | ( | bool | changed | ) |
Definition at line 130 of file TriggerJSONMonitoring.cc.
References algorithmMap, HLTConfigProvider::datasetContents(), datasetContents_, HLTConfigProvider::datasetNames(), datasetNames_, L1GtTriggerMask::gtTriggerMask(), hltAccept_, hltConfig_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, i, j, L1AlgoAccept_, L1AlgoNames_, L1Global_, L1GlobalType_, L1TechAccept_, L1TechNames_, diffTwoXMLs::label, lt, m_l1tAlgoMask, m_l1tTechMask, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), gen::n, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, resetLumi(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, technicalMap, HLTConfigProvider::triggerIndex(), and HLTConfigProvider::triggerNames().
Referenced by beginRun().
void TriggerJSONMonitoring::writeDefJson | ( | std::string | path | ) |
Definition at line 630 of file TriggerJSONMonitoring.cc.
References getDQMSummary::outfile.
Referenced by beginRun().
void TriggerJSONMonitoring::writeL1DefJson | ( | std::string | path | ) |
Definition at line 683 of file TriggerJSONMonitoring.cc.
References getDQMSummary::outfile.
Referenced by beginRun().
AlgorithmMap TriggerJSONMonitoring::algorithmMap |
Definition at line 137 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::string TriggerJSONMonitoring::baseRunDir_ |
Definition at line 143 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<std::vector<std::string> > TriggerJSONMonitoring::datasetContents_ |
Definition at line 149 of file TriggerJSONMonitoring.h.
Referenced by resetRun().
std::vector<std::string> TriggerJSONMonitoring::datasetNames_ |
Definition at line 148 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltAccept_ |
Definition at line 170 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTConfigProvider TriggerJSONMonitoring::hltConfig_ |
Definition at line 135 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltDatasets_ |
Definition at line 174 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltErrors_ |
Definition at line 172 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::vector<unsigned int> > TriggerJSONMonitoring::hltIndex_ |
Definition at line 146 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltL1s_ |
Definition at line 168 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::hltNames_ |
Definition at line 147 of file TriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltPre_ |
Definition at line 169 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltReject_ |
Definition at line 171 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltWasRun_ |
Definition at line 167 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAccept_ |
Definition at line 177 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1AlgoBitNumber_ |
Definition at line 157 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1AlgoNames_ |
Definition at line 156 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1Global_ |
Definition at line 176 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::L1GlobalType_ |
Definition at line 160 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAccept_ |
Definition at line 178 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1TechBitNumber_ |
Definition at line 159 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1TechNames_ |
Definition at line 158 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::level1Results_ |
Definition at line 131 of file TriggerJSONMonitoring.h.
Referenced by TriggerJSONMonitoring().
const L1GtTriggerMenu* TriggerJSONMonitoring::m_l1GtMenu |
Definition at line 136 of file TriggerJSONMonitoring.h.
Referenced by beginRun().
edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> TriggerJSONMonitoring::m_l1t_results |
Definition at line 132 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and TriggerJSONMonitoring().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tAlgoMask |
Definition at line 140 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tTechMask |
Definition at line 141 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<int> TriggerJSONMonitoring::posL1s_ |
Definition at line 151 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<int> TriggerJSONMonitoring::posPre_ |
Definition at line 152 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
unsigned int TriggerJSONMonitoring::processed_ |
Definition at line 165 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
std::string TriggerJSONMonitoring::stHltJsd_ |
Definition at line 154 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::string TriggerJSONMonitoring::stL1Jsd_ |
Definition at line 162 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
AlgorithmMap TriggerJSONMonitoring::technicalMap |
Definition at line 138 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::triggerResults_ |
Definition at line 128 of file TriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and TriggerJSONMonitoring().
edm::EDGetTokenT<edm::TriggerResults> TriggerJSONMonitoring::triggerResultsToken_ |
Definition at line 129 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and TriggerJSONMonitoring().