CMS 3D CMS Logo

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

Public Member Functions

 ESTestESProductResolverProviderJ (edm::ParameterSet const &)
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
virtual void updateLookup (ESRecordsToProductResolverIndices const &)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Static Public Member Functions

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

Private Member Functions

KeyedResolversVector registerResolvers (const edm::eventsetup::EventSetupRecordKey &, unsigned int iovIndex) override
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 310 of file ESTestProducers.cc.

Constructor & Destructor Documentation

◆ ESTestESProductResolverProviderJ()

edmtest::ESTestESProductResolverProviderJ::ESTestESProductResolverProviderJ ( 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  }

Member Function Documentation

◆ fillDescriptions()

void edmtest::ESTestESProductResolverProviderJ::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)

◆ registerResolvers()

edm::eventsetup::ESProductResolverProvider::KeyedResolversVector edmtest::ESTestESProductResolverProviderJ::registerResolvers ( const edm::eventsetup::EventSetupRecordKey iRecord,
unsigned int  iovIndex 
)
overrideprivatevirtual

Implements edm::eventsetup::ESProductResolverProvider.

Definition at line 335 of file ESTestProducers.cc.

References expectedCacheIds_, and proxies_.

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

Member Data Documentation

◆ expectedCacheIds_

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

Definition at line 320 of file ESTestProducers.cc.

Referenced by registerResolvers().

◆ proxies_

std::vector<std::shared_ptr<TestESProductResolverTemplateJ> > edmtest::ESTestESProductResolverProviderJ::proxies_
private

Definition at line 319 of file ESTestProducers.cc.

Referenced by registerResolvers().