CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
edmtest::ESTestDataProxyProviderJ Class Reference
Inheritance diagram for edmtest::ESTestDataProxyProviderJ:
edm::eventsetup::DataProxyProvider

Public Member Functions

 ESTestDataProxyProviderJ (edm::ParameterSet const &)
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
virtual void updateLookup (ESRecordsToProxyIndices const &)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

KeyedProxiesVector registerProxies (const edm::eventsetup::EventSetupRecordKey &, unsigned int iovIndex) override
 

Private Attributes

std::vector< unsigned > expectedCacheIds_
 
std::vector< std::shared_ptr< TestDataProxyTemplateJ > > proxies_
 

Additional Inherited Members

- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 310 of file ESTestProducers.cc.

Constructor & Destructor Documentation

◆ ESTestDataProxyProviderJ()

edmtest::ESTestDataProxyProviderJ::ESTestDataProxyProviderJ ( edm::ParameterSet const &  pset)

Definition at line 323 of file ESTestProducers.cc.

324  : expectedCacheIds_(pset.getUntrackedParameter<std::vector<unsigned int>>("expectedCacheIds")) {
325  usingRecord<ESTestRecordJ>();
326  }
std::vector< unsigned > expectedCacheIds_

Member Function Documentation

◆ fillDescriptions()

void edmtest::ESTestDataProxyProviderJ::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 328 of file ESTestProducers.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

328  {
330  std::vector<unsigned int> emptyDefaultVector;
331  desc.addUntracked<std::vector<unsigned int>>("expectedCacheIds", emptyDefaultVector);
332  descriptions.addDefault(desc);
333  }
void addDefault(ParameterSetDescription const &psetDescription)

◆ registerProxies()

edm::eventsetup::DataProxyProvider::KeyedProxiesVector edmtest::ESTestDataProxyProviderJ::registerProxies ( const edm::eventsetup::EventSetupRecordKey iRecord,
unsigned int  iovIndex 
)
overrideprivatevirtual

Implements edm::eventsetup::DataProxyProvider.

Definition at line 335 of file ESTestProducers.cc.

References expectedCacheIds_, and proxies_.

336  {
337  KeyedProxiesVector keyedProxiesVector;
338  while (iovIndex >= proxies_.size()) {
339  proxies_.push_back(std::make_shared<TestDataProxyTemplateJ>(&expectedCacheIds_));
340  }
341  edm::eventsetup::DataKey dataKey(edm::eventsetup::DataKey::makeTypeTag<ESTestDataJ>(), "");
342  keyedProxiesVector.emplace_back(dataKey, proxies_[iovIndex]);
343  return keyedProxiesVector;
344  }
std::vector< unsigned > expectedCacheIds_
std::vector< std::shared_ptr< TestDataProxyTemplateJ > > proxies_
std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> KeyedProxiesVector

Member Data Documentation

◆ expectedCacheIds_

std::vector<unsigned> edmtest::ESTestDataProxyProviderJ::expectedCacheIds_
private

Definition at line 320 of file ESTestProducers.cc.

Referenced by registerProxies().

◆ proxies_

std::vector<std::shared_ptr<TestDataProxyTemplateJ> > edmtest::ESTestDataProxyProviderJ::proxies_
private

Definition at line 319 of file ESTestProducers.cc.

Referenced by registerProxies().