MonitorObject cache - list objects and routines to manage cache. More...
#include <CSCDQM_Cache.h>
Public Member Functions | |
Cache () | |
const bool | get (const HistoDef &histo, MonitorObject *&mo) |
Get Monitoring Object on Histogram Definition. More... | |
const bool | getCSC (const HistoId &id, const HwId &crateId, const HwId &dmbId, const HwId &addId, MonitorObject *&mo) |
Get CSC MO on Histogram Id and CSC Crate and DMB Ids. More... | |
const bool | getDDU (const HistoId &id, const HwId &dduId, MonitorObject *&mo) |
Get DDU MO on Histogram Id and DDU Id. More... | |
const bool | getEMU (const HistoId &id, MonitorObject *&mo) |
Get EMU MO on Histogram Id. More... | |
const bool | getFED (const HistoId &id, const HwId &fedId, MonitorObject *&mo) |
Get FED MO on Histogram Id and FED Id. More... | |
const bool | getPar (const HistoId &id, MonitorObject *&mo) |
Get Parameter MO on Histogram Id. More... | |
const bool | isBookedCSC (const HwId &crateId, const HwId &dmbId) const |
Check if CSC was booked on given identifiers. More... | |
const bool | isBookedDDU (const HwId &dduId) const |
Check if DDU was booked on given identifier. More... | |
const bool | isBookedFED (const HwId &fedId) const |
Check if FED was booked on given identifier. More... | |
const bool | nextBookedCSC (unsigned int &n, unsigned int &crateId, unsigned int &dmbId) const |
Iterator to get booked CSC identifiers on enumerator. More... | |
const bool | nextBookedDDU (unsigned int &n, unsigned int &dduId) const |
Iterator to get booked DDU identifier on enumerator. More... | |
const bool | nextBookedFED (unsigned int &n, unsigned int &fedId) const |
Iterator to get booked FED identifier on enumerator. More... | |
void | put (const HistoDef &histo, MonitorObject *mo) |
Put Monitoring Object into cache. More... | |
~Cache () | |
Private Attributes | |
CSCMapType | cscData |
CSCMapType::const_iterator | cscPointer |
MonitorObject * | data [h::namesSize] |
DDUMapType | dduData |
DDUMapType::const_iterator | dduPointer |
HwId | dduPointerValue |
FEDMapType | fedData |
FEDMapType::const_iterator | fedPointer |
HwId | fedPointerValue |
LookupMapType | lookupData |
MonitorObject cache - list objects and routines to manage cache.
Definition at line 99 of file CSCDQM_Cache.h.
|
inline |
Cache Constructor
Initialize EMU and PAR static array with zero's
Initialize FED cached pointers
Initialize DDU and CSC cached pointers
Definition at line 128 of file CSCDQM_Cache.h.
References cscData, cscPointer, data, dduData, dduPointer, dduPointerValue, fedData, fedPointer, fedPointerValue, and mps_fire::i.
|
inline |
Destructor
Clear FED MO static arrays
Clear DDU MO static arrays
Definition at line 144 of file CSCDQM_Cache.h.
const bool cscdqm::Cache::get | ( | const HistoDef & | histo, |
MonitorObject *& | mo | ||
) |
Get Monitoring Object on Histogram Definition.
Native Cache methods
histo | Histogram definition |
mo | Monitoring Object to return |
Definition at line 29 of file CSCDQM_Cache.cc.
References cscdqm::CSCHistoDefT, cscdqm::DDUHistoDefT, cscdqm::EMUHistoDefT, cscdqm::FEDHistoDefT, getCSC(), getDDU(), getEMU(), getFED(), getPar(), timingPdfMaker::histo, and cscdqm::ParHistoDefT.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), cscdqm::Dispatcher::getHisto(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
const bool cscdqm::Cache::getCSC | ( | const HistoId & | id, |
const HwId & | crateId, | ||
const HwId & | dmbId, | ||
const HwId & | addId, | ||
MonitorObject *& | mo | ||
) |
Get CSC MO on Histogram Id and CSC Crate and DMB Ids.
id | Histogram identifier |
crateId | CSC Crate identifier |
dmbId | CSC DMB identifier |
mo | Monitoring Object to return |
If not cached (last CSC) - find CSC
Get Monitor object from multi_index List
Definition at line 119 of file CSCDQM_Cache.cc.
References cscData, and cscPointer.
Referenced by cscdqm::Dispatcher::commonConstruct(), and get().
const bool cscdqm::Cache::getDDU | ( | const HistoId & | id, |
const HwId & | dduId, | ||
MonitorObject *& | mo | ||
) |
Get DDU MO on Histogram Id and DDU Id.
id | Histogram identifier |
dduId | DDU identifier |
mo | Monitoring Object to return |
If not cached (last DDU) - find DDU
Get MO from static array
Definition at line 92 of file CSCDQM_Cache.cc.
References dduData, dduPointer, dduPointerValue, and triggerObjects_cff::id.
Referenced by cscdqm::Dispatcher::commonConstruct(), and get().
const bool cscdqm::Cache::getEMU | ( | const HistoId & | id, |
MonitorObject *& | mo | ||
) |
Get EMU MO on Histogram Id.
id | Histogram identifier |
mo | Monitoring Object to return |
Definition at line 51 of file CSCDQM_Cache.cc.
References data, and triggerObjects_cff::id.
Referenced by cscdqm::Dispatcher::commonConstruct(), and get().
const bool cscdqm::Cache::getFED | ( | const HistoId & | id, |
const HwId & | fedId, | ||
MonitorObject *& | mo | ||
) |
Get FED MO on Histogram Id and FED Id.
id | Histogram identifier |
fedId | FED identifier |
mo | Monitoring Object to return |
If not cached (last FED) - find FED
Get MO from static array
Definition at line 66 of file CSCDQM_Cache.cc.
References fedData, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedPointer, fedPointerValue, and triggerObjects_cff::id.
Referenced by cscdqm::Dispatcher::commonConstruct(), and get().
const bool cscdqm::Cache::getPar | ( | const HistoId & | id, |
MonitorObject *& | mo | ||
) |
Get Parameter MO on Histogram Id.
id | Histogram identifier |
mo | Monitoring Object to return |
Definition at line 143 of file CSCDQM_Cache.cc.
References data, and triggerObjects_cff::id.
Referenced by cscdqm::Dispatcher::commonConstruct(), and get().
Check if CSC was booked on given identifiers.
crateId | CSC Crate Id |
dmbId | CSC DMB Id |
Definition at line 299 of file CSCDQM_Cache.cc.
References cscData.
Referenced by cscdqm::Dispatcher::book(), cscdqm::Dispatcher::commonConstruct(), and cscdqm::Dispatcher::getHisto().
const bool cscdqm::Cache::isBookedDDU | ( | const HwId & | dduId | ) | const |
Check if DDU was booked on given identifier.
dduId | DDU Id |
Definition at line 322 of file CSCDQM_Cache.cc.
References dduData.
Referenced by cscdqm::Dispatcher::book(), cscdqm::Dispatcher::commonConstruct(), and cscdqm::Dispatcher::getHisto().
const bool cscdqm::Cache::isBookedFED | ( | const HwId & | fedId | ) | const |
Check if FED was booked on given identifier.
fedId | FED Id |
Definition at line 312 of file CSCDQM_Cache.cc.
References fedData, and l1tstage2_dqm_sourceclient-live_cfg::fedId.
Referenced by cscdqm::Dispatcher::book(), cscdqm::Dispatcher::commonConstruct(), and cscdqm::Dispatcher::getHisto().
const bool cscdqm::Cache::nextBookedCSC | ( | unsigned int & | n, |
unsigned int & | crateId, | ||
unsigned int & | dmbId | ||
) | const |
Iterator to get booked CSC identifiers on enumerator.
n | iterator (0 and up) |
crateId | CSC Crate Id returned |
dmbId | CSC DMB Id returned |
Definition at line 244 of file CSCDQM_Cache.cc.
References cscData, mps_fire::i, and dqmiodumpmetadata::n.
Referenced by cscdqm::Dispatcher::commonConstruct().
const bool cscdqm::Cache::nextBookedDDU | ( | unsigned int & | n, |
unsigned int & | dduId | ||
) | const |
Iterator to get booked DDU identifier on enumerator.
n | iterator (0 and up) |
dduId | DDU Id returned |
Definition at line 281 of file CSCDQM_Cache.cc.
References dduData, mps_fire::i, and dqmiodumpmetadata::n.
const bool cscdqm::Cache::nextBookedFED | ( | unsigned int & | n, |
unsigned int & | fedId | ||
) | const |
Iterator to get booked FED identifier on enumerator.
Utility methods
n | iterator (0 and up) |
fedId | FED Id returned |
Definition at line 263 of file CSCDQM_Cache.cc.
References fedData, l1tstage2_dqm_sourceclient-live_cfg::fedId, mps_fire::i, and dqmiodumpmetadata::n.
void cscdqm::Cache::put | ( | const HistoDef & | histo, |
MonitorObject * | mo | ||
) |
Put Monitoring Object into cache.
histo | Histogram Definition |
mo | Monitoring Object to put |
EMU MO
FED MO
DDU MO
CSC MO
Parameter MO
Add histo (if mo is not null!) into lookup list
Definition at line 157 of file CSCDQM_Cache.cc.
References cscData, cscdqm::CSCHistoDefT, cscPointer, data, dduData, cscdqm::DDUHistoDefT, dduPointer, dduPointerValue, cscdqm::EMUHistoDefT, fedData, cscdqm::FEDHistoDefT, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedPointer, fedPointerValue, timingPdfMaker::histo, mps_fire::i, triggerObjects_cff::id, lookupData, and cscdqm::ParHistoDefT.
Referenced by cscdqm::Dispatcher::book(), cscdqm::Dispatcher::commonConstruct(), and cscdqm::Dispatcher::getHisto().
|
private |
Chamber MO List
Definition at line 119 of file CSCDQM_Cache.h.
Referenced by Cache(), getCSC(), isBookedCSC(), nextBookedCSC(), and put().
|
private |
Pointer to the Last Chamber object used (cached)
Definition at line 121 of file CSCDQM_Cache.h.
|
private |
EMU and PAR MO static List
Definition at line 102 of file CSCDQM_Cache.h.
Referenced by data_sources.node::__str__(), confdb.HLTProcess::_fix_parameter(), confdb.HLTProcess::addEras(), confdb.HLTProcess::addGlobalOptions(), confdb.HLTProcess::append_filenames(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), confdb.HLTProcess::build_source(), Cache(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), confdb.HLTProcess::fixPrescales(), data_sources.json_list::get_members(), getEMU(), getPar(), confdb.HLTProcess::getRawConfigurationFromDB(), confdb.HLTProcess::instrumentDQM(), confdb.HLTProcess::instrumentOpenMode(), confdb.HLTProcess::instrumentTiming(), data_sources.json_list::last(), confdb.HLTProcess::loadAdditionalConditions(), confdb.HLTProcess::loadCff(), confdb.HLTProcess::loadSetupCff(), confdb.HLTProcess::overrideGlobalTag(), confdb.HLTProcess::overrideL1MenuXml(), confdb.HLTProcess::overrideOutput(), confdb.HLTProcess::overrideParameters(), confdb.HLTProcess::overrideProcessName(), put(), confdb.HLTProcess::runL1Emulator(), confdb.HLTProcess::specificCustomize(), cuy.FindIssue::startElement(), edmStreamStallGrapher.Stack::update(), and confdb.HLTProcess::updateMessageLogger().
|
private |
DDU MO List
Definition at line 112 of file CSCDQM_Cache.h.
Referenced by Cache(), getDDU(), isBookedDDU(), nextBookedDDU(), put(), and ~Cache().
|
private |
Pointer to the Last DDU object used (cached)
Definition at line 114 of file CSCDQM_Cache.h.
|
private |
Last DDU id used (cached)
Definition at line 116 of file CSCDQM_Cache.h.
|
private |
FED MO List
Definition at line 105 of file CSCDQM_Cache.h.
Referenced by Cache(), getFED(), isBookedFED(), nextBookedFED(), put(), and ~Cache().
|
private |
Pointer to the Last FED object used (cached)
Definition at line 107 of file CSCDQM_Cache.h.
|
private |
Last FED id used (cached)
Definition at line 109 of file CSCDQM_Cache.h.
|
private |