#include <EventSetupsController.h>
Public Member Functions | |
void | clearComponents () |
bool | doWeNeedToWaitForIOVsToFinish (IOVSyncValue const &) const |
void | endIOVsAsync (edm::WaitingTaskHolder iEndTask) |
std::multimap< ParameterSetID, ESProducerInfo > const & | esproducers () const |
std::multimap< ParameterSetID, ESSourceInfo > const & | essources () const |
void | eventSetupForInstanceAsync (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_ |
tbb::task_arena | taskArena_ |
Description: Manages a group of EventSetups which can share components
Usage: <usage>
Definition at line 80 of file EventSetupsController.h.
edm::eventsetup::EventSetupsController::EventSetupsController | ( | ) |
Definition at line 34 of file EventSetupsController.cc.
|
delete |
|
private |
Definition at line 357 of file EventSetupsController.cc.
References providers_.
Referenced by finishConfiguration().
void edm::eventsetup::EventSetupsController::clearComponents | ( | ) |
Definition at line 200 of file EventSetupsController.cc.
References esproducers_, and essources_.
Referenced by finishConfiguration().
bool edm::eventsetup::EventSetupsController::doWeNeedToWaitForIOVsToFinish | ( | IOVSyncValue const & | syncValue | ) | const |
Definition at line 131 of file EventSetupsController.cc.
References hasNonconcurrentFinder(), and providers_.
void edm::eventsetup::EventSetupsController::endIOVsAsync | ( | edm::WaitingTaskHolder | iEndTask | ) |
Definition at line 36 of file EventSetupsController.cc.
References eventSetupRecordIOVQueues_.
Referenced by edm::eventsetup::SynchronousEventSetupsController::~SynchronousEventSetupsController().
|
inline |
|
inline |
void edm::eventsetup::EventSetupsController::eventSetupForInstanceAsync | ( | IOVSyncValue const & | syncValue, |
WaitingTaskHolder const & | taskToStartAfterIOVInit, | ||
WaitingTaskList & | endIOVWaitingTasks, | ||
std::vector< std::shared_ptr< const EventSetupImpl >> & | eventSetupImpls | ||
) |
Definition at line 92 of file EventSetupsController.cc.
References eventSetupRecordIOVQueues_, finishConfiguration(), and providers_.
Referenced by edm::eventsetup::synchronousEventSetupForInstance().
void edm::eventsetup::EventSetupsController::finishConfiguration | ( | ) |
Definition at line 66 of file EventSetupsController.cc.
References checkESProducerSharing(), edm::eventsetup::NumberOfConcurrentIOVs::clear(), clearComponents(), edm::eventsetup::NumberOfConcurrentIOVs::fillRecordsNotAllowingConcurrentIOVs(), hasNonconcurrentFinder_, initializeEventSetupRecordIOVQueues(), mustFinishConfiguration_, numberOfConcurrentIOVs_, and providers_.
Referenced by eventSetupForInstanceAsync().
void edm::eventsetup::EventSetupsController::forceCacheClear | ( | ) |
std::shared_ptr< DataProxyProvider > edm::eventsetup::EventSetupsController::getESProducerAndRegisterProcess | ( | ParameterSet const & | pset, |
unsigned | subProcessIndex | ||
) |
Definition at line 148 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 339 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 174 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 395 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 239 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 264 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 314 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 289 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 205 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 42 of file EventSetupsController.cc.
References edm::eventsetup::fillEventSetupProvider(), edm::eventsetup::makeEventSetupProvider(), numberOfConcurrentIOVs_, providers_, edm::eventsetup::NumberOfConcurrentIOVs::readConfigurationParameters(), and taskArena_.
Referenced by edm::eventsetup::SynchronousEventSetupsController::makeProvider(), and 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 165 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 191 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 62 of file EventSetupsController.cc.
References runTheMatrix::nStreams, numberOfConcurrentIOVs_, and edm::eventsetup::NumberOfConcurrentIOVs::setMaxConcurrentIOVs().
|
private |
Definition at line 185 of file EventSetupsController.h.
Referenced by clearComponents(), esproducers(), getESProducerAndRegisterProcess(), getESProducerPSet(), isFirstMatch(), isLastMatch(), isMatchingESProducer(), lookForMatches(), and putESProducer().
|
private |
Definition at line 186 of file EventSetupsController.h.
Referenced by clearComponents(), essources(), getESSourceAndRegisterProcess(), isMatchingESSource(), and putESSource().
|
private |
Definition at line 173 of file EventSetupsController.h.
Referenced by endIOVsAsync(), eventSetupForInstanceAsync(), and initializeEventSetupRecordIOVQueues().
|
private |
Definition at line 188 of file EventSetupsController.h.
Referenced by finishConfiguration(), and hasNonconcurrentFinder().
|
private |
Definition at line 189 of file EventSetupsController.h.
Referenced by finishConfiguration(), and mustFinishConfiguration().
|
private |
Definition at line 169 of file EventSetupsController.h.
Referenced by finishConfiguration(), initializeEventSetupRecordIOVQueues(), makeProvider(), and setMaxConcurrentIOVs().
|
private |
Definition at line 168 of file EventSetupsController.h.
Referenced by checkESProducerSharing(), doWeNeedToWaitForIOVsToFinish(), eventSetupForInstanceAsync(), finishConfiguration(), forceCacheClear(), indexOfNextProcess(), initializeEventSetupRecordIOVQueues(), makeProvider(), and providers().
|
private |
Definition at line 167 of file EventSetupsController.h.
Referenced by makeProvider().