#include <EventSetupRecordImpl.h>
Public Member Functions | |
bool | add (DataKey const &iKey, DataProxy const *iProxy) |
void | addTraceInfoToCmsException (cms::Exception &iException, char const *iName, ComponentDescription const *, DataKey const &) const |
unsigned long long | cacheIdentifier () const |
void | cacheReset () |
void | changeStdExceptionToCmsException (char const *iExceptionWhatMessage, char const *iName, ComponentDescription const *, DataKey const &) const |
void | clearProxies () |
std::vector< ComponentDescription const * > | componentsForRegisteredDataKeys () const |
there is a 1-to-1 correspondence between elements returned and the elements returned from fillRegisteredDataKey. More... | |
bool | doGet (DataKey const &aKey, bool aGetTransiently=false) const |
returns false if no data available for key More... | |
EventSetupImpl const & | eventSetup () const |
EventSetupRecordImpl (const EventSetupRecordKey &iKey) | |
void | fillRegisteredDataKeys (std::vector< DataKey > &oToFill) const |
clears the oToFill vector and then fills it with the keys for all registered data keys More... | |
DataProxy const * | find (DataKey const &aKey) const |
void | getESProducers (std::vector< ComponentDescription const * > &esproducers) |
EventSetupRecordKey const & | key () const |
ComponentDescription const * | providerDescription (DataKey const &aKey) const |
void | set (ValidityInterval const &) |
void | setEventSetup (EventSetupImpl const *iEventSetup) |
void | transientAccessRequested () const |
bool | transientReset () |
returns 'true' if a transient request has occurred since the last call to transientReset. More... | |
void | validate (ComponentDescription const *, ESInputTag const &) const |
ValidityInterval const & | validityInterval () const |
bool | wasGotten (DataKey const &aKey) const |
Private Member Functions | |
EventSetupRecordImpl (EventSetupRecordImpl const &)=delete | |
void const * | getFromProxy (DataKey const &iKey, ComponentDescription const *&iDesc, bool iTransientAccessOnly) const |
void const * | getFromProxy (ESProxyIndex iProxyIndex, bool iTransientAccessOnly, ComponentDescription const *&iDesc, DataKey const *&oGottenKey) const |
template<typename DataT > | |
void | getImplementation (DataT const *&iData, char const *iName, ComponentDescription const *&iDesc, bool iTransientAccessOnly, std::shared_ptr< ESHandleExceptionFactory > &whyFailedFactory) const |
template<typename DataT > | |
void | getImplementation (DataT const *&iData, ESProxyIndex iProxyIndex, bool iTransientAccessOnly, ComponentDescription const *&oDesc, std::shared_ptr< ESHandleExceptionFactory > &whyFailedFactory) const |
EventSetupRecordImpl const & | operator= (EventSetupRecordImpl const &)=delete |
Private Attributes | |
unsigned long long | cacheIdentifier_ |
EventSetupImpl const * | eventSetup_ |
EventSetupRecordKey | key_ |
std::vector< DataKey > | keysForProxies_ |
std::vector< DataProxy const * > | proxies_ |
std::atomic< bool > | transientAccessRequested_ |
ValidityInterval | validity_ |
Friends | |
class | EventSetupRecord |
Definition at line 83 of file EventSetupRecordImpl.h.
edm::eventsetup::EventSetupRecordImpl::EventSetupRecordImpl | ( | const EventSetupRecordKey & | iKey | ) |
|
privatedelete |
Definition at line 74 of file EventSetupRecordImpl.cc.
References SoftLeptonByDistance_cfi::distance, Exception, edm::eventsetup::EventSetupRecord::find(), edm::eventsetup::ComponentDescription::isLooper_, edm::eventsetup::ComponentDescription::isSource_, edm::eventsetup::EventSetupRecord::key(), edm::eventsetup::ComponentDescription::label_, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, edm::eventsetup::heterocontainer::HCTypeTag::name(), edm::eventsetup::DataKey::name(), edm::eventsetup::DataProxy::providerDescription(), edm::eventsetup::EventSetupRecordKey::type(), edm::eventsetup::DataKey::type(), edm::eventsetup::ComponentDescription::type_, and edm::eventsetup::SimpleStringTag::value().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void EventSetupRecordImpl::addTraceInfoToCmsException | ( | cms::Exception & | iException, |
char const * | iName, | ||
ComponentDescription const * | , | ||
DataKey const & | |||
) | const |
Definition at line 267 of file EventSetupRecordImpl.cc.
References cms::Exception::addContext(), edm::eventsetup::EventSetupRecord::key(), edm::eventsetup::ComponentDescription::label_, edm::eventsetup::heterocontainer::HCTypeTag::name(), edm::eventsetup::EventSetupRecordKey::type(), edm::eventsetup::DataKey::type(), and edm::eventsetup::ComponentDescription::type_.
|
inline |
If you are caching data from the Record, you should also keep this number. If this number changes then you know that the data you have cached is invalid. This is NOT true if if the validityInterval() hasn't changed since it is possible that the job has gone to a new Record and then come back to the previous SyncValue and your algorithm didn't see the intervening Record. The value of '0' will never be returned so you can use that to denote that you have not yet checked the value.
Definition at line 118 of file EventSetupRecordImpl.h.
References PVValHelper::add().
void EventSetupRecordImpl::cacheReset | ( | ) |
Definition at line 129 of file EventSetupRecordImpl.cc.
void edm::eventsetup::EventSetupRecordImpl::changeStdExceptionToCmsException | ( | char const * | iExceptionWhatMessage, |
char const * | iName, | ||
ComponentDescription const * | , | ||
DataKey const & | |||
) | const |
void EventSetupRecordImpl::clearProxies | ( | ) |
Definition at line 124 of file EventSetupRecordImpl.cc.
std::vector< ComponentDescription const * > EventSetupRecordImpl::componentsForRegisteredDataKeys | ( | ) | const |
there is a 1-to-1 correspondence between elements returned and the elements returned from fillRegisteredDataKey.
Definition at line 65 of file EventSetupRecordImpl.cc.
bool EventSetupRecordImpl::doGet | ( | DataKey const & | aKey, |
bool | aGetTransiently = false |
||
) | const |
returns false if no data available for key
Definition at line 210 of file EventSetupRecordImpl.cc.
References edm::eventsetup::EventSetupRecord::addTraceInfoToCmsException(), edm::eventsetup::DataProxy::doGet(), MillePedeFileConverter_cfg::e, edm::eventsetup::EventSetupRecord::find(), edm::eventsetup::DataKey::name(), edm::eventsetup::DataProxy::providerDescription(), edm::eventsetup::SimpleStringTag::value(), and edm::convertException::wrap().
Referenced by edm::eventsetup::EventSetupRecord::doGet().
|
inline |
Definition at line 143 of file EventSetupRecordImpl.h.
void EventSetupRecordImpl::fillRegisteredDataKeys | ( | std::vector< DataKey > & | oToFill | ) | const |
clears the oToFill vector and then fills it with the keys for all registered data keys
Definition at line 242 of file EventSetupRecordImpl.cc.
Definition at line 202 of file EventSetupRecordImpl.cc.
References SoftLeptonByDistance_cfi::distance, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and or.
void EventSetupRecordImpl::getESProducers | ( | std::vector< ComponentDescription const * > & | esproducers | ) |
Definition at line 54 of file EventSetupRecordImpl.cc.
References edm::eventsetup::ComponentDescription::isLooper_, and edm::eventsetup::ComponentDescription::isSource_.
|
private |
Referenced by transientReset().
|
private |
|
inlineprivate |
Definition at line 173 of file EventSetupRecordImpl.h.
References crabWrapper::key, and edm::makeESHandleExceptionFactory().
|
inlineprivate |
Definition at line 191 of file EventSetupRecordImpl.h.
References crabWrapper::key, edm::makeESHandleExceptionFactory(), SiStripPI::max, and edm::ESProxyIndex::value().
|
inline |
Definition at line 106 of file EventSetupRecordImpl.h.
Referenced by edm::EventSetupImpl::add(), edm::eventsetup::DataProxyTemplate< RecordT, DataT >::getImpl(), edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::getImpl(), and edm::eventsetup::DataProxy::invalidateTransientCache().
|
privatedelete |
edm::eventsetup::ComponentDescription const * EventSetupRecordImpl::providerDescription | ( | DataKey const & | aKey | ) | const |
returns the ComponentDescription for the module which creates the data or 0 if no module has been registered for the data. This does not cause the data to actually be constructed.
Definition at line 234 of file EventSetupRecordImpl.cc.
References edm::eventsetup::EventSetupRecord::find(), and edm::eventsetup::DataProxy::providerDescription().
Referenced by edm::eventsetup::EventSetupRecord::providerDescription().
void EventSetupRecordImpl::set | ( | ValidityInterval const & | ) |
Definition at line 52 of file EventSetupRecordImpl.cc.
|
inline |
Definition at line 136 of file EventSetupRecordImpl.h.
References spr::find().
Referenced by edm::eventsetup::EventSetupProvider::addRecordToEventSetup().
|
inline |
Definition at line 156 of file EventSetupRecordImpl.h.
bool EventSetupRecordImpl::transientReset | ( | ) |
returns 'true' if a transient request has occurred since the last call to transientReset.
Definition at line 134 of file EventSetupRecordImpl.cc.
References edm::eventsetup::EventSetupRecord::addTraceInfoToCmsException(), MillePedeFileConverter_cfg::e, edm::eventsetup::EventSetupRecord::find(), edm::eventsetup::DataProxy::get(), getFromProxy(), edm::eventsetup::EventSetupRecord::key(), edm::eventsetup::EventSetupRecordKey::name(), edm::eventsetup::DataKey::name(), edm::eventsetup::DataProxy::providerDescription(), edm::eventsetup::SimpleStringTag::value(), edm::ESProxyIndex::value(), and edm::convertException::wrap().
void EventSetupRecordImpl::validate | ( | ComponentDescription const * | , |
ESInputTag const & | |||
) | const |
Definition at line 246 of file EventSetupRecordImpl.cc.
References edm::ESInputTag::data(), Exception, edm::eventsetup::ComponentDescription::label_, electrons_cff::matched, edm::ESInputTag::module(), and edm::eventsetup::ComponentDescription::type_.
|
inline |
Definition at line 90 of file EventSetupRecordImpl.h.
bool EventSetupRecordImpl::wasGotten | ( | DataKey const & | aKey | ) | const |
returns true only if someone has already requested data for this key and the data was retrieved
Definition at line 226 of file EventSetupRecordImpl.cc.
References edm::eventsetup::DataProxy::cacheIsValid(), and edm::eventsetup::EventSetupRecord::find().
Referenced by edm::eventsetup::EventSetupRecord::wasGotten().
|
friend |
Definition at line 84 of file EventSetupRecordImpl.h.
|
private |
Definition at line 223 of file EventSetupRecordImpl.h.
|
private |
Definition at line 222 of file EventSetupRecordImpl.h.
|
private |
Definition at line 219 of file EventSetupRecordImpl.h.
|
private |
Definition at line 220 of file EventSetupRecordImpl.h.
|
private |
Definition at line 221 of file EventSetupRecordImpl.h.
|
mutableprivate |
Definition at line 224 of file EventSetupRecordImpl.h.
|
private |
Definition at line 218 of file EventSetupRecordImpl.h.