#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_ |
edm::ReusableObjectHolder< LuminosityBlockPrincipal > | lumiHolder_ |
ProcessHistoryRegistry const * | processHistoryRegistry_ |
ProcessHistoryID | reducedInputProcessHistoryID_ |
RunNumber_t | run_ |
std::shared_ptr< RunPrincipal > | runPrincipal_ |
Definition at line 47 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.
|
default |
void edm::PrincipalCache::adjustEventsToNewProductRegistry | ( | std::shared_ptr< ProductRegistry const > | reg | ) |
Definition at line 138 of file PrincipalCache.cc.
References edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::adjustToNewProductRegistry(), eventPrincipal(), and eventPrincipals_.
Referenced by eventPrincipal(), and edm::EventProcessor::readFile().
void edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition | ( | ) |
Definition at line 148 of file PrincipalCache.cc.
References lumiHolder_, eostools::move(), AlCaHLTBitMon_ParallelJobs::p, runPrincipal_, and groupFilesInBlocks::temp.
Referenced by eventPrincipal(), and edm::EventProcessor::readFile().
void edm::PrincipalCache::deleteRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 119 of file PrincipalCache.cc.
References Exception, edm::errors::LogicError, reducedInputProcessHistoryID_, run_, and runPrincipal_.
Referenced by edm::SubProcess::deleteRunFromCache(), edm::EventProcessor::deleteRunFromCache(), and eventPrincipal().
|
inline |
Definition at line 62 of file PrincipalCache.h.
References adjustEventsToNewProductRegistry(), adjustIndexesAfterProductRegistryAddition(), printConversionInfo::aux, deleteRun(), eventPrincipals_, insert(), merge(), and setNumberOfConcurrentPrincipals().
Referenced by adjustEventsToNewProductRegistry(), edm::EventProcessor::beginLumiAsync(), edm::SubProcess::processAsync(), edm::EventProcessor::processEventAsyncImpl(), and edm::EventProcessor::readEvent().
std::shared_ptr< LuminosityBlockPrincipal > edm::PrincipalCache::getAvailableLumiPrincipalPtr | ( | ) |
Definition at line 62 of file PrincipalCache.cc.
References lumiHolder_.
Referenced by edm::SubProcess::doBeginLuminosityBlockAsync(), hasRunPrincipal(), and edm::EventProcessor::readLuminosityBlock().
|
inline |
Definition at line 58 of file PrincipalCache.h.
References electrons_cff::bool, getAvailableLumiPrincipalPtr(), and runPrincipal_.
Referenced by edm::EventProcessor::readLuminosityBlock(), and edm::EventProcessor::readRun().
void edm::PrincipalCache::insert | ( | std::shared_ptr< RunPrincipal > | rp | ) |
Definition at line 94 of file PrincipalCache.cc.
References Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
Referenced by edm::SubProcess::doBeginRunAsync(), eventPrincipal(), edm::EventProcessor::init(), edm::EventProcessor::readRun(), and edm::SubProcess::SubProcess().
void edm::PrincipalCache::insert | ( | std::unique_ptr< LuminosityBlockPrincipal > | lbp | ) |
Definition at line 109 of file PrincipalCache.cc.
References lumiHolder_, and eostools::move().
void edm::PrincipalCache::insert | ( | std::shared_ptr< EventPrincipal > | ep | ) |
Definition at line 113 of file PrincipalCache.cc.
References eventPrincipals_.
void edm::PrincipalCache::merge | ( | std::shared_ptr< RunAuxiliary > | aux, |
std::shared_ptr< ProductRegistry const > | reg | ||
) |
Definition at line 64 of file PrincipalCache.cc.
References Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
Referenced by eventPrincipal(), and edm::EventProcessor::readAndMergeRun().
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().
Referenced by edm::EventProcessor::beginRun(), edm::EventProcessor::endRun(), edm::SubProcess::writeRunAsync(), and edm::EventProcessor::writeRunAsync().
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().
Referenced by edm::SubProcess::doBeginLuminosityBlockAsync(), edm::SubProcess::doBeginRunAsync(), edm::SubProcess::doEndRunAsync(), edm::SubProcess::doStreamBeginRunAsync(), edm::SubProcess::doStreamEndRunAsync(), edm::EventProcessor::readAndMergeRun(), and edm::EventProcessor::readLuminosityBlock().
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 eventPrincipal(), edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
|
inline |
Definition at line 77 of file PrincipalCache.h.
References processHistoryRegistry_, throwLumiMissing(), and throwRunMissing().
Referenced by edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
|
private |
Definition at line 169 of file PrincipalCache.cc.
References Exception, and edm::errors::LogicError.
Referenced by setProcessHistoryRegistry().
|
private |
Definition at line 161 of file PrincipalCache.cc.
References Exception, and edm::errors::LogicError.
Referenced by runPrincipal(), runPrincipalPtr(), and setProcessHistoryRegistry().
|
private |
Definition at line 88 of file PrincipalCache.h.
Referenced by adjustEventsToNewProductRegistry(), eventPrincipal(), insert(), and setNumberOfConcurrentPrincipals().
|
private |
Definition at line 100 of file PrincipalCache.h.
|
private |
Definition at line 103 of file PrincipalCache.h.
|
private |
Definition at line 87 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), getAvailableLumiPrincipalPtr(), and insert().
|
private |
Definition at line 91 of file PrincipalCache.h.
Referenced by insert(), merge(), and setProcessHistoryRegistry().
|
private |
Definition at line 101 of file PrincipalCache.h.
Referenced by deleteRun(), insert(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 102 of file PrincipalCache.h.
Referenced by deleteRun(), insert(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 86 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), deleteRun(), hasRunPrincipal(), insert(), merge(), runPrincipal(), and runPrincipalPtr().