#include <TriggerJSONMonitoring.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static std::shared_ptr < trigJson::lumiVars > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
static std::shared_ptr < trigJson::runVars > | globalBeginRun (edm::Run const &, edm::EventSetup const &, void const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, trigJson::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< 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 < GlobalAlgBlkBxCollection > | 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< trigJson::runVars >, edm::LuminosityBlockSummaryCache< trigJson::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 92 of file TriggerJSONMonitoring.h.
|
explicit |
Definition at line 25 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_, hltReject_, hltWasRun_, i, cmsHarvester::index, L1Global_, JetPDSkim_cfg::l1tResults, LogDebug, edm::EventAuxiliary::luminosityBlock(), m_l1t_results, gen::n, oldLumi, oldPrescaleIndex, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, prescaleIndex_, 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 294 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, oldLumi, oldPrescaleIndex, edm::InputTag::process(), edm::ESHandle< class >::product(), resetRun(), mps_fire::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, | ||
trigJson::lumiVars * | iSummary | ||
) | const |
Definition at line 459 of file TriggerJSONMonitoring.cc.
References trigJson::lumiVars::baseRunDir, baseRunDir_, trigJson::lumiVars::hltAccept, hltAccept_, trigJson::lumiVars::hltDatasets, hltDatasets_, trigJson::lumiVars::hltErrors, hltErrors_, trigJson::lumiVars::hltL1s, hltL1s_, trigJson::lumiVars::hltPre, hltPre_, trigJson::lumiVars::hltReject, hltReject_, trigJson::lumiVars::hltWasRun, hltWasRun_, trigJson::lumiVars::L1AlgoAccept, L1AlgoAccept_, trigJson::lumiVars::L1AlgoAcceptCalibration, L1AlgoAcceptCalibration_, trigJson::lumiVars::L1AlgoAcceptPhysics, L1AlgoAcceptPhysics_, trigJson::lumiVars::L1AlgoAcceptRandom, L1AlgoAcceptRandom_, trigJson::lumiVars::L1Global, L1Global_, L1GlobalType_, trigJson::lumiVars::L1TechAccept, L1TechAccept_, trigJson::lumiVars::L1TechAcceptCalibration, L1TechAcceptCalibration_, trigJson::lumiVars::L1TechAcceptPhysics, L1TechAcceptPhysics_, trigJson::lumiVars::L1TechAcceptRandom, L1TechAcceptRandom_, trigJson::lumiVars::prescaleIndex, prescaleIndex_, trigJson::lumiVars::processed, processed_, trigJson::lumiVars::stHltJsd, stHltJsd_, trigJson::lumiVars::stL1Jsd, stL1Jsd_, trigJson::lumiVars::streamHLTDestination, trigJson::lumiVars::streamHLTMergeType, trigJson::lumiVars::streamL1Destination, trigJson::lumiVars::streamL1MergeType, 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_25ns10e33_v2_cff::InputTag.
|
static |
Definition at line 418 of file TriggerJSONMonitoring.cc.
|
inlinestatic |
Definition at line 105 of file TriggerJSONMonitoring.h.
References evf::MergeTypeJSNDATA, and AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 540 of file TriggerJSONMonitoring.cc.
References cms::Adler32(), Json::Value::append(), trigJson::lumiVars::baseRunDir, cscdqm::DATA, trigJson::lumiVars::hltAccept, trigJson::lumiVars::hltDatasets, trigJson::lumiVars::hltErrors, trigJson::lumiVars::hltL1s, trigJson::lumiVars::hltPre, trigJson::lumiVars::hltReject, trigJson::lumiVars::hltWasRun, trigJson::lumiVars::L1AlgoAccept, trigJson::lumiVars::L1AlgoAcceptCalibration, trigJson::lumiVars::L1AlgoAcceptPhysics, trigJson::lumiVars::L1AlgoAcceptRandom, trigJson::lumiVars::L1Global, trigJson::lumiVars::L1TechAccept, trigJson::lumiVars::L1TechAcceptCalibration, trigJson::lumiVars::L1TechAcceptPhysics, trigJson::lumiVars::L1TechAcceptRandom, edm::LuminosityBlockBase::luminosityBlock(), trigJson::lumiVars::prescaleIndex, trigJson::lumiVars::processed, mps_fire::result, edm::LuminosityBlockBase::run(), evf::FastMonitoringService::shouldWriteFiles(), runonSM::SOURCE, trigJson::lumiVars::stHltJsd, trigJson::lumiVars::stL1Jsd, trigJson::lumiVars::streamHLTDestination, trigJson::lumiVars::streamHLTMergeType, trigJson::lumiVars::streamL1Destination, trigJson::lumiVars::streamL1MergeType, 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 119 of file TriggerJSONMonitoring.h.
void TriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 252 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 154 of file TriggerJSONMonitoring.cc.
References algorithmMap, ztail::d, 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 742 of file TriggerJSONMonitoring.cc.
References timingPdfMaker::outfile.
Referenced by beginRun().
void TriggerJSONMonitoring::writeL1DefJson | ( | std::string | path | ) |
Definition at line 800 of file TriggerJSONMonitoring.cc.
References timingPdfMaker::outfile.
Referenced by beginRun().
AlgorithmMap TriggerJSONMonitoring::algorithmMap |
Definition at line 154 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::string TriggerJSONMonitoring::baseRunDir_ |
Definition at line 160 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::vector<std::vector<std::string> > TriggerJSONMonitoring::datasetContents_ |
Definition at line 166 of file TriggerJSONMonitoring.h.
Referenced by resetRun().
std::vector<std::string> TriggerJSONMonitoring::datasetNames_ |
Definition at line 165 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltAccept_ |
Definition at line 188 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
HLTConfigProvider TriggerJSONMonitoring::hltConfig_ |
Definition at line 152 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltDatasets_ |
Definition at line 192 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltErrors_ |
Definition at line 190 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::vector<unsigned int> > TriggerJSONMonitoring::hltIndex_ |
Definition at line 163 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltL1s_ |
Definition at line 186 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::hltNames_ |
Definition at line 164 of file TriggerJSONMonitoring.h.
Referenced by analyze(), beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltPre_ |
Definition at line 187 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltReject_ |
Definition at line 189 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::hltWasRun_ |
Definition at line 185 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAccept_ |
Definition at line 194 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptCalibration_ |
Definition at line 198 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptPhysics_ |
Definition at line 196 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptRandom_ |
Definition at line 200 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1AlgoBitNumber_ |
Definition at line 174 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1AlgoNames_ |
Definition at line 173 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1Global_ |
Definition at line 202 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<std::string> TriggerJSONMonitoring::L1GlobalType_ |
Definition at line 177 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAccept_ |
Definition at line 195 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptCalibration_ |
Definition at line 199 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptPhysics_ |
Definition at line 197 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptRandom_ |
Definition at line 201 of file TriggerJSONMonitoring.h.
Referenced by endLuminosityBlockSummary(), resetLumi(), and resetRun().
std::vector<int> TriggerJSONMonitoring::L1TechBitNumber_ |
Definition at line 176 of file TriggerJSONMonitoring.h.
std::vector<std::string> TriggerJSONMonitoring::L1TechNames_ |
Definition at line 175 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::level1Results_ |
Definition at line 148 of file TriggerJSONMonitoring.h.
const L1GtTriggerMenu* TriggerJSONMonitoring::m_l1GtMenu |
Definition at line 153 of file TriggerJSONMonitoring.h.
Referenced by beginRun().
edm::EDGetTokenT<GlobalAlgBlkBxCollection> TriggerJSONMonitoring::m_l1t_results |
Definition at line 149 of file TriggerJSONMonitoring.h.
Referenced by analyze().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tAlgoMask |
Definition at line 157 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tTechMask |
Definition at line 158 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
unsigned int TriggerJSONMonitoring::oldLumi |
Definition at line 205 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
unsigned int TriggerJSONMonitoring::oldPrescaleIndex |
Definition at line 206 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
std::vector<int> TriggerJSONMonitoring::posL1s_ |
Definition at line 168 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
std::vector<int> TriggerJSONMonitoring::posPre_ |
Definition at line 169 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and resetRun().
unsigned int TriggerJSONMonitoring::prescaleIndex_ |
Definition at line 183 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
unsigned int TriggerJSONMonitoring::processed_ |
Definition at line 182 of file TriggerJSONMonitoring.h.
Referenced by analyze(), endLuminosityBlockSummary(), and resetLumi().
std::string TriggerJSONMonitoring::stHltJsd_ |
Definition at line 171 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
std::string TriggerJSONMonitoring::stL1Jsd_ |
Definition at line 179 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and endLuminosityBlockSummary().
AlgorithmMap TriggerJSONMonitoring::technicalMap |
Definition at line 155 of file TriggerJSONMonitoring.h.
Referenced by beginRun(), and resetRun().
edm::InputTag TriggerJSONMonitoring::triggerResults_ |
Definition at line 145 of file TriggerJSONMonitoring.h.
Referenced by analyze(), and beginRun().
edm::EDGetTokenT<edm::TriggerResults> TriggerJSONMonitoring::triggerResultsToken_ |
Definition at line 146 of file TriggerJSONMonitoring.h.
Referenced by analyze().