#include <EventProcessor.h>
Public Member Functions | |
virtual bool | alreadyHandlingException () const |
void | beginJob () |
virtual void | beginLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | beginRun (statemachine::Run const &run) |
void | clearCounters () |
Clears counters used by trigger report. More... | |
virtual void | closeInputFile (bool cleaningUpAfterException) |
virtual void | closeOutputFiles () |
virtual void | deleteLumiFromCache (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | deleteRunFromCache (statemachine::Run const &run) |
virtual void | doErrorStuff () |
void | enableEndPaths (bool active) |
void | endJob () |
virtual void | endLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi, bool cleaningUpAfterException) |
virtual bool | endOfLoop () |
bool | endPathsEnabled () const |
virtual void | endRun (statemachine::Run const &run, bool cleaningUpAfterException) |
EventProcessor (std::string const &config, ServiceToken const &token=ServiceToken(), serviceregistry::ServiceLegacy=serviceregistry::kOverlapIsError, std::vector< std::string > const &defaultServices=std::vector< std::string >(), std::vector< std::string > const &forcedServices=std::vector< std::string >()) | |
EventProcessor (std::string const &config, std::vector< std::string > const &defaultServices, std::vector< std::string > const &forcedServices=std::vector< std::string >()) | |
EventProcessor (boost::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy legacy) | |
EventProcessor (std::string const &config, bool isPython) | |
meant for unit tests More... | |
EventProcessor (EventProcessor const &)=delete | |
bool | forkProcess (std::string const &jobReportFile) |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
ServiceToken | getToken () |
void | getTriggerReport (TriggerReport &rep) const |
virtual void | openOutputFiles () |
EventProcessor & | operator= (EventProcessor const &)=delete |
virtual void | prepareForNextLoop () |
virtual int | readAndMergeLumi () |
virtual statemachine::Run | readAndMergeRun () |
virtual void | readAndProcessEvent () |
virtual void | readFile () |
virtual int | readLuminosityBlock () |
virtual statemachine::Run | readRun () |
virtual void | respondToCloseInputFile () |
virtual void | respondToOpenInputFile () |
virtual void | rewindInput () |
StatusCode | run () |
virtual StatusCode | runToCompletion () |
virtual void | setExceptionMessageFiles (std::string &message) |
virtual void | setExceptionMessageLumis (std::string &message) |
virtual void | setExceptionMessageRuns (std::string &message) |
virtual bool | shouldWeCloseOutput () const |
virtual bool | shouldWeStop () const |
virtual void | startingNewLoop () |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
virtual void | writeLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | writeRun (statemachine::Run const &run) |
~EventProcessor () | |
Public Member Functions inherited from edm::IEventProcessor | |
virtual | ~IEventProcessor () |
Private Types | |
typedef std::set< std::pair < std::string, std::string > > | ExcludedData |
typedef std::map< std::string, ExcludedData > | ExcludedDataMap |
Private Member Functions | |
bool | checkForAsyncStopRequest (StatusCode &) |
std::auto_ptr < statemachine::Machine > | createStateMachine () |
bool | hasSubProcess () const |
void | init (boost::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy) |
void | possiblyContinueAfterForkChildFailure () |
void | processEvent (unsigned int iStreamIndex) |
void | readEvent (unsigned int iStreamIndex) |
void | setupSignal () |
void | terminateMachine (std::auto_ptr< statemachine::Machine > &) |
Additional Inherited Members | |
Public Types inherited from edm::IEventProcessor | |
enum | Status { epSuccess =0, epException =1, epOther =2, epSignal =3, epInputComplete =4, epTimedOut =5, epCountComplete =6 } |
typedef Status | StatusCode |
Definition at line 56 of file EventProcessor.h.
|
private |
Definition at line 290 of file EventProcessor.h.
|
private |
Definition at line 291 of file EventProcessor.h.
|
explicit |
Definition at line 202 of file EventProcessor.cc.
References init(), edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
std::vector< std::string > const & | defaultServices, | ||
std::vector< std::string > const & | forcedServices = std::vector<std::string>() |
||
) |
Definition at line 244 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::EventProcessor | ( | boost::shared_ptr< ProcessDesc > & | processDesc, |
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | legacy | ||
) |
Definition at line 287 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 328 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 538 of file EventProcessor.cc.
References actReg_, edm::ParentageRegistry::clear(), edm::pset::Registry::clear(), esp_, espController_, getToken(), input_, edm::ParentageRegistry::instance(), edm::pset::Registry::instance(), looper_, schedule_, and subProcess_.
|
delete |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1881 of file EventProcessor.cc.
void edm::EventProcessor::beginJob | ( | void | ) |
This should be called before the first call to 'run' If this is not called in time, it will automatically be called the first time 'run' is called
Definition at line 557 of file EventProcessor.cc.
References actReg_, cms::Exception::addContext(), edm::convertException::badAllocToEDM(), bk::beginJob(), beginJobCalled_, trackerHits::c, edm::convertException::charPtrToEDM(), alignCSCRings::e, cppFunctionSkipper::exception, hasSubProcess(), i, input_, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), cmsPerfStripChart::operate(), preallocations_, preg_, alignCSCRings::s, schedule_, serviceToken_, edm::convertException::stdToEDM(), AlCaHLTBitMon_QueryRunRegistry::string, edm::convertException::stringToEDM(), subProcess_, and edm::convertException::unknownToEDM().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1619 of file EventProcessor.cc.
References edm::LuminosityBlockPrincipal::beginTime(), FDEBUG, i, edm::Service< T >::isAvailable(), edm::LuminosityBlockPrincipal::luminosityBlock(), and edm::LuminosityBlockPrincipal::run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1544 of file EventProcessor.cc.
References edm::RunPrincipal::beginTime(), FDEBUG, i, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), and statemachine::Run::runNumber().
|
private |
Definition at line 1244 of file EventProcessor.cc.
References edm::shutdown_flag.
void edm::EventProcessor::clearCounters | ( | ) |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1455 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1470 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1213 of file EventProcessor.cc.
References edm::errors::Configuration, statemachine::doNotHandleEmptyRunsAndLumis, edm::hlt::Exception, dtDQMClient_cfg::fileMode, statemachine::FULLMERGE, statemachine::handleEmptyRuns, statemachine::handleEmptyRunsAndLumis, statemachine::NOMERGE, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1770 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1758 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1533 of file EventProcessor.cc.
References FDEBUG.
void edm::EventProcessor::enableEndPaths | ( | bool | active | ) |
Turn end_paths "off" if "active" is false; turn end_paths "on" if "active" is true.
Definition at line 1192 of file EventProcessor.cc.
void edm::EventProcessor::endJob | ( | void | ) |
This should be called before the EventProcessor is destroyed throws if any module's endJob throws an exception.
Definition at line 612 of file EventProcessor.cc.
References actReg_, trackerHits::c, edm::ExceptionCollector::call(), edm::SubProcess::doEndJob(), edm::InputSource::doEndJob(), edm::EDLooperBase::endOfJob(), hasSubProcess(), edm::ExceptionCollector::hasThrown(), i, input_, looper_, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), preallocations_, edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and subProcess_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1660 of file EventProcessor.cc.
References edm::LuminosityBlockPrincipal::endTime(), FDEBUG, i, edm::LuminosityBlockPrincipal::luminosityBlock(), and edm::LuminosityBlockPrincipal::run().
Referenced by Types.EventRange::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1504 of file EventProcessor.cc.
References FDEBUG, and ntuplemaker::status.
bool edm::EventProcessor::endPathsEnabled | ( | ) | const |
Return true if end_paths are active, and false if they are inactive.
Definition at line 1197 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1586 of file EventProcessor.cc.
References edm::RunPrincipal::endTime(), FDEBUG, i, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), and statemachine::Run::runNumber().
bool edm::EventProcessor::forkProcess | ( | std::string const & | jobReportFile | ) |
Definition at line 871 of file EventProcessor.cc.
References bk::beginJob(), edm::eventsetup::EventSetupRecord::doGet(), alignCSCRings::e, edm::hlt::Exception, cmsRelvalreport::exit, edm::EventSetup::fillAvailableRecordKeys(), edm::eventsetup::EventSetupRecord::fillRegisteredDataKeys(), edm::EventSetup::find(), edm::eventsetup::EventSetupRecord::find(), edm::installCustomHandler(), NULL, O_NONBLOCK, cmsPerfStripChart::operate(), or, pipe::pipe(), edm::shutdown_flag, relativeConstraints::value, and cms::Exception::what().
std::vector< ModuleDescription const * > edm::EventProcessor::getAllModuleDescriptions | ( | ) | const |
Return a vector allowing const access to all the ModuleDescriptions for this EventProccessor. *** N.B. *** Ownership of the ModuleDescriptions is not *** passed to the caller. Do not call delete on these *** pointers!
Definition at line 1172 of file EventProcessor.cc.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 642 of file EventProcessor.cc.
References serviceToken_.
Referenced by ~EventProcessor().
void edm::EventProcessor::getTriggerReport | ( | TriggerReport & | rep | ) | const |
Return the trigger report information on paths, modules-in-path, modules-in-endpath, and modules.
Definition at line 1202 of file EventProcessor.cc.
|
inlineprivate |
Definition at line 227 of file EventProcessor.h.
References subProcess_.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 375 of file EventProcessor.cc.
References edm::ScheduleItems::act_table_, act_table_, edm::ScheduleItems::actReg_, actReg_, edm::ScheduleItems::addCPRandTNS(), edm::ScheduleItems::branchIDListHelper_, branchIDListHelper_, continueAfterChildFailure_, emptyRunLumiMode_, esp_, espController_, eventSetupDataToExcludeFromPrefetching_, FDEBUG, fileMode_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), edm::ParameterSet::getUntrackedParameterSetVector(), historyAppender_, getHLTprescales::index, edm::ScheduleItems::initMisc(), edm::ScheduleItems::initSchedule(), edm::ScheduleItems::initServices(), input_, edm::eventsetup::heterocontainer::insert(), edm::PrincipalCache::insert(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), edm::serviceregistry::kConfigurationOverrides, looper_, edm::makeInput(), numberOfForkedChildren_, numberOfSequentialEventsPerChild_, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), edm::parameterSet(), edm::popSubProcessParameterSet(), preallocations_, edm::ScheduleItems::preg_, preg_, principalCache_, edm::ScheduleItems::processConfiguration_, processConfiguration_, processContext_, edm::ParameterSet::registerIt(), schedule_, serviceToken_, setCpuAffinity_, edm::PrincipalCache::setNumberOfConcurrentPrincipals(), edm::ProcessContext::setProcessConfiguration(), edm::PrincipalCache::setProcessHistoryRegistry(), edm::IllegalParameters::setThrowAnException(), AlCaHLTBitMon_QueryRunRegistry::string, and subProcess_.
Referenced by EventProcessor().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1462 of file EventProcessor.cc.
References FDEBUG.
|
delete |
|
private |
Definition at line 855 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1523 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1812 of file EventProcessor.cc.
References FDEBUG, edm::ProcessingController::lastOperationSucceeded(), edm::ProcessingController::requestedTransition(), edm::ProcessingController::setLastOperationSucceeded(), edm::ProcessingController::specifiedEventTransition(), ntuplemaker::status, and summarizeEdmComparisonLogfiles::succeeded.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1746 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1713 of file EventProcessor.cc.
References PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1776 of file EventProcessor.cc.
References processEvent().
|
private |
Definition at line 1805 of file EventProcessor.cc.
References event(), and FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1442 of file EventProcessor.cc.
References FDEBUG, and findQualityFiles::size.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), Vispa.Main.TabController.TabController::open(), and Vispa.Main.TabController.TabController::refresh().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1721 of file EventProcessor.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1695 of file EventProcessor.cc.
References edm::hlt::Exception, edm::errors::LogicError, and PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1486 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1478 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1517 of file EventProcessor.cc.
References FDEBUG.
|
inline |
Definition at line 299 of file EventProcessor.h.
References runToCompletion().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1257 of file EventProcessor.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::alreadyPrinted(), edm::convertException::badAllocToEDM(), bk::beginJob(), trackerHits::c, edm::convertException::charPtrToEDM(), alignCSCRings::e, cppFunctionSkipper::exception, edm::hlt::Exception, FDEBUG, edm::errors::LogicError, cmsPerfStripChart::operate(), runEdmFileComparison::returnCode, alignCSCRings::s, findQualityFiles::size, edm::convertException::stdToEDM(), AlCaHLTBitMon_QueryRunRegistry::string, edm::convertException::stringToEDM(), and edm::convertException::unknownToEDM().
Referenced by run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1869 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1877 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1873 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
private |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1528 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1863 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1494 of file EventProcessor.cc.
References FDEBUG.
|
private |
int edm::EventProcessor::totalEvents | ( | ) | const |
Return the number of events this EventProcessor has tried to process (inclues both successes and failures, including failures due to exceptions during processing).
Definition at line 1177 of file EventProcessor.cc.
int edm::EventProcessor::totalEventsFailed | ( | ) | const |
Return the number of events that have not passed any trigger. (N.B. totalEventsFailed() + totalEventsPassed() == totalEvents()
Definition at line 1187 of file EventProcessor.cc.
int edm::EventProcessor::totalEventsPassed | ( | ) | const |
Return the number of events processed by this EventProcessor which have been passed by one or more trigger paths.
Definition at line 1182 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1764 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1752 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
private |
Definition at line 255 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 248 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 274 of file EventProcessor.h.
|
private |
Definition at line 286 of file EventProcessor.h.
|
private |
Definition at line 288 of file EventProcessor.h.
|
private |
Definition at line 266 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 250 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 282 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 270 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 254 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 253 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 292 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 271 of file EventProcessor.h.
|
private |
Definition at line 273 of file EventProcessor.h.
|
private |
Definition at line 272 of file EventProcessor.h.
|
private |
Definition at line 262 of file EventProcessor.h.
|
private |
Definition at line 269 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 277 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 275 of file EventProcessor.h.
|
private |
Definition at line 260 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 252 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 263 of file EventProcessor.h.
Referenced by Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 276 of file EventProcessor.h.
|
private |
Definition at line 287 of file EventProcessor.h.
|
private |
Definition at line 279 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 280 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 284 of file EventProcessor.h.
Referenced by beginJob(), endJob(), and init().
|
private |
Definition at line 249 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 265 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 256 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 257 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 258 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), beginJob(), endJob(), init(), Config.Process::prune(), and ~EventProcessor().
|
private |
Definition at line 251 of file EventProcessor.h.
Referenced by beginJob(), endJob(), getToken(), and init().
|
private |
Definition at line 281 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 267 of file EventProcessor.h.
|
private |
Definition at line 268 of file EventProcessor.h.
|
private |
Definition at line 259 of file EventProcessor.h.
Referenced by beginJob(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), hasSubProcess(), init(), and ~EventProcessor().