#include <PrincipalCache.h>
Public Types | |
enum | ProcessBlockType { ProcessBlockType::New, ProcessBlockType::Input } |
Private Member Functions | |
void | throwLumiMissing () const |
void | throwRunMissing () const |
Private Attributes | |
std::vector< std::shared_ptr< EventPrincipal > > | eventPrincipals_ |
std::unique_ptr< ProcessBlockPrincipal > | inputProcessBlockPrincipal_ |
ProcessHistoryID | inputProcessHistoryID_ |
LuminosityBlockNumber_t | lumi_ |
edm::ReusableObjectHolder< LuminosityBlockPrincipal > | lumiHolder_ |
std::unique_ptr< ProcessBlockPrincipal > | processBlockPrincipal_ |
ProcessHistoryRegistry const * | processHistoryRegistry_ |
ProcessHistoryID | reducedInputProcessHistoryID_ |
RunNumber_t | run_ |
std::shared_ptr< RunPrincipal > | runPrincipal_ |
Definition at line 48 of file PrincipalCache.h.
|
strong |
edm::PrincipalCache::PrincipalCache | ( | ) |
edm::PrincipalCache::~PrincipalCache | ( | ) |
Definition at line 15 of file PrincipalCache.cc.
|
default |
void edm::PrincipalCache::adjustEventsToNewProductRegistry | ( | std::shared_ptr< ProductRegistry const > | reg | ) |
Definition at line 127 of file PrincipalCache.cc.
References edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::adjustToNewProductRegistry(), cms::cuda::assert(), eventPrincipal(), and eventPrincipals_.
Referenced by edm::EventProcessor::readFile().
void edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition | ( | ) |
Definition at line 137 of file PrincipalCache.cc.
References lumiHolder_, eostools::move(), AlCaHLTBitMon_ParallelJobs::p, runPrincipal_, and groupFilesInBlocks::temp.
Referenced by edm::EventProcessor::readFile().
void edm::PrincipalCache::deleteRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 110 of file PrincipalCache.cc.
References Exception, edm::errors::LogicError, reducedInputProcessHistoryID_, writedatasetfile::run, run_, and runPrincipal_.
Referenced by edm::SubProcess::deleteRunFromCache(), edm::EventProcessor::deleteRunFromCache(), and edm::test::TestProcessor::endRun().
|
inline |
Definition at line 70 of file PrincipalCache.h.
References eventPrincipals_.
Referenced by adjustEventsToNewProductRegistry(), edm::EventProcessor::beginLumiAsync(), edm::test::TestProcessor::event(), edm::SubProcess::processAsync(), edm::EventProcessor::processEventAsyncImpl(), edm::EventProcessor::readEvent(), and edm::test::TestProcessor::testImpl().
std::shared_ptr< LuminosityBlockPrincipal > edm::PrincipalCache::getAvailableLumiPrincipalPtr | ( | ) |
Definition at line 50 of file PrincipalCache.cc.
References lumiHolder_.
Referenced by edm::test::TestProcessor::beginLuminosityBlock(), edm::SubProcess::doBeginLuminosityBlockAsync(), and edm::EventProcessor::readLuminosityBlock().
|
inline |
Definition at line 66 of file PrincipalCache.h.
References electrons_cff::bool, and runPrincipal_.
Referenced by edm::EventProcessor::readLuminosityBlock(), and edm::EventProcessor::readRun().
|
inline |
Definition at line 55 of file PrincipalCache.h.
References inputProcessBlockPrincipal_.
Referenced by edm::EventProcessor::inputProcessBlocks().
void edm::PrincipalCache::insert | ( | std::shared_ptr< EventPrincipal > | ep | ) |
Definition at line 104 of file PrincipalCache.cc.
References cms::cuda::assert(), SiStripBadComponentsDQMServiceTemplate_cfg::ep, and eventPrincipals_.
void edm::PrincipalCache::insert | ( | std::shared_ptr< RunPrincipal > | rp | ) |
Definition at line 82 of file PrincipalCache.cc.
References Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
void edm::PrincipalCache::insert | ( | std::unique_ptr< LuminosityBlockPrincipal > | lbp | ) |
void edm::PrincipalCache::insert | ( | std::unique_ptr< ProcessBlockPrincipal > | pb | ) |
Definition at line 96 of file PrincipalCache.cc.
References eostools::move(), and processBlockPrincipal_.
Referenced by edm::test::TestProcessor::beginRun(), edm::SubProcess::doBeginRunAsync(), edm::EventProcessor::init(), edm::EventProcessor::readRun(), edm::SubProcess::SubProcess(), and edm::test::TestProcessor::TestProcessor().
void edm::PrincipalCache::insertForInput | ( | std::unique_ptr< ProcessBlockPrincipal > | pb | ) |
Definition at line 98 of file PrincipalCache.cc.
References inputProcessBlockPrincipal_, and eostools::move().
Referenced by edm::EventProcessor::init(), and edm::SubProcess::SubProcess().
void edm::PrincipalCache::merge | ( | std::shared_ptr< RunAuxiliary > | aux, |
std::shared_ptr< ProductRegistry const > | reg | ||
) |
Definition at line 54 of file PrincipalCache.cc.
References cms::cuda::assert(), printConversionInfo::aux, Exception, inputProcessHistoryID_, edm::errors::LogicError, processHistoryRegistry_, reducedInputProcessHistoryID_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), run_, and runPrincipal_.
Referenced by edm::EventProcessor::readAndMergeRun().
void edm::PrincipalCache::preReadFile | ( | ) |
Definition at line 149 of file PrincipalCache.cc.
References runPrincipal_.
Referenced by edm::EventProcessor::readFile().
|
inline |
Definition at line 54 of file PrincipalCache.h.
References processBlockPrincipal_.
Referenced by edm::EventProcessor::beginProcessBlock(), edm::test::TestProcessor::beginProcessBlock(), edm::SubProcess::clearProcessBlockPrincipal(), edm::SubProcess::doEndProcessBlockAsync(), edm::EventProcessor::endProcessBlock(), edm::test::TestProcessor::endProcessBlock(), edm::test::TestProcessor::testBeginProcessBlockImpl(), edm::SubProcess::writeProcessBlockAsync(), and edm::EventProcessor::writeProcessBlockAsync().
|
inline |
Definition at line 58 of file PrincipalCache.h.
References Input, inputProcessBlockPrincipal_, and processBlockPrincipal_.
RunPrincipal & edm::PrincipalCache::runPrincipal | ( | ) | const |
RunPrincipal & edm::PrincipalCache::runPrincipal | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) | const |
Definition at line 21 of file PrincipalCache.cc.
References reducedInputProcessHistoryID_, writedatasetfile::run, run_, runPrincipal_, and throwRunMissing().
Referenced by edm::EventProcessor::beginRun(), edm::test::TestProcessor::beginRun(), edm::EventProcessor::endRun(), edm::EventProcessor::endUnfinishedRun(), edm::SubProcess::writeRunAsync(), and edm::EventProcessor::writeRunAsync().
std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr | ( | ) | const |
std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) | const |
Definition at line 28 of file PrincipalCache.cc.
References reducedInputProcessHistoryID_, writedatasetfile::run, run_, runPrincipal_, and throwRunMissing().
Referenced by edm::test::TestProcessor::beginLuminosityBlock(), edm::SubProcess::doBeginLuminosityBlockAsync(), edm::SubProcess::doBeginRunAsync(), edm::SubProcess::doEndRunAsync(), edm::SubProcess::doStreamBeginRunAsync(), edm::SubProcess::doStreamEndRunAsync(), edm::test::TestProcessor::endRun(), edm::EventProcessor::readAndMergeRun(), edm::EventProcessor::readLuminosityBlock(), and edm::test::TestProcessor::testBeginRunImpl().
void edm::PrincipalCache::setNumberOfConcurrentPrincipals | ( | PreallocationConfiguration const & | iConfig | ) |
Definition at line 17 of file PrincipalCache.cc.
References eventPrincipals_, and edm::PreallocationConfiguration::numberOfStreams().
Referenced by edm::EventProcessor::init(), edm::SubProcess::SubProcess(), and edm::test::TestProcessor::TestProcessor().
|
inline |
Definition at line 87 of file PrincipalCache.h.
References processHistoryRegistry_.
Referenced by edm::EventProcessor::init(), edm::SubProcess::SubProcess(), and edm::test::TestProcessor::TestProcessor().
|
private |
Definition at line 161 of file PrincipalCache.cc.
References Exception, and edm::errors::LogicError.
|
private |
Definition at line 155 of file PrincipalCache.cc.
References Exception, and edm::errors::LogicError.
Referenced by runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 101 of file PrincipalCache.h.
Referenced by adjustEventsToNewProductRegistry(), eventPrincipal(), insert(), and setNumberOfConcurrentPrincipals().
|
private |
Definition at line 98 of file PrincipalCache.h.
Referenced by inputProcessBlockPrincipal(), insertForInput(), and processBlockPrincipal().
|
private |
Definition at line 113 of file PrincipalCache.h.
|
private |
Definition at line 116 of file PrincipalCache.h.
|
private |
Definition at line 100 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), getAvailableLumiPrincipalPtr(), and insert().
|
private |
Definition at line 97 of file PrincipalCache.h.
Referenced by insert(), and processBlockPrincipal().
|
private |
Definition at line 104 of file PrincipalCache.h.
Referenced by insert(), merge(), and setProcessHistoryRegistry().
|
private |
Definition at line 114 of file PrincipalCache.h.
Referenced by deleteRun(), insert(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 115 of file PrincipalCache.h.
Referenced by deleteRun(), insert(), merge(), runPrincipal(), and runPrincipalPtr().
|
private |
Definition at line 99 of file PrincipalCache.h.
Referenced by adjustIndexesAfterProductRegistryAddition(), deleteRun(), hasRunPrincipal(), insert(), merge(), preReadFile(), runPrincipal(), and runPrincipalPtr().