#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) |
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 48 of file DataProxyProvider.h.
typedef std::vector< EventSetupRecordKey> edm::eventsetup::DataProxyProvider::Keys |
Definition at line 47 of file DataProxyProvider.h.
typedef std::map<EventSetupRecordKey, KeyedProxies> edm::eventsetup::DataProxyProvider::RecordProxies |
Definition at line 49 of file DataProxyProvider.h.
DataProxyProvider::DataProxyProvider | ( | ) |
Definition at line 36 of file DataProxyProvider.cc.
Referenced by usingRecord().
|
virtualnoexcept |
Definition at line 45 of file DataProxyProvider.cc.
|
private |
|
inline |
Definition at line 61 of file DataProxyProvider.h.
References description_, newInterval(), and prevalidate().
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 72 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 119 of file DataProxyProvider.cc.
References recordProxies_.
const DataProxyProvider::KeyedProxies & DataProxyProvider::keyedProxies | ( | const EventSetupRecordKey & | iRecordKey | ) | const |
Definition at line 139 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 176 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 85 of file DataProxyProvider.cc.
References invalidateProxies().
Referenced by edm::eventsetup::EventSetupRecordProvider::resetProxies(), and setDescription().
void DataProxyProvider::resetProxiesIfTransient | ( | const EventSetupRecordKey & | iRecordType | ) |
Definition at line 91 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 104 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 73 of file DataProxyProvider.h.
References description_, resetProxies(), resetProxiesIfTransient(), and setAppendToDataLabel().
Referenced by edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >::setDescription().
|
inlineprotected |
Definition at line 87 of file DataProxyProvider.h.
References DataProxyProvider(), eraseAll(), invalidateProxies(), operator=(), registerProxies(), and usingRecordWithKey().
std::set< EventSetupRecordKey > DataProxyProvider::usingRecords | ( | ) | const |
Definition at line 125 of file DataProxyProvider.cc.
References recordProxies_.
|
protected |
Definition at line 65 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 109 of file DataProxyProvider.h.
Referenced by keyedProxies(), and setAppendToDataLabel().
|
private |
Definition at line 108 of file DataProxyProvider.h.
Referenced by description(), and setDescription().
|
private |
Definition at line 107 of file DataProxyProvider.h.
Referenced by invalidateProxies(), isUsingRecord(), keyedProxies(), resetProxiesIfTransient(), usingRecords(), and usingRecordWithKey().