#include <DataProxyProvider.h>
Public Types | |
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
typedef std::vector< EventSetupRecordKey > | Keys |
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
Public Member Functions | |
DataProxyProvider () | |
const ComponentDescription & | description () const |
bool | isUsingRecord (const EventSetupRecordKey &) const |
const KeyedProxies & | keyedProxies (const EventSetupRecordKey &iRecordKey) const |
virtual void | newInterval (const EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)=0 |
called when a new interval of validity occurs for iRecordType More... | |
void | resetProxies (const EventSetupRecordKey &iRecordType) |
void | resetProxiesIfTransient (const EventSetupRecordKey &iRecordType) |
void | setAppendToDataLabel (const edm::ParameterSet &) |
void | setDescription (const ComponentDescription &iDescription) |
virtual void | updateLookup (ESRecordsToProxyIndices const &) |
std::set< EventSetupRecordKey > | usingRecords () const |
virtual | ~DataProxyProvider () noexcept(false) |
Static Public Member Functions | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
virtual void | registerProxies (const EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList)=0 |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
Private Member Functions | |
DataProxyProvider (const DataProxyProvider &) | |
const DataProxyProvider & | operator= (const DataProxyProvider &) |
Private Attributes | |
std::string | appendToDataLabel_ |
ComponentDescription | description_ |
RecordProxies | recordProxies_ |
Definition at line 43 of file DataProxyProvider.h.
typedef std::vector<std::pair<DataKey, edm::propagate_const<std::shared_ptr<DataProxy> > > > edm::eventsetup::DataProxyProvider::KeyedProxies |
Definition at line 46 of file DataProxyProvider.h.
typedef std::vector<EventSetupRecordKey> edm::eventsetup::DataProxyProvider::Keys |
Definition at line 45 of file DataProxyProvider.h.
typedef std::map<EventSetupRecordKey, KeyedProxies> edm::eventsetup::DataProxyProvider::RecordProxies |
Definition at line 47 of file DataProxyProvider.h.
DataProxyProvider::DataProxyProvider | ( | ) |
Definition at line 36 of file DataProxyProvider.cc.
Referenced by usingRecord().
|
virtualnoexcept |
Definition at line 43 of file DataProxyProvider.cc.
|
private |
|
inline |
Definition at line 59 of file DataProxyProvider.h.
References description_, newInterval(), prevalidate(), and updateLookup().
Referenced by keyedProxies(), edm::eventsetup::EventSetupRecordProvider::proxyProvider(), and edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions().
|
protected |
deletes all the Proxies in aStream
Referenced by usingRecord().
|
protected |
Definition at line 68 of file DataProxyProvider.cc.
References mps_check::finished, and recordProxies_.
Referenced by CondDBESSource::newInterval(), edm::ESProxyFactoryProducer::newInterval(), FWLiteESSource::newInterval(), resetProxies(), and usingRecord().
bool DataProxyProvider::isUsingRecord | ( | const EventSetupRecordKey & | iKey | ) | const |
Definition at line 99 of file DataProxyProvider.cc.
References recordProxies_.
const DataProxyProvider::KeyedProxies & DataProxyProvider::keyedProxies | ( | const EventSetupRecordKey & | iRecordKey | ) | const |
Definition at line 114 of file DataProxyProvider.cc.
References appendToDataLabel_, description(), edm::eventsetup::kAppendToDataLabel(), recordProxies_, registerProxies(), AlCaHLTBitMon_QueryRunRegistry::string, edm::eventsetup::swap(), and groupFilesInBlocks::temp.
|
pure virtual |
called when a new interval of validity occurs for iRecordType
Implemented in FWLiteESSource, edm::ESProxyFactoryProducer, CondDBESSource, and edm::test::EventSetupTestHelper.
Referenced by description().
|
private |
Referenced by usingRecord().
|
static |
Used to add parameters available to all inheriting classes
Definition at line 147 of file DataProxyProvider.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::defaultDescription(), edm::ParameterSetDescription::isLabelUnused(), edm::eventsetup::kAppendToDataLabel(), AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.
Referenced by description().
|
protectedpure virtual |
Implemented in FWLiteESSource, edm::ESProxyFactoryProducer, edm::test::EventSetupTestHelper, and CondDBESSource.
Referenced by keyedProxies(), and usingRecord().
void DataProxyProvider::resetProxies | ( | const EventSetupRecordKey & | iRecordType | ) |
Definition at line 76 of file DataProxyProvider.cc.
References invalidateProxies().
Referenced by edm::eventsetup::EventSetupRecordProvider::resetProxies(), and setDescription().
void DataProxyProvider::resetProxiesIfTransient | ( | const EventSetupRecordKey & | iRecordType | ) |
Definition at line 78 of file DataProxyProvider.cc.
References mps_check::finished, and recordProxies_.
Referenced by edm::eventsetup::EventSetupRecordProvider::resetProxies(), edm::eventsetup::EventSetupRecordProvider::resetTransients(), and setDescription().
void DataProxyProvider::setAppendToDataLabel | ( | const edm::ParameterSet & | iToAppend | ) |
This method is only to be called by the framework, it sets the string which will be appended to the labels of all data products being produced
Definition at line 86 of file DataProxyProvider.cc.
References appendToDataLabel_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDescription(), and edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >::setPostConstruction().
|
inline |
Definition at line 72 of file DataProxyProvider.h.
References description_, resetProxies(), resetProxiesIfTransient(), and setAppendToDataLabel().
Referenced by edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >::setDescription().
|
virtual |
Reimplemented in edm::ESProducer.
Definition at line 61 of file DataProxyProvider.cc.
Referenced by description().
|
inlineprotected |
Definition at line 84 of file DataProxyProvider.h.
References DataProxyProvider(), eraseAll(), invalidateProxies(), operator=(), registerProxies(), and usingRecordWithKey().
std::set< EventSetupRecordKey > DataProxyProvider::usingRecords | ( | ) | const |
Definition at line 103 of file DataProxyProvider.cc.
References recordProxies_.
|
protected |
Definition at line 63 of file DataProxyProvider.cc.
References recordProxies_.
Referenced by CondDBESSource::CondDBESSource(), FWLiteESSource::delaySettingRecords(), edm::test::EventSetupTestHelper::EventSetupTestHelper(), edm::ESProxyFactoryProducer::registerFactoryWithKey(), and usingRecord().
|
private |
Definition at line 105 of file DataProxyProvider.h.
Referenced by keyedProxies(), and setAppendToDataLabel().
|
private |
Definition at line 104 of file DataProxyProvider.h.
Referenced by description(), and setDescription().
|
private |
Definition at line 103 of file DataProxyProvider.h.
Referenced by invalidateProxies(), isUsingRecord(), keyedProxies(), resetProxiesIfTransient(), usingRecords(), and usingRecordWithKey().