#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_ |
HLTPrescaleProvider | hltPrescaleProvider_ |
std::vector< unsigned int > | hltReject_ |
std::vector< unsigned int > | hltWasRun_ |
std::vector< unsigned int > | L1AlgoAccept_ |
std::vector< unsigned int > | L1AlgoAcceptCalibration_ |
std::vector< unsigned int > | L1AlgoAcceptPhysics_ |
std::vector< unsigned int > | L1AlgoAcceptRandom_ |
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< unsigned int > | L1TechAcceptCalibration_ |
std::vector< unsigned int > | L1TechAcceptPhysics_ |
std::vector< unsigned int > | L1TechAcceptRandom_ |
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 |
unsigned int | oldLumi |
unsigned int | oldPrescaleIndex |
std::vector< int > | posL1s_ |
std::vector< int > | posPre_ |
unsigned int | prescaleIndex_ |
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 |
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 trigger info.
Created: Wed, 09 Jul 2014
See header file for documentation
Definition at line 88 of file TriggerJSONMonitoring.h.
|
explicit |
Definition at line 24 of file TriggerJSONMonitoring.cc.
TriggerJSONMonitoring::~TriggerJSONMonitoring | ( | ) |
Definition at line 35 of file TriggerJSONMonitoring.cc.
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 48 of file TriggerJSONMonitoring.cc.
References edm::InputTag::encode(), edm::Event::eventAuxiliary(), edm::EventBase::experimentType(), edm::Event::getByToken(), hltAccept_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltPrescaleProvider_, hltReject_, hltWasRun_, i, cmsHarvester::index, L1AlgoAccept_, L1AlgoAcceptCalibration_, L1AlgoAcceptPhysics_, L1AlgoAcceptRandom_, L1Global_, L1TechAccept_, L1TechAcceptCalibration_, L1TechAcceptPhysics_, L1TechAcceptRandom_, JetPDSkim_cfg::l1tResults, LogDebug, edm::EventAuxiliary::luminosityBlock(), m_l1t_results, gen::n, oldLumi, oldPrescaleIndex, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, prescaleIndex_, HLTPrescaleProvider::prescaleSet(), processed_, triggerResults_, and triggerResultsToken_.
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 415 of file TriggerJSONMonitoring.cc.
References resetLumi().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 291 of file TriggerJSONMonitoring.cc.
References algorithmMap, Json::Value::append(), Json::arrayValue, baseRunDir_, datasetNames_, edm::EventSetup::get(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtTriggerMenu::gtTechnicalTriggerMap(), hltConfig_, HLTPrescaleProvider::hltConfigProvider(), hltNames_, hltPrescaleProvider_, HLTPrescaleProvider::init(), L1AlgoNames_, L1GlobalType_, L1TechNames_, LogDebug, m_l1GtMenu, m_l1tAlgoMask, m_l1tTechMask, oldLumi, oldPrescaleIndex, 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 457 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::L1AlgoAccept, L1AlgoAccept_, hltJson::lumiVars::L1AlgoAcceptCalibration, L1AlgoAcceptCalibration_, hltJson::lumiVars::L1AlgoAcceptPhysics, L1AlgoAcceptPhysics_, hltJson::lumiVars::L1AlgoAcceptRandom, L1AlgoAcceptRandom_, hltJson::lumiVars::L1Global, L1Global_, L1GlobalType_, hltJson::lumiVars::L1TechAccept, L1TechAccept_, hltJson::lumiVars::L1TechAcceptCalibration, L1TechAcceptCalibration_, hltJson::lumiVars::L1TechAcceptPhysics, L1TechAcceptPhysics_, hltJson::lumiVars::L1TechAcceptRandom, L1TechAcceptRandom_, hltJson::lumiVars::prescaleIndex, prescaleIndex_, 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 40 of file TriggerJSONMonitoring.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_25ns14e33_v1_cff::InputTag.
|
static |
Definition at line 418 of file TriggerJSONMonitoring.cc.
|
inlinestatic |
Definition at line 101 of file TriggerJSONMonitoring.h.
|
static |
Definition at line 536 of file TriggerJSONMonitoring.cc.
References cms::Adler32(), Json::Value::append(), hltJson::lumiVars::baseRunDir, cscdqm::DATA, evf::FastMonitoringService::getEventsProcessedForLumi(), hltJson::lumiVars::hltAccept, hltJson::lumiVars::hltDatasets, hltJson::lumiVars::hltErrors, hltJson::lumiVars::hltL1s, hltJson::lumiVars::hltPre, hltJson::lumiVars::hltReject, hltJson::lumiVars::hltWasRun, hltJson::lumiVars::L1AlgoAccept, hltJson::lumiVars::L1AlgoAcceptCalibration, hltJson::lumiVars::L1AlgoAcceptPhysics, hltJson::lumiVars::L1AlgoAcceptRandom, hltJson::lumiVars::L1Global, hltJson::lumiVars::L1TechAccept, hltJson::lumiVars::L1TechAcceptCalibration, hltJson::lumiVars::L1TechAcceptPhysics, hltJson::lumiVars::L1TechAcceptRandom, edm::LuminosityBlockBase::luminosityBlock(), hltJson::lumiVars::prescaleIndex, 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 111 of file TriggerJSONMonitoring.h.
void TriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 249 of file TriggerJSONMonitoring.cc.
References hltAccept_, hltDatasets_, hltErrors_, hltL1s_, hltPre_, hltReject_, hltWasRun_, i, L1AlgoAccept_, L1AlgoAcceptCalibration_, L1AlgoAcceptPhysics_, L1AlgoAcceptRandom_, L1Global_, L1GlobalType_, L1TechAccept_, L1TechAcceptCalibration_, L1TechAcceptPhysics_, L1TechAcceptRandom_, prescaleIndex_, and processed_.
Referenced by beginLuminosityBlock(), and resetRun().
void TriggerJSONMonitoring::resetRun | ( | bool | changed | ) |
Definition at line 151 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_, L1AlgoAcceptCalibration_, L1AlgoAcceptPhysics_, L1AlgoAcceptRandom_, L1AlgoNames_, L1Global_, L1GlobalType_, L1TechAccept_, L1TechAcceptCalibration_, L1TechAcceptPhysics_, L1TechAcceptRandom_, 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 718 of file TriggerJSONMonitoring.cc.
References EdgesToViz::outfile.
Referenced by beginRun().
void TriggerJSONMonitoring::writeL1DefJson | ( | std::string | path | ) |
Definition at line 776 of file TriggerJSONMonitoring.cc.
References EdgesToViz::outfile.
Referenced by beginRun().
AlgorithmMap TriggerJSONMonitoring::algorithmMap |
Definition at line 147 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::string TriggerJSONMonitoring::baseRunDir_ |
Definition at line 153 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<std::vector<std::string> > TriggerJSONMonitoring::datasetContents_ |
Definition at line 159 of file TriggerJSONMonitoring.h.
Referenced by resetRun().
std::vector<std::string> TriggerJSONMonitoring::datasetNames_ |
Definition at line 158 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltAccept_ |
Definition at line 181 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTConfigProvider TriggerJSONMonitoring::hltConfig_ |
Definition at line 145 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltDatasets_ |
Definition at line 185 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltErrors_ |
Definition at line 183 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::vector<unsigned int> > TriggerJSONMonitoring::hltIndex_ |
Definition at line 156 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltL1s_ |
Definition at line 179 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::hltNames_ |
Definition at line 157 of file TriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltPre_ |
Definition at line 180 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTPrescaleProvider TriggerJSONMonitoring::hltPrescaleProvider_ |
Definition at line 144 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltReject_ |
Definition at line 182 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltWasRun_ |
Definition at line 178 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAccept_ |
Definition at line 187 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptCalibration_ |
Definition at line 191 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptPhysics_ |
Definition at line 189 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptRandom_ |
Definition at line 193 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1AlgoBitNumber_ |
Definition at line 167 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1AlgoNames_ |
Definition at line 166 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1Global_ |
Definition at line 195 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::L1GlobalType_ |
Definition at line 170 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAccept_ |
Definition at line 188 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptCalibration_ |
Definition at line 192 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptPhysics_ |
Definition at line 190 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptRandom_ |
Definition at line 194 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1TechBitNumber_ |
Definition at line 169 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1TechNames_ |
Definition at line 168 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::level1Results_ |
Definition at line 140 of file TriggerJSONMonitoring.h.
const L1GtTriggerMenu* TriggerJSONMonitoring::m_l1GtMenu |
Definition at line 146 of file TriggerJSONMonitoring.h.
Referenced by beginRun().
edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> TriggerJSONMonitoring::m_l1t_results |
Definition at line 141 of file TriggerJSONMonitoring.h.
Referenced by analyze().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tAlgoMask |
Definition at line 150 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tTechMask |
Definition at line 151 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
unsigned int TriggerJSONMonitoring::oldLumi |
Definition at line 198 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
unsigned int TriggerJSONMonitoring::oldPrescaleIndex |
Definition at line 199 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
std::vector<int> TriggerJSONMonitoring::posL1s_ |
Definition at line 161 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<int> TriggerJSONMonitoring::posPre_ |
Definition at line 162 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
unsigned int TriggerJSONMonitoring::prescaleIndex_ |
Definition at line 176 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
unsigned int TriggerJSONMonitoring::processed_ |
Definition at line 175 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
std::string TriggerJSONMonitoring::stHltJsd_ |
Definition at line 164 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::string TriggerJSONMonitoring::stL1Jsd_ |
Definition at line 172 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
AlgorithmMap TriggerJSONMonitoring::technicalMap |
Definition at line 148 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::triggerResults_ |
Definition at line 137 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
edm::EDGetTokenT<edm::TriggerResults> TriggerJSONMonitoring::triggerResultsToken_ |
Definition at line 138 of file TriggerJSONMonitoring.h.
Referenced by analyze().