CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
TriggerJSONMonitoring Class Reference

#include <TriggerJSONMonitoring.h>

Inheritance diagram for TriggerJSONMonitoring:
edm::stream::EDAnalyzer< edm::RunCache< trigJson::runVars >, edm::LuminosityBlockSummaryCache< trigJson::lumiVars > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
void beginRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, trigJson::lumiVars *) const
 
void resetLumi ()
 
void resetRun (bool changed)
 
 TriggerJSONMonitoring (const edm::ParameterSet &)
 
void writeDefJson (std::string path)
 
void writeL1DefJson (std::string path)
 
 ~TriggerJSONMonitoring ()
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunCache< trigJson::runVars >, edm::LuminosityBlockSummaryCache< trigJson::lumiVars > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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 L1GtTriggerMenum_l1GtMenu
 
edm::EDGetTokenT
< GlobalAlgBlkBxCollection
m_l1t_results
 
const L1GtTriggerMaskm_l1tAlgoMask
 
const L1GtTriggerMaskm_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)
 

Detailed Description

Description: This class prints JSON files with trigger info.

Created: Wed, 09 Jul 2014

Author
Aram Avetisyan
Daniel Salerno

See header file for documentation

Author
Aram Avetisyan
Daniel Salerno

Definition at line 92 of file TriggerJSONMonitoring.h.

Constructor & Destructor Documentation

TriggerJSONMonitoring::TriggerJSONMonitoring ( const edm::ParameterSet ps)
explicit

Definition at line 25 of file TriggerJSONMonitoring.cc.

TriggerJSONMonitoring::~TriggerJSONMonitoring ( )

Definition at line 35 of file TriggerJSONMonitoring.cc.

Member Function Documentation

void TriggerJSONMonitoring::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
virtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 48 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &  iSetup 
)
virtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 415 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
virtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 294 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::endLuminosityBlockSummary ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  iEventSetup,
trigJson::lumiVars iSummary 
) const

Definition at line 459 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 40 of file TriggerJSONMonitoring.cc.

std::shared_ptr< trigJson::lumiVars > TriggerJSONMonitoring::globalBeginLuminosityBlockSummary ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  iSetup,
LuminosityBlockContext const *  iContext 
)
static

Definition at line 418 of file TriggerJSONMonitoring.cc.

static std::shared_ptr<trigJson::runVars> TriggerJSONMonitoring::globalBeginRun ( edm::Run const &  ,
edm::EventSetup const &  ,
void const *   
)
inlinestatic

Definition at line 105 of file TriggerJSONMonitoring.h.

void TriggerJSONMonitoring::globalEndLuminosityBlockSummary ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  iSetup,
LuminosityBlockContext const *  iContext,
trigJson::lumiVars iSummary 
)
static

Definition at line 540 of file TriggerJSONMonitoring.cc.

static void TriggerJSONMonitoring::globalEndRun ( edm::Run const &  iRun,
edm::EventSetup const &  ,
RunContext const *  iContext 
)
inlinestatic

Definition at line 119 of file TriggerJSONMonitoring.h.

void TriggerJSONMonitoring::resetLumi ( )

Definition at line 252 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::resetRun ( bool  changed)

Definition at line 154 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::writeDefJson ( std::string  path)

Definition at line 742 of file TriggerJSONMonitoring.cc.

void TriggerJSONMonitoring::writeL1DefJson ( std::string  path)

Definition at line 800 of file TriggerJSONMonitoring.cc.

Member Data Documentation

AlgorithmMap TriggerJSONMonitoring::algorithmMap

Definition at line 154 of file TriggerJSONMonitoring.h.

std::string TriggerJSONMonitoring::baseRunDir_

Definition at line 160 of file TriggerJSONMonitoring.h.

std::vector<std::vector<std::string> > TriggerJSONMonitoring::datasetContents_

Definition at line 166 of file TriggerJSONMonitoring.h.

std::vector<std::string> TriggerJSONMonitoring::datasetNames_

Definition at line 165 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltAccept_

Definition at line 188 of file TriggerJSONMonitoring.h.

HLTConfigProvider TriggerJSONMonitoring::hltConfig_

Definition at line 152 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltDatasets_

Definition at line 192 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltErrors_

Definition at line 190 of file TriggerJSONMonitoring.h.

std::vector<std::vector<unsigned int> > TriggerJSONMonitoring::hltIndex_

Definition at line 163 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltL1s_

Definition at line 186 of file TriggerJSONMonitoring.h.

std::vector<std::string> TriggerJSONMonitoring::hltNames_

Definition at line 164 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltPre_

Definition at line 187 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltReject_

Definition at line 189 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::hltWasRun_

Definition at line 185 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAccept_

Definition at line 194 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptCalibration_

Definition at line 198 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptPhysics_

Definition at line 196 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1AlgoAcceptRandom_

Definition at line 200 of file TriggerJSONMonitoring.h.

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.

std::vector<unsigned int> TriggerJSONMonitoring::L1Global_

Definition at line 202 of file TriggerJSONMonitoring.h.

std::vector<std::string> TriggerJSONMonitoring::L1GlobalType_

Definition at line 177 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1TechAccept_

Definition at line 195 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptCalibration_

Definition at line 199 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptPhysics_

Definition at line 197 of file TriggerJSONMonitoring.h.

std::vector<unsigned int> TriggerJSONMonitoring::L1TechAcceptRandom_

Definition at line 201 of file TriggerJSONMonitoring.h.

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.

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.

edm::EDGetTokenT<GlobalAlgBlkBxCollection> TriggerJSONMonitoring::m_l1t_results

Definition at line 149 of file TriggerJSONMonitoring.h.

const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tAlgoMask

Definition at line 157 of file TriggerJSONMonitoring.h.

const L1GtTriggerMask* TriggerJSONMonitoring::m_l1tTechMask

Definition at line 158 of file TriggerJSONMonitoring.h.

unsigned int TriggerJSONMonitoring::oldLumi

Definition at line 205 of file TriggerJSONMonitoring.h.

unsigned int TriggerJSONMonitoring::oldPrescaleIndex

Definition at line 206 of file TriggerJSONMonitoring.h.

std::vector<int> TriggerJSONMonitoring::posL1s_

Definition at line 168 of file TriggerJSONMonitoring.h.

std::vector<int> TriggerJSONMonitoring::posPre_

Definition at line 169 of file TriggerJSONMonitoring.h.

unsigned int TriggerJSONMonitoring::prescaleIndex_

Definition at line 183 of file TriggerJSONMonitoring.h.

unsigned int TriggerJSONMonitoring::processed_

Definition at line 182 of file TriggerJSONMonitoring.h.

std::string TriggerJSONMonitoring::stHltJsd_

Definition at line 171 of file TriggerJSONMonitoring.h.

std::string TriggerJSONMonitoring::stL1Jsd_

Definition at line 179 of file TriggerJSONMonitoring.h.

AlgorithmMap TriggerJSONMonitoring::technicalMap

Definition at line 155 of file TriggerJSONMonitoring.h.

edm::InputTag TriggerJSONMonitoring::triggerResults_

Definition at line 145 of file TriggerJSONMonitoring.h.

edm::EDGetTokenT<edm::TriggerResults> TriggerJSONMonitoring::triggerResultsToken_

Definition at line 146 of file TriggerJSONMonitoring.h.