#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.
References ~TriggerJSONMonitoring().
|
default |
Referenced by TriggerJSONMonitoring().
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 46 of file TriggerJSONMonitoring.cc.
References edm::HLTGlobalStatus::accept(), BXVector< T >::begin(), edm::InputTag::encode(), BXVector< T >::end(), edm::HLTGlobalStatus::error(), edm::Event::eventAuxiliary(), edm::EventBase::experimentType(), edm::Event::getByToken(), hltAccept_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, mps_fire::i, edm::HLTGlobalStatus::index(), diffTreeTool::index, createfilelist::int, edm::HandleBase::isValid(), L1Global_, SelectingProcedure_cff::l1tResults, LogDebug, edm::EventAuxiliary::luminosityBlock(), m_l1t_results, gen::n, oldLumi, oldPrescaleIndex, AlCaHLTBitMon_ParallelJobs::p, posL1s_, posPre_, prescaleIndex_, processed_, triggerResults_, triggerResultsToken_, and edm::HLTGlobalStatus::wasrun().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 413 of file TriggerJSONMonitoring.cc.
References resetLumi().
|
virtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 292 of file TriggerJSONMonitoring.cc.
References algorithmMap, Json::Value::append(), Json::arrayValue, baseRunDir_, dataset::datasetName, 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< T >::product(), resetRun(), mps_fire::result, edm::RunBase::run(), stHltJsd_, stL1Jsd_, AlCaHLTBitMon_QueryRunRegistry::string, technicalMap, triggerResults_, interactiveExample::ui, Json::StyledWriter::write(), writeDefJson(), writeL1DefJson(), and cscNeutronWriter_cfi::writer.
void TriggerJSONMonitoring::endLuminosityBlockSummary | ( | edm::LuminosityBlock const & | , |
edm::EventSetup const & | , | ||
trigJson::lumiVars * | |||
) | const |
Definition at line 457 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 38 of file TriggerJSONMonitoring.cc.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().
|
static |
Definition at line 416 of file TriggerJSONMonitoring.cc.
|
inlinestatic |
Definition at line 105 of file TriggerJSONMonitoring.h.
References evf::MergeTypeJSNDATA, and AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 538 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(), 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(), Json::StyledWriter::write(), and cscNeutronWriter_cfi::writer.
|
inlinestatic |
Definition at line 119 of file TriggerJSONMonitoring.h.
References callgraph::path, and AlCaHLTBitMon_QueryRunRegistry::string.
void TriggerJSONMonitoring::resetLumi | ( | ) |
Definition at line 250 of file TriggerJSONMonitoring.cc.
References hltAccept_, hltDatasets_, hltErrors_, hltL1s_, hltPre_, hltReject_, hltWasRun_, mps_fire::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 152 of file TriggerJSONMonitoring.cc.
References algorithmMap, edmIntegrityCheck::d, HLTConfigProvider::datasetContents(), datasetContents_, HLTConfigProvider::datasetNames(), datasetNames_, L1GtTriggerMask::gtTriggerMask(), hltAccept_, hltConfig_, hltDatasets_, hltErrors_, hltIndex_, hltL1s_, hltNames_, hltPre_, hltReject_, hltWasRun_, mps_fire::i, L1AlgoAccept_, L1AlgoAcceptCalibration_, L1AlgoAcceptPhysics_, L1AlgoAcceptRandom_, L1AlgoNames_, L1Global_, L1GlobalType_, L1TechAccept_, L1TechAcceptCalibration_, L1TechAcceptPhysics_, L1TechAcceptRandom_, L1TechNames_, diffTwoXMLs::label, 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 740 of file TriggerJSONMonitoring.cc.
References HIPAlignmentAlgorithm_cfi::outfile.
Referenced by beginRun().
void TriggerJSONMonitoring::writeL1DefJson | ( | std::string | path | ) |
Definition at line 798 of file TriggerJSONMonitoring.cc.
References HIPAlignmentAlgorithm_cfi::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().