#include <PrincipalCache.h>
Private Member Functions | |
void | throwLumiMissing () const |
void | throwRunMissing () const |
Private Attributes | |
std::vector< std::shared_ptr < EventPrincipal > > | eventPrincipals_ |
ProcessHistoryID | inputProcessHistoryID_ |
LuminosityBlockNumber_t | lumi_ |
std::shared_ptr < LuminosityBlockPrincipal > | lumiPrincipal_ |
ProcessHistoryRegistry const * | processHistoryRegistry_ |
ProcessHistoryID | reducedInputProcessHistoryID_ |
RunNumber_t | run_ |
std::shared_ptr< RunPrincipal > | runPrincipal_ |
Definition at line 45 of file PrincipalCache.h.
edm::PrincipalCache::PrincipalCache | ( | ) |
Definition at line 12 of file PrincipalCache.cc.
edm::PrincipalCache::~PrincipalCache | ( | ) |
Definition at line 17 of file PrincipalCache.cc.
void edm::PrincipalCache::adjustEventsToNewProductRegistry | ( | std::shared_ptr< ProductRegistry const > | reg | ) |
Definition at line 255 of file PrincipalCache.cc.
References edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::adjustToNewProductRegistry(), assert(), eventPrincipal(), and eventPrincipals_.
void edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition | ( | ) |
Definition at line 265 of file PrincipalCache.cc.
References lumiPrincipal_, and runPrincipal_.
void edm::PrincipalCache::deleteLumi | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 235 of file PrincipalCache.cc.
References edm::hlt::Exception, edm::errors::LogicError, lumi_, lumiPrincipal_, reducedInputProcessHistoryID_, and run_.
void edm::PrincipalCache::deleteRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 216 of file PrincipalCache.cc.
References edm::hlt::Exception, edm::errors::LogicError, reducedInputProcessHistoryID_, run_, and runPrincipal_.
|
inline |
Definition at line 63 of file PrincipalCache.h.
References eventPrincipals_.
Referenced by adjustEventsToNewProductRegistry().
|
inline |
Definition at line 61 of file PrincipalCache.h.
References lumiPrincipal_.
|
inline |
Definition at line 55 of file PrincipalCache.h.
References runPrincipal_.
void edm::PrincipalCache::insert | ( | std::shared_ptr< RunPrincipal > | rp | ) |
Definition at line 160 of file PrincipalCache.cc.
References edm::hlt::Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
Referenced by BeautifulSoup.PageElement::_invert(), edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
void edm::PrincipalCache::insert | ( | std::shared_ptr< LuminosityBlockPrincipal > | lbp | ) |
Definition at line 175 of file PrincipalCache.cc.
References edm::hlt::Exception, inputProcessHistoryID_, edm::errors::LogicError, lumi_, lumiPrincipal_, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
Referenced by BeautifulSoup.PageElement::_invert().
void edm::PrincipalCache::insert | ( | std::shared_ptr< EventPrincipal > | ep | ) |
Definition at line 210 of file PrincipalCache.cc.
References assert(), and eventPrincipals_.
Referenced by BeautifulSoup.PageElement::_invert().
LuminosityBlockPrincipal & edm::PrincipalCache::lumiPrincipal | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi | ||
) | const |
Definition at line 62 of file PrincipalCache.cc.
References lumi_, lumiPrincipal_, reducedInputProcessHistoryID_, run_, and throwLumiMissing().
LuminosityBlockPrincipal & edm::PrincipalCache::lumiPrincipal | ( | ) | const |
Definition at line 84 of file PrincipalCache.cc.
References lumiPrincipal_, and throwLumiMissing().
std::shared_ptr< LuminosityBlockPrincipal > const & edm::PrincipalCache::lumiPrincipalPtr | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi | ||
) | const |
Definition at line 73 of file PrincipalCache.cc.
References lumi_, lumiPrincipal_, reducedInputProcessHistoryID_, run_, and throwLumiMissing().
std::shared_ptr< LuminosityBlockPrincipal > const & edm::PrincipalCache::lumiPrincipalPtr | ( | ) | const |
Definition at line 92 of file PrincipalCache.cc.
References lumiPrincipal_, and throwLumiMissing().
void edm::PrincipalCache::merge | ( | std::shared_ptr< RunAuxiliary > | aux, |
std::shared_ptr< ProductRegistry const > | reg | ||
) |
Definition at line 99 of file PrincipalCache.cc.
References assert(), edm::hlt::Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
void edm::PrincipalCache::merge | ( | std::shared_ptr< LuminosityBlockAuxiliary > | aux, |
std::shared_ptr< ProductRegistry const > | reg | ||
) |
Definition at line 129 of file PrincipalCache.cc.
References assert(), edm::hlt::Exception, inputProcessHistoryID_, edm::errors::LogicError, lumi_, lumiPrincipal_, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), and run_.
RunPrincipal & edm::PrincipalCache::runPrincipal | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) | const |
Definition at line 26 of file PrincipalCache.cc.
References reducedInputProcessHistoryID_, run_, runPrincipal_, and throwRunMissing().
RunPrincipal & edm::PrincipalCache::runPrincipal | ( | ) | const |
Definition at line 46 of file PrincipalCache.cc.
References runPrincipal_, and throwRunMissing().
std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) | const |
Definition at line 36 of file PrincipalCache.cc.
References reducedInputProcessHistoryID_, run_, runPrincipal_, and throwRunMissing().
std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr | ( | ) | const |
Definition at line 54 of file PrincipalCache.cc.
References runPrincipal_, and throwRunMissing().
void edm::PrincipalCache::setNumberOfConcurrentPrincipals | ( | PreallocationConfiguration const & | iConfig | ) |
Definition at line 20 of file PrincipalCache.cc.
References eventPrincipals_, and edm::PreallocationConfiguration::numberOfStreams().
Referenced by edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
|
inline |
Definition at line 80 of file PrincipalCache.h.
References processHistoryRegistry_.
Referenced by edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
|
private |
Definition at line 283 of file PrincipalCache.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by lumiPrincipal(), and lumiPrincipalPtr().
|
private |
Definition at line 275 of file PrincipalCache.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 91 of file PrincipalCache.h.
Referenced by adjustEventsToNewProductRegistry(), eventPrincipal(), insert(), and setNumberOfConcurrentPrincipals().
|
private |
Definition at line 103 of file PrincipalCache.h.
|
private |
Definition at line 106 of file PrincipalCache.h.
Referenced by deleteLumi(), insert(), lumiPrincipal(), lumiPrincipalPtr(), and merge().
|
private |
Definition at line 90 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), deleteLumi(), hasLumiPrincipal(), insert(), lumiPrincipal(), lumiPrincipalPtr(), and merge().
|
private |
Definition at line 94 of file PrincipalCache.h.
Referenced by insert(), merge(), and setProcessHistoryRegistry().
|
private |
Definition at line 104 of file PrincipalCache.h.
Referenced by deleteLumi(), deleteRun(), insert(), lumiPrincipal(), lumiPrincipalPtr(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 105 of file PrincipalCache.h.
Referenced by deleteLumi(), deleteRun(), insert(), lumiPrincipal(), lumiPrincipalPtr(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 89 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), deleteRun(), hasRunPrincipal(), insert(), merge(), runPrincipal(), and runPrincipalPtr().