#include <EventSetupsController.h>
Public Member Functions | |
void | clearComponents () |
bool | doWeNeedToWaitForIOVsToFinish (IOVSyncValue const &) const |
std::multimap< ParameterSetID, ESProducerInfo > const & | esproducers () const |
std::multimap< ParameterSetID, ESSourceInfo > const & | essources () const |
void | eventSetupForInstance (IOVSyncValue const &) |
void | eventSetupForInstance (IOVSyncValue const &, WaitingTaskHolder const &taskToStartAfterIOVInit, WaitingTaskList &endIOVWaitingTasks, std::vector< std::shared_ptr< const EventSetupImpl >> &) |
EventSetupsController () | |
EventSetupsController (EventSetupsController const &)=delete | |
void | finishConfiguration () |
void | forceCacheClear () |
std::shared_ptr< DataProxyProvider > | getESProducerAndRegisterProcess (ParameterSet const &pset, unsigned subProcessIndex) |
ParameterSet const * | getESProducerPSet (ParameterSetID const &psetID, unsigned subProcessIndex) const |
std::shared_ptr< EventSetupRecordIntervalFinder > | getESSourceAndRegisterProcess (ParameterSet const &pset, unsigned subProcessIndex) |
bool | hasNonconcurrentFinder () const |
unsigned | indexOfNextProcess () const |
bool | isFirstMatch (ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const |
bool | isLastMatch (ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const |
bool | isMatchingESProducer (ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const |
bool | isMatchingESSource (ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const |
void | lookForMatches (ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex, bool &firstProcessWithThisPSet, bool &precedingHasMatchingPSet) const |
std::shared_ptr< EventSetupProvider > | makeProvider (ParameterSet &, ActivityRegistry *, ParameterSet const *eventSetupPset=nullptr) |
bool | mustFinishConfiguration () const |
EventSetupsController const & | operator= (EventSetupsController const &)=delete |
std::vector< propagate_const< std::shared_ptr< EventSetupProvider > > > const & | providers () const |
void | putESProducer (ParameterSet const &pset, std::shared_ptr< DataProxyProvider > const &component, unsigned subProcessIndex) |
void | putESSource (ParameterSet const &pset, std::shared_ptr< EventSetupRecordIntervalFinder > const &component, unsigned subProcessIndex) |
void | setMaxConcurrentIOVs (unsigned int nStreams, unsigned int nConcurrentLumis) |
Private Member Functions | |
void | checkESProducerSharing () |
void | initializeEventSetupRecordIOVQueues () |
Private Attributes | |
std::multimap< ParameterSetID, ESProducerInfo > | esproducers_ |
std::multimap< ParameterSetID, ESSourceInfo > | essources_ |
std::vector< propagate_const< std::unique_ptr< EventSetupRecordIOVQueue > > > | eventSetupRecordIOVQueues_ |
bool | hasNonconcurrentFinder_ = false |
bool | mustFinishConfiguration_ = true |
NumberOfConcurrentIOVs | numberOfConcurrentIOVs_ |
std::vector< propagate_const< std::shared_ptr< EventSetupProvider > > > | providers_ |
Description: Manages a group of EventSetups which can share components
Usage: <usage>
Definition at line 79 of file EventSetupsController.h.
edm::eventsetup::EventSetupsController::EventSetupsController | ( | ) |
Definition at line 34 of file EventSetupsController.cc.
|
delete |
|
private |
Definition at line 390 of file EventSetupsController.cc.
References providers_.
Referenced by finishConfiguration().
void edm::eventsetup::EventSetupsController::clearComponents | ( | ) |
Definition at line 233 of file EventSetupsController.cc.
References esproducers_, and essources_.
Referenced by finishConfiguration().
bool edm::eventsetup::EventSetupsController::doWeNeedToWaitForIOVsToFinish | ( | IOVSyncValue const & | syncValue | ) | const |
Definition at line 164 of file EventSetupsController.cc.
References hasNonconcurrentFinder(), and providers_.
|
inline |
|
inline |
void edm::eventsetup::EventSetupsController::eventSetupForInstance | ( | IOVSyncValue const & | syncValue | ) |
Definition at line 125 of file EventSetupsController.cc.
References CMS_SA_ALLOW, edm::WaitingTaskList::doneWaiting(), eventSetupForInstance(), and edm::make_empty_waiting_task().
void edm::eventsetup::EventSetupsController::eventSetupForInstance | ( | IOVSyncValue const & | syncValue, |
WaitingTaskHolder const & | taskToStartAfterIOVInit, | ||
WaitingTaskList & | endIOVWaitingTasks, | ||
std::vector< std::shared_ptr< const EventSetupImpl >> & | eventSetupImpls | ||
) |
Definition at line 86 of file EventSetupsController.cc.
References eventSetupRecordIOVQueues_, finishConfiguration(), and providers_.
Referenced by eventSetupForInstance().
void edm::eventsetup::EventSetupsController::finishConfiguration | ( | ) |
Definition at line 60 of file EventSetupsController.cc.
References checkESProducerSharing(), edm::eventsetup::NumberOfConcurrentIOVs::clear(), clearComponents(), edm::eventsetup::NumberOfConcurrentIOVs::fillRecordsNotAllowingConcurrentIOVs(), hasNonconcurrentFinder_, initializeEventSetupRecordIOVQueues(), mustFinishConfiguration_, numberOfConcurrentIOVs_, and providers_.
Referenced by eventSetupForInstance().
void edm::eventsetup::EventSetupsController::forceCacheClear | ( | ) |
std::shared_ptr< DataProxyProvider > edm::eventsetup::EventSetupsController::getESProducerAndRegisterProcess | ( | ParameterSet const & | pset, |
unsigned | subProcessIndex | ||
) |
Definition at line 181 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, edm::isTransientEqual(), and muonDTDigis_cfi::pset.
Referenced by edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess().
ParameterSet const * edm::eventsetup::EventSetupsController::getESProducerPSet | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex | ||
) | const |
Definition at line 372 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::checkESProducerSharing().
std::shared_ptr< EventSetupRecordIntervalFinder > edm::eventsetup::EventSetupsController::getESSourceAndRegisterProcess | ( | ParameterSet const & | pset, |
unsigned | subProcessIndex | ||
) |
Definition at line 207 of file EventSetupsController.cc.
References bookConverter::elements, essources_, edm::isTransientEqual(), and muonDTDigis_cfi::pset.
Referenced by edm::eventsetup::SourceMakerTraits::getComponentAndRegisterProcess().
|
inline |
Definition at line 159 of file EventSetupsController.h.
References hasNonconcurrentFinder_.
Referenced by doWeNeedToWaitForIOVsToFinish().
|
inline |
Definition at line 131 of file EventSetupsController.h.
References providers_.
Referenced by edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess(), edm::eventsetup::SourceMakerTraits::getComponentAndRegisterProcess(), edm::eventsetup::ModuleMakerTraits::putComponent(), and edm::eventsetup::SourceMakerTraits::putComponent().
|
private |
Definition at line 428 of file EventSetupsController.cc.
References edm::eventsetup::EventSetupRecordIOVQueue::addRecProvider(), eventSetupRecordIOVQueues_, crabWrapper::key, relativeConstraints::keys, edm::eventsetup::NumberOfConcurrentIOVs::numberOfConcurrentIOVs(), numberOfConcurrentIOVs_, and providers_.
Referenced by finishConfiguration().
bool edm::eventsetup::EventSetupsController::isFirstMatch | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex, | ||
unsigned | precedingProcessIndex | ||
) | const |
Definition at line 272 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::checkESProducerSharing().
bool edm::eventsetup::EventSetupsController::isLastMatch | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex, | ||
unsigned | precedingProcessIndex | ||
) | const |
Definition at line 297 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::checkESProducerSharing().
bool edm::eventsetup::EventSetupsController::isMatchingESProducer | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex, | ||
unsigned | precedingProcessIndex | ||
) | const |
Definition at line 347 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::doRecordsMatch().
bool edm::eventsetup::EventSetupsController::isMatchingESSource | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex, | ||
unsigned | precedingProcessIndex | ||
) | const |
Definition at line 322 of file EventSetupsController.cc.
References bookConverter::elements, essources_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::doRecordsMatch().
void edm::eventsetup::EventSetupsController::lookForMatches | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex, | ||
unsigned | precedingProcessIndex, | ||
bool & | firstProcessWithThisPSet, | ||
bool & | precedingHasMatchingPSet | ||
) | const |
Definition at line 238 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, Exception, spr::find(), and edm::errors::LogicError.
Referenced by edm::eventsetup::EventSetupProvider::checkESProducerSharing().
std::shared_ptr< EventSetupProvider > edm::eventsetup::EventSetupsController::makeProvider | ( | ParameterSet & | iPSet, |
ActivityRegistry * | activityRegistry, | ||
ParameterSet const * | eventSetupPset = nullptr |
||
) |
Definition at line 36 of file EventSetupsController.cc.
References edm::eventsetup::fillEventSetupProvider(), edm::eventsetup::makeEventSetupProvider(), numberOfConcurrentIOVs_, providers_, and edm::eventsetup::NumberOfConcurrentIOVs::readConfigurationParameters().
Referenced by edm::SubProcess::SubProcess().
|
inline |
|
delete |
|
inline |
void edm::eventsetup::EventSetupsController::putESProducer | ( | ParameterSet const & | pset, |
std::shared_ptr< DataProxyProvider > const & | component, | ||
unsigned | subProcessIndex | ||
) |
Definition at line 198 of file EventSetupsController.cc.
References esproducers_, and muonDTDigis_cfi::pset.
Referenced by edm::eventsetup::ModuleMakerTraits::putComponent().
void edm::eventsetup::EventSetupsController::putESSource | ( | ParameterSet const & | pset, |
std::shared_ptr< EventSetupRecordIntervalFinder > const & | component, | ||
unsigned | subProcessIndex | ||
) |
Definition at line 224 of file EventSetupsController.cc.
References essources_, and muonDTDigis_cfi::pset.
Referenced by edm::eventsetup::SourceMakerTraits::putComponent().
void edm::eventsetup::EventSetupsController::setMaxConcurrentIOVs | ( | unsigned int | nStreams, |
unsigned int | nConcurrentLumis | ||
) |
Definition at line 56 of file EventSetupsController.cc.
References numberOfConcurrentIOVs_, and edm::eventsetup::NumberOfConcurrentIOVs::setMaxConcurrentIOVs().
|
private |
Definition at line 184 of file EventSetupsController.h.
Referenced by clearComponents(), esproducers(), getESProducerAndRegisterProcess(), getESProducerPSet(), isFirstMatch(), isLastMatch(), isMatchingESProducer(), lookForMatches(), and putESProducer().
|
private |
Definition at line 185 of file EventSetupsController.h.
Referenced by clearComponents(), essources(), getESSourceAndRegisterProcess(), isMatchingESSource(), and putESSource().
|
private |
Definition at line 172 of file EventSetupsController.h.
Referenced by eventSetupForInstance(), and initializeEventSetupRecordIOVQueues().
|
private |
Definition at line 187 of file EventSetupsController.h.
Referenced by finishConfiguration(), and hasNonconcurrentFinder().
|
private |
Definition at line 188 of file EventSetupsController.h.
Referenced by finishConfiguration(), and mustFinishConfiguration().
|
private |
Definition at line 168 of file EventSetupsController.h.
Referenced by finishConfiguration(), initializeEventSetupRecordIOVQueues(), makeProvider(), and setMaxConcurrentIOVs().
|
private |
Definition at line 167 of file EventSetupsController.h.
Referenced by checkESProducerSharing(), doWeNeedToWaitForIOVsToFinish(), eventSetupForInstance(), finishConfiguration(), forceCacheClear(), indexOfNextProcess(), initializeEventSetupRecordIOVQueues(), makeProvider(), and providers().