#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 (std::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 (std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy) |
void | possiblyContinueAfterForkChildFailure () |
void | processEvent (unsigned int iStreamIndex) |
void | processEventsForStreamAsync (unsigned int iStreamIndex, std::atomic< bool > *finishedProcessingEvents) |
void | readEvent (unsigned int iStreamIndex) |
void | setupSignal () |
void | terminateMachine (std::auto_ptr< statemachine::Machine > &) |
Friends | |
class | StreamProcessingTask |
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 60 of file EventProcessor.h.
|
private |
Definition at line 306 of file EventProcessor.h.
|
private |
Definition at line 307 of file EventProcessor.h.
|
explicit |
Definition at line 216 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 259 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::EventProcessor | ( | std::shared_ptr< ProcessDesc > & | processDesc, |
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | legacy | ||
) |
Definition at line 303 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 345 of file EventProcessor.cc.
References HDQMDatabaseProducer::config, init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 557 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 2067 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 576 of file EventProcessor.cc.
References actReg_, cms::Exception::addContext(), bk::beginJob(), beginJobCalled_, hasSubProcess(), i, edm::PathsAndConsumesOfModules::initialize(), input_, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), cmsPerfStripChart::operate(), pathsAndConsumesOfModules_, preallocations_, preg_, processContext_, schedule_, serviceToken_, subProcess_, and edm::convertException::wrap().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1669 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 1574 of file EventProcessor.cc.
References edm::RunPrincipal::beginTime(), FDEBUG, i, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), and statemachine::Run::runNumber().
|
private |
Definition at line 1261 of file EventProcessor.cc.
References edm::shutdown_flag.
void edm::EventProcessor::clearCounters | ( | ) |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1480 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1497 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1230 of file EventProcessor.cc.
References edm::errors::Configuration, statemachine::doNotHandleEmptyRunsAndLumis, Exception, dtDQMClient_cfg::fileMode, statemachine::FULLMERGE, statemachine::handleEmptyRuns, statemachine::handleEmptyRunsAndLumis, statemachine::NOMERGE, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1846 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1834 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1563 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 1209 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 628 of file EventProcessor.cc.
References actReg_, EnergyCorrector::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 1719 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 1534 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 1214 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1626 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 888 of file EventProcessor.cc.
References assert(), bk::beginJob(), edm::eventsetup::EventSetupRecord::doGet(), alignCSCRings::e, 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 1189 of file EventProcessor.cc.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 659 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 1219 of file EventProcessor.cc.
|
inlineprivate |
Definition at line 231 of file EventProcessor.h.
References subProcess_.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 393 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_, cmsHarvester::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, subProcess_, edm::ScheduleItems::thinnedAssociationsHelper_, and thinnedAssociationsHelper_.
Referenced by EventProcessor().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1489 of file EventProcessor.cc.
References FDEBUG.
|
delete |
|
private |
Definition at line 872 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1553 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1993 of file EventProcessor.cc.
References assert(), ev, FDEBUG, edm::Service< T >::isAvailable(), edm::ProcessingController::lastOperationSucceeded(), edm::ProcessingController::requestedTransition(), edm::ProcessingController::setLastOperationSucceeded(), edm::ProcessingController::specifiedEventTransition(), ntuplemaker::status, and summarizeEdmComparisonLogfiles::succeeded.
|
private |
Definition at line 1875 of file EventProcessor.cc.
References cmsPerfStripChart::operate(), and processEvent().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1818 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1781 of file EventProcessor.cc.
References assert(), and PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1948 of file EventProcessor.cc.
References pyrootRender::destroy(), and processEvent().
|
private |
Definition at line 1982 of file EventProcessor.cc.
References event(), and FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1462 of file EventProcessor.cc.
References FDEBUG, or, 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 1793 of file EventProcessor.cc.
References Exception, and edm::errors::LogicError.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1763 of file EventProcessor.cc.
References assert(), Exception, edm::errors::LogicError, and PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1516 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1505 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1547 of file EventProcessor.cc.
References FDEBUG.
|
inline |
Definition at line 315 of file EventProcessor.h.
References runToCompletion().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1274 of file EventProcessor.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::alreadyPrinted(), bk::beginJob(), alignCSCRings::e, Exception, FDEBUG, edm::errors::LogicError, cmsPerfStripChart::operate(), runEdmFileComparison::returnCode, findQualityFiles::size, and edm::convertException::wrap().
Referenced by run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2055 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2063 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2059 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
private |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1558 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2049 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1524 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 1194 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 1204 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 1199 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1840 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1828 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
friend |
Definition at line 237 of file EventProcessor.h.
|
private |
Definition at line 265 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 257 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 290 of file EventProcessor.h.
|
private |
Definition at line 302 of file EventProcessor.h.
|
private |
Definition at line 304 of file EventProcessor.h.
|
private |
Definition at line 282 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 259 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 298 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 278 of file EventProcessor.h.
|
private |
Definition at line 277 of file EventProcessor.h.
|
private |
Definition at line 286 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 264 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 263 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 308 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 287 of file EventProcessor.h.
|
private |
Definition at line 289 of file EventProcessor.h.
|
private |
Definition at line 288 of file EventProcessor.h.
|
private |
Definition at line 273 of file EventProcessor.h.
|
private |
Definition at line 285 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 293 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 291 of file EventProcessor.h.
|
private |
Definition at line 271 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 262 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 274 of file EventProcessor.h.
Referenced by Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 292 of file EventProcessor.h.
|
private |
Definition at line 303 of file EventProcessor.h.
|
private |
Definition at line 280 of file EventProcessor.h.
|
private |
Definition at line 295 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 296 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 268 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 300 of file EventProcessor.h.
Referenced by beginJob(), endJob(), and init().
|
private |
Definition at line 258 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 281 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 266 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 267 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 269 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), beginJob(), endJob(), init(), Config.Process::prune(), and ~EventProcessor().
|
private |
Definition at line 261 of file EventProcessor.h.
Referenced by beginJob(), endJob(), getToken(), and init().
|
private |
Definition at line 297 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 283 of file EventProcessor.h.
|
private |
Definition at line 284 of file EventProcessor.h.
|
private |
Definition at line 270 of file EventProcessor.h.
Referenced by beginJob(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), hasSubProcess(), init(), and ~EventProcessor().
|
private |
Definition at line 260 of file EventProcessor.h.
Referenced by init().