#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 &, WaitingTaskHolder const &taskToStartAfterIOVInit, WaitingTaskList &endIOVWaitingTasks, std::vector< std::shared_ptr< const EventSetupImpl >> &) |
void | eventSetupForInstance (IOVSyncValue const &) |
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 33 of file EventSetupsController.cc.
|
delete |
|
private |
Definition at line 389 of file EventSetupsController.cc.
References providers_.
Referenced by finishConfiguration().
void edm::eventsetup::EventSetupsController::clearComponents | ( | ) |
Definition at line 232 of file EventSetupsController.cc.
References esproducers_, and essources_.
Referenced by finishConfiguration().
bool edm::eventsetup::EventSetupsController::doWeNeedToWaitForIOVsToFinish | ( | IOVSyncValue const & | syncValue | ) | const |
Definition at line 163 of file EventSetupsController.cc.
References hasNonconcurrentFinder(), and providers_.
|
inline |
Definition at line 155 of file EventSetupsController.h.
|
inline |
Definition at line 157 of file EventSetupsController.h.
void edm::eventsetup::EventSetupsController::eventSetupForInstance | ( | IOVSyncValue const & | syncValue, |
WaitingTaskHolder const & | taskToStartAfterIOVInit, | ||
WaitingTaskList & | endIOVWaitingTasks, | ||
std::vector< std::shared_ptr< const EventSetupImpl >> & | eventSetupImpls | ||
) |
Definition at line 85 of file EventSetupsController.cc.
References eventSetupRecordIOVQueues_, finishConfiguration(), and providers_.
Referenced by eventSetupForInstance().
void edm::eventsetup::EventSetupsController::eventSetupForInstance | ( | IOVSyncValue const & | syncValue | ) |
Definition at line 124 of file EventSetupsController.cc.
References edm::WaitingTaskList::doneWaiting(), eventSetupForInstance(), and edm::make_empty_waiting_task().
void edm::eventsetup::EventSetupsController::finishConfiguration | ( | ) |
Definition at line 59 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 | ( | ) |
Definition at line 174 of file EventSetupsController.cc.
References providers_.
std::shared_ptr< DataProxyProvider > edm::eventsetup::EventSetupsController::getESProducerAndRegisterProcess | ( | ParameterSet const & | pset, |
unsigned | subProcessIndex | ||
) |
Definition at line 180 of file EventSetupsController.cc.
References bookConverter::elements, esproducers_, edm::ParameterSet::id(), and edm::isTransientEqual().
Referenced by edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess().
ParameterSet const * edm::eventsetup::EventSetupsController::getESProducerPSet | ( | ParameterSetID const & | psetID, |
unsigned | subProcessIndex | ||
) | const |
Definition at line 371 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 206 of file EventSetupsController.cc.
References bookConverter::elements, essources_, edm::ParameterSet::id(), and edm::isTransientEqual().
Referenced by edm::eventsetup::SourceMakerTraits::getComponentAndRegisterProcess().
|
inline |
Definition at line 159 of file EventSetupsController.h.
Referenced by doWeNeedToWaitForIOVsToFinish().
|
inline |
Definition at line 131 of file EventSetupsController.h.
Referenced by edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess(), edm::eventsetup::SourceMakerTraits::getComponentAndRegisterProcess(), edm::eventsetup::ModuleMakerTraits::putComponent(), and edm::eventsetup::SourceMakerTraits::putComponent().
|
private |
Definition at line 427 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 271 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 296 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 346 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 321 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 237 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 35 of file EventSetupsController.cc.
References edm::eventsetup::fillEventSetupProvider(), edm::eventsetup::makeEventSetupProvider(), numberOfConcurrentIOVs_, providers_, and edm::eventsetup::NumberOfConcurrentIOVs::readConfigurationParameters().
Referenced by edm::SubProcess::SubProcess().
|
inline |
Definition at line 160 of file EventSetupsController.h.
|
delete |
|
inline |
Definition at line 153 of file EventSetupsController.h.
void edm::eventsetup::EventSetupsController::putESProducer | ( | ParameterSet const & | pset, |
std::shared_ptr< DataProxyProvider > const & | component, | ||
unsigned | subProcessIndex | ||
) |
Definition at line 197 of file EventSetupsController.cc.
References esproducers_, and edm::ParameterSet::id().
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 223 of file EventSetupsController.cc.
References essources_, and edm::ParameterSet::id().
Referenced by edm::eventsetup::SourceMakerTraits::putComponent().
void edm::eventsetup::EventSetupsController::setMaxConcurrentIOVs | ( | unsigned int | nStreams, |
unsigned int | nConcurrentLumis | ||
) |
Definition at line 55 of file EventSetupsController.cc.
References numberOfConcurrentIOVs_, and edm::eventsetup::NumberOfConcurrentIOVs::setMaxConcurrentIOVs().
|
private |
Definition at line 184 of file EventSetupsController.h.
Referenced by clearComponents(), getESProducerAndRegisterProcess(), getESProducerPSet(), isFirstMatch(), isLastMatch(), isMatchingESProducer(), lookForMatches(), and putESProducer().
|
private |
Definition at line 185 of file EventSetupsController.h.
Referenced by clearComponents(), 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().
|
private |
Definition at line 188 of file EventSetupsController.h.
Referenced by finishConfiguration().
|
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(), initializeEventSetupRecordIOVQueues(), and makeProvider().