#include <TestProcessor.h>
Public Types | |
using | Config = TestProcessorConfig |
Public Member Functions | |
std::string const & | labelOfTestModule () const |
void | setEventNumber (edm::EventNumber_t) |
void | setLuminosityBlockNumber (edm::LuminosityBlockNumber_t) |
void | setRunNumber (edm::RunNumber_t) |
template<typename... T> | |
edm::test::Event | test (T &&...iArgs) |
void | testBeginAndEndJobOnly () |
template<typename... T> | |
edm::test::LuminosityBlock | testBeginLuminosityBlock (edm::LuminosityBlockNumber_t iNum, T &&...iArgs) |
template<typename... T> | |
edm::test::Run | testBeginRun (edm::RunNumber_t iNum, T &&...iArgs) |
template<typename... T> | |
edm::test::LuminosityBlock | testEndLuminosityBlock (T &&...iArgs) |
template<typename... T> | |
edm::test::Run | testEndRun (T &&...iArgs) |
void | testLuminosityBlockWithNoEvents () |
TestProcessor (Config const &iConfig, ServiceToken iToken=ServiceToken()) | |
void | testRunWithNoLuminosityBlocks () |
~TestProcessor ()(false) | |
Private Member Functions | |
void | beginJob () |
void | beginLuminosityBlock () |
void | beginRun () |
void | endJob () |
std::shared_ptr< LuminosityBlockPrincipal > | endLuminosityBlock () |
std::shared_ptr< RunPrincipal > | endRun () |
void | event () |
const TestProcessor & | operator= (const TestProcessor &)=delete |
template<typename T > | |
void | put (std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut) |
template<typename T > | |
void | put (std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut) |
void | put (unsigned int, std::unique_ptr< WrapperBase >) |
void | setupProcessing () |
void | teardownProcessing () |
template<typename T , typename... U> | |
edm::test::LuminosityBlock | testBeginLuminosityBlockImpl (edm::LuminosityBlockNumber_t iNum, std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
edm::test::LuminosityBlock | testBeginLuminosityBlockImpl (edm::LuminosityBlockNumber_t) |
template<typename T , typename... U> | |
edm::test::Run | testBeginRunImpl (edm::RunNumber_t iNum, std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
edm::test::Run | testBeginRunImpl (edm::RunNumber_t) |
template<typename T , typename... U> | |
edm::test::LuminosityBlock | testEndLuminosityBlockImpl (std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
edm::test::LuminosityBlock | testEndLuminosityBlockImpl () |
template<typename T , typename... U> | |
edm::test::LuminosityBlock | testEndRunImpl (std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
edm::test::Run | testEndRunImpl () |
template<typename T , typename... U> | |
edm::test::Event | testImpl (std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
template<typename T , typename... U> | |
edm::test::Event | testImpl (std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&...iArgs) |
edm::test::Event | testImpl () |
TestProcessor (const TestProcessor &)=delete | |
Definition at line 154 of file TestProcessor.h.
Definition at line 156 of file TestProcessor.h.
TestProcessor::TestProcessor | ( | Config const & | iConfig, |
ServiceToken | iToken = ServiceToken() |
||
) |
Definition at line 84 of file TestProcessor.cc.
References edm::ScheduleItems::act_table_, act_table_, edm::ScheduleItems::actReg_, actReg_, edm::ScheduleItems::addCPRandTNS(), edm::ScheduleItems::branchIDListHelper(), branchIDListHelper_, trackingPlots::common, dataProducts_, edm::ProcessHistory::emplace_back(), esHelper_, esp_, espController_, edm::test::TestProcessorConfig::esProduceEntries(), edm::test::TestProcessorConfig::extraProcesses(), historyAppender_, edm::ParameterSet::id(), edm::InEvent, edm::BranchDescription::init(), edm::ScheduleItems::initMisc(), edm::ScheduleItems::initSchedule(), edm::ScheduleItems::initServices(), edm::PrincipalCache::insert(), mps_monitormerge::items, edm::serviceregistry::kOverlapIsError, labelOfTestModule_, eostools::move(), jets_cff::nThreads, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), AlCaHLTBitMon_ParallelJobs::p, PyBind11ProcessDesc::parameterSet(), preallocations_, edm::ScheduleItems::preg(), preg_, principalCache_, edm::ScheduleItems::processConfiguration(), processConfiguration_, processContext_, processHistoryRegistry_, modifiedElectrons_cfi::processName, edm::test::TestProcessorConfig::produceEntries(), edm::test::TestProcessorConfig::pythonConfiguration(), edm::ParameterSet::registerIt(), edm::ProcessHistoryRegistry::registerProcessHistory(), schedule_, serviceToken_, edm::PrincipalCache::setNumberOfConcurrentPrincipals(), edm::ProcessContext::setProcessConfiguration(), edm::PrincipalCache::setProcessHistoryRegistry(), AlCaHLTBitMon_QueryRunRegistry::string, edm::ScheduleItems::thinnedAssociationsHelper(), thinnedAssociationsHelper_, mitigatedMETSequence_cff::U, edm::validateTopLevelParameterSets(), and xstr.
TestProcessor::~TestProcessor | ( | ) |
Definition at line 195 of file TestProcessor.cc.
References teardownProcessing().
|
privatedelete |
|
private |
Definition at line 328 of file TestProcessor.cc.
References actReg_, beginJobCalled_, esp_, mps_fire::i, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), cmsPerfStripChart::operate(), preallocations_, preg_, processConfiguration_, processContext_, schedule_, and serviceToken_.
Referenced by setupProcessing(), testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), and testEndRunImpl().
|
private |
Definition at line 405 of file TestProcessor.cc.
References printConversionInfo::aux, beginLumiCalled_, esp_, espController_, eventNumber_, edm::PrincipalCache::getAvailableLumiPrincipalPtr(), lumiNumber_, lumiPrincipal_, edm::make_empty_waiting_task(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, runNumber_, edm::PrincipalCache::runPrincipalPtr(), schedule_, and serviceToken_.
Referenced by setupProcessing(), testBeginLuminosityBlockImpl(), and testEndLuminosityBlockImpl().
|
private |
Definition at line 356 of file TestProcessor.cc.
References printConversionInfo::aux, beginRunCalled_, edm::RunPrincipal::beginTime(), esp_, espController_, historyAppender_, edm::PrincipalCache::insert(), edm::make_empty_waiting_task(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, preg_, principalCache_, processConfiguration_, edm::RunPrincipal::run(), runNumber_, edm::PrincipalCache::runPrincipal(), schedule_, and serviceToken_.
Referenced by setupProcessing(), testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), and testEndRunImpl().
|
private |
Definition at line 613 of file TestProcessor.cc.
References actReg_, EnergyCorrector::c, edm::ExceptionCollector::call(), edm::ExceptionCollector::hasThrown(), mps_fire::i, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), preallocations_, edm::ExceptionCollector::rethrow(), schedule_, and serviceToken_.
Referenced by teardownProcessing().
|
private |
Definition at line 493 of file TestProcessor.cc.
References beginLumiCalled_, esp_, espController_, eventNumber_, lumiNumber_, lumiPrincipal_, edm::make_empty_waiting_task(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, runNumber_, schedule_, and serviceToken_.
Referenced by setLuminosityBlockNumber(), setRunNumber(), teardownProcessing(), testBeginLuminosityBlockImpl(), and testEndLuminosityBlockImpl().
|
private |
Definition at line 550 of file TestProcessor.cc.
References beginRunCalled_, edm::PrincipalCache::deleteRun(), edm::RunPrincipal::endTime(), esp_, espController_, edm::make_empty_waiting_task(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, edm::RunPrincipal::run(), runNumber_, edm::PrincipalCache::runPrincipalPtr(), schedule_, and serviceToken_.
Referenced by setRunNumber(), teardownProcessing(), testBeginRunImpl(), and testEndRunImpl().
|
private |
Definition at line 455 of file TestProcessor.cc.
References dataProducts_, esp_, eventNumber_, edm::PrincipalCache::eventPrincipal(), lumiNumber_, lumiPrincipal_, edm::make_empty_waiting_task(), eostools::move(), cmsPerfStripChart::operate(), AlCaHLTBitMon_ParallelJobs::p, principalCache_, processHistoryRegistry_, alignCSCRings::r, runNumber_, schedule_, and serviceToken_.
Referenced by testImpl().
|
inline |
Definition at line 214 of file TestProcessor.h.
References mitigatedMETSequence_cff::U.
|
privatedelete |
|
inlineprivate |
Definition at line 234 of file TestProcessor.h.
References eostools::move(), and put().
|
inlineprivate |
Definition at line 239 of file TestProcessor.h.
References eostools::move(), put(), and mitigatedMETSequence_cff::U.
|
private |
Definition at line 200 of file TestProcessor.cc.
References dataProducts_, Exception, and eostools::move().
void TestProcessor::setEventNumber | ( | edm::EventNumber_t | iEv | ) |
void TestProcessor::setLuminosityBlockNumber | ( | edm::LuminosityBlockNumber_t | iLumi | ) |
Definition at line 641 of file TestProcessor.cc.
References endLuminosityBlock(), and lumiNumber_.
void TestProcessor::setRunNumber | ( | edm::RunNumber_t | iRun | ) |
Definition at line 634 of file TestProcessor.cc.
References beginRunCalled_, endLuminosityBlock(), endRun(), and runNumber_.
|
private |
Definition at line 302 of file TestProcessor.cc.
References beginJob(), beginJobCalled_, beginLumiCalled_, beginLuminosityBlock(), beginRun(), and beginRunCalled_.
Referenced by testImpl().
|
private |
Definition at line 314 of file TestProcessor.cc.
References beginJobCalled_, beginLumiCalled_, beginRunCalled_, endJob(), endLuminosityBlock(), and endRun().
Referenced by ~TestProcessor().
|
inline |
Run the test. The function arguments are the data products to be added to the Event for this particular test.
Definition at line 165 of file TestProcessor.h.
Referenced by edmIntegrityCheck.IntegrityCheck::report(), edmIntegrityCheck.IntegrityCheck::structured(), and TEST_CASE().
|
inline |
Run only beginJob and endJob. Once this is used, you should not attempt to run any further tests. This simulates a problem happening early in the job which causes processing not to proceed.
Definition at line 190 of file TestProcessor.h.
References bk::beginJob().
Referenced by TEST_CASE().
|
inline |
Definition at line 170 of file TestProcessor.h.
|
inlineprivate |
Definition at line 248 of file TestProcessor.h.
References eostools::move(), put(), and mitigatedMETSequence_cff::U.
|
private |
Definition at line 223 of file TestProcessor.cc.
References beginJob(), beginJobCalled_, beginLumiCalled_, beginLuminosityBlock(), beginRun(), beginRunCalled_, endLuminosityBlock(), esHelper_, labelOfTestModule_, lumiNumber_, lumiPrincipal_, and processConfiguration_.
|
inline |
Definition at line 179 of file TestProcessor.h.
|
inlineprivate |
Definition at line 266 of file TestProcessor.h.
References eostools::move(), put(), and mitigatedMETSequence_cff::U.
|
private |
Definition at line 265 of file TestProcessor.cc.
References beginJob(), beginJobCalled_, beginRun(), beginRunCalled_, endRun(), esHelper_, labelOfTestModule_, principalCache_, processConfiguration_, runNumber_, and edm::PrincipalCache::runPrincipalPtr().
|
inline |
Definition at line 174 of file TestProcessor.h.
|
inlineprivate |
Definition at line 258 of file TestProcessor.h.
References eostools::move(), put(), and mitigatedMETSequence_cff::U.
|
private |
Definition at line 245 of file TestProcessor.cc.
References beginJob(), beginJobCalled_, beginLumiCalled_, beginLuminosityBlock(), beginRun(), beginRunCalled_, endLuminosityBlock(), esHelper_, labelOfTestModule_, eostools::move(), and processConfiguration_.
|
inline |
Definition at line 183 of file TestProcessor.h.
|
inlineprivate |
Definition at line 274 of file TestProcessor.h.
References bk::beginJob(), Ecal2004TBTDCRanges_v1_cff::endRun, event(), eostools::move(), and put().
|
private |
Definition at line 285 of file TestProcessor.cc.
References beginJob(), beginJobCalled_, beginRun(), beginRunCalled_, endRun(), esHelper_, labelOfTestModule_, and processConfiguration_.
|
inlineprivate |
Definition at line 222 of file TestProcessor.h.
References eostools::move(), put(), and mitigatedMETSequence_cff::U.
|
inlineprivate |
Definition at line 228 of file TestProcessor.h.
References eostools::move(), and put().
|
private |
Definition at line 209 of file TestProcessor.cc.
References esHelper_, event(), edm::PrincipalCache::eventPrincipal(), labelOfTestModule_, principalCache_, processConfiguration_, mps_fire::result, schedule_, and setupProcessing().
|
inline |
Definition at line 202 of file TestProcessor.h.
References bk::beginJob(), and Ecal2004TBTDCRanges_v1_cff::endRun.
Referenced by TEST_CASE().
|
inline |
Definition at line 195 of file TestProcessor.h.
References bk::beginJob(), and Ecal2004TBTDCRanges_v1_cff::endRun.
Referenced by TEST_CASE().
|
private |
Definition at line 303 of file TestProcessor.h.
Referenced by TestProcessor().
|
private |
Definition at line 294 of file TestProcessor.h.
Referenced by beginJob(), endJob(), and TestProcessor().
|
private |
Definition at line 322 of file TestProcessor.h.
Referenced by beginJob(), setupProcessing(), teardownProcessing(), testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), and testEndRunImpl().
|
private |
Definition at line 324 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), setupProcessing(), teardownProcessing(), testBeginLuminosityBlockImpl(), and testEndLuminosityBlockImpl().
|
private |
Definition at line 323 of file TestProcessor.h.
Referenced by beginRun(), endRun(), setRunNumber(), setupProcessing(), teardownProcessing(), testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), and testEndRunImpl().
|
private |
Definition at line 296 of file TestProcessor.h.
Referenced by TestProcessor().
|
private |
Definition at line 317 of file TestProcessor.h.
Referenced by event(), put(), and TestProcessor().
|
private |
Definition at line 301 of file TestProcessor.h.
Referenced by testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), testEndRunImpl(), testImpl(), and TestProcessor().
|
private |
Definition at line 300 of file TestProcessor.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), endLuminosityBlock(), endRun(), event(), and TestProcessor().
|
private |
Definition at line 299 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), beginRun(), endLuminosityBlock(), endRun(), and TestProcessor().
|
private |
Definition at line 321 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), event(), and setEventNumber().
|
private |
Definition at line 308 of file TestProcessor.h.
Referenced by beginRun(), and TestProcessor().
|
private |
Definition at line 293 of file TestProcessor.h.
Referenced by testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), testEndRunImpl(), testImpl(), and TestProcessor().
|
private |
Definition at line 320 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), event(), setLuminosityBlockNumber(), and testBeginLuminosityBlockImpl().
|
private |
Definition at line 315 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), event(), and testBeginLuminosityBlockImpl().
|
private |
Definition at line 313 of file TestProcessor.h.
|
private |
Definition at line 311 of file TestProcessor.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), endJob(), endLuminosityBlock(), endRun(), and TestProcessor().
|
private |
Definition at line 295 of file TestProcessor.h.
Referenced by beginJob(), beginRun(), and TestProcessor().
|
private |
Definition at line 310 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), beginRun(), endRun(), event(), testBeginRunImpl(), testImpl(), and TestProcessor().
|
private |
Definition at line 304 of file TestProcessor.h.
Referenced by beginJob(), beginRun(), testBeginLuminosityBlockImpl(), testBeginRunImpl(), testEndLuminosityBlockImpl(), testEndRunImpl(), testImpl(), and TestProcessor().
|
private |
Definition at line 305 of file TestProcessor.h.
Referenced by beginJob(), and TestProcessor().
|
private |
Definition at line 307 of file TestProcessor.h.
Referenced by event(), and TestProcessor().
|
private |
Definition at line 319 of file TestProcessor.h.
Referenced by beginLuminosityBlock(), beginRun(), endLuminosityBlock(), endRun(), event(), setRunNumber(), and testBeginRunImpl().
|
private |
Definition at line 314 of file TestProcessor.h.
Referenced by Config.Process::_insertPaths(), Config.Process::_replaceInSchedule(), beginJob(), beginLuminosityBlock(), beginRun(), Config.Process::dumpPython(), endJob(), endLuminosityBlock(), endRun(), event(), Config.Process::prune(), Config.Process::resolve(), testImpl(), and TestProcessor().
|
private |
Definition at line 298 of file TestProcessor.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), endJob(), endLuminosityBlock(), endRun(), event(), and TestProcessor().
|
private |
Definition at line 297 of file TestProcessor.h.
Referenced by TestProcessor().