#include <SubProcess.h>
Public Member Functions | |
void | clearCounters () |
Clear all the counters in the trigger report. More... | |
void | closeOutputFiles () |
void | deleteLumiFromCache (ProcessHistoryID const &parentPhID, int runNumber, int lumiNumber) |
void | deleteRunFromCache (ProcessHistoryID const &parentPhID, int runNumber) |
void | doBeginJob () |
void | doBeginLuminosityBlock (LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts) |
void | doBeginRun (RunPrincipal const &principal, IOVSyncValue const &ts) |
void | doBeginStream (unsigned int) |
void | doEndJob () |
void | doEndLuminosityBlock (LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | doEndRun (RunPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | doEndStream (unsigned int) |
void | doEvent (EventPrincipal const &principal) |
void | doStreamBeginLuminosityBlock (unsigned int iID, LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts) |
void | doStreamBeginRun (unsigned int iID, RunPrincipal const &principal, IOVSyncValue const &ts) |
void | doStreamEndLuminosityBlock (unsigned int iID, LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | doStreamEndRun (unsigned int iID, RunPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | enableEndPaths (bool active) |
bool | endPathsEnabled () const |
Return true if end_paths are active, and false if they are inactive. More... | |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
Return a vector allowing const access to all the ModuleDescriptions for this SubProcess. More... | |
void | getTriggerReport (TriggerReport &rep) const |
SelectedProductsForBranchType const & | keptProducts () const |
void | openNewOutputFilesIfNeeded () |
void | openOutputFiles (FileBlock &fb) |
SubProcess & | operator= (SubProcess const &)=delete |
void | postForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren) |
void | preForkReleaseResources () |
void | respondToCloseInputFile (FileBlock const &fb) |
void | respondToOpenInputFile (FileBlock const &fb) |
void | selectProducts (ProductRegistry const &preg) |
bool | shouldWeCloseOutput () const |
SubProcess (ParameterSet ¶meterSet, ParameterSet const &topLevelParameterSet, boost::shared_ptr< ProductRegistry const > parentProductRegistry, boost::shared_ptr< BranchIDListHelper const > parentBranchIDListHelper, eventsetup::EventSetupsController &esController, ActivityRegistry &parentActReg, ServiceToken const &token, serviceregistry::ServiceLegacy iLegacy, PreallocationConfiguration const &preallocConfig, ProcessContext const *parentProcessContext) | |
SubProcess (SubProcess const &)=delete | |
bool | terminate () const |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
Return the number of events which have been passed by one or more trigger paths. More... | |
void | updateBranchIDListHelper (BranchIDLists const &) |
void | writeLumi (ProcessHistoryID const &parentPhID, int runNumber, int lumiNumber) |
void | writeRun (ProcessHistoryID const &parentPhID, int runNumber) |
virtual | ~SubProcess () |
Private Member Functions | |
void | beginJob () |
void | beginLuminosityBlock (LuminosityBlockPrincipal const &lb, IOVSyncValue const &ts) |
void | beginRun (RunPrincipal const &r, IOVSyncValue const &ts) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
void | endJob () |
void | endLuminosityBlock (LuminosityBlockPrincipal const &lb, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | endRun (RunPrincipal const &r, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | fixBranchIDListsForEDAliases (std::map< BranchID::value_type, BranchID::value_type > const &droppedBranchIDToKeptBranchID) |
void | process (EventPrincipal const &e) |
void | propagateProducts (BranchType type, Principal const &parentPrincipal, Principal &principal) const |
Definition at line 35 of file SubProcess.h.
edm::SubProcess::SubProcess | ( | ParameterSet & | parameterSet, |
ParameterSet const & | topLevelParameterSet, | ||
boost::shared_ptr< ProductRegistry const > | parentProductRegistry, | ||
boost::shared_ptr< BranchIDListHelper const > | parentBranchIDListHelper, | ||
eventsetup::EventSetupsController & | esController, | ||
ActivityRegistry & | parentActReg, | ||
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | iLegacy, | ||
PreallocationConfiguration const & | preallocConfig, | ||
ProcessContext const * | parentProcessContext | ||
) |
Definition at line 35 of file SubProcess.cc.
References act_table_, branchIDListHelper_, edm::detail::configureEventSelector(), edm::ActivityRegistry::connectToSubProcess(), esp_, edm::ParameterSet::exists(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), historyAppenders_, historyRunOffset_, getHLTprescales::index, edm::PrincipalCache::insert(), edm::eventsetup::EventSetupsController::makeProvider(), LaserTracksInput_cfi::maxEvents, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), edm::ParameterSet::popParameterSet(), edm::popSubProcessParameterSet(), preg_, principalCache_, processConfiguration_, processContext_, processHistoryRegistries_, processParameterSet_, edm::ParameterSet::registerIt(), edm::detail::registerProperSelectionInfo(), schedule_, selector_config_id_, selectors_, selectProducts(), serviceToken_, edm::PrincipalCache::setNumberOfConcurrentPrincipals(), edm::ProcessContext::setParentProcessContext(), edm::ProcessContext::setProcessConfiguration(), edm::PrincipalCache::setProcessHistoryRegistry(), edm::IllegalParameters::setThrowAnException(), AlCaHLTBitMon_QueryRunRegistry::string, subProcess_, updateBranchIDListHelper(), and wantAllEvents_.
|
virtual |
Definition at line 177 of file SubProcess.cc.
|
delete |
|
private |
Definition at line 191 of file SubProcess.cc.
References droppedBranchIDToKeptBranchID(), relativeConstraints::empty, fixBranchIDListsForEDAliases(), cmsPerfStripChart::operate(), preg_, schedule_, serviceToken_, and subProcess_.
Referenced by doBeginJob().
|
private |
Definition at line 395 of file SubProcess.cc.
References printConversionInfo::aux, edm::LuminosityBlockPrincipal::aux(), edm::LuminosityBlockPrincipal::index(), edm::InLumi, edm::Principal::processHistory(), edm::Principal::processHistoryID(), and edm::Principal::reader().
|
private |
Definition at line 335 of file SubProcess.cc.
References printConversionInfo::aux, edm::RunPrincipal::aux(), edm::RunPrincipal::index(), edm::InRun, edm::Principal::processHistory(), edm::Principal::processHistoryID(), edm::Principal::reader(), and edm::RunPrincipal::reducedProcessHistoryID().
|
inline |
Clear all the counters in the trigger report.
Definition at line 199 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 93 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
void edm::SubProcess::deleteLumiFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 436 of file SubProcess.cc.
void edm::SubProcess::deleteRunFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 381 of file SubProcess.cc.
void edm::SubProcess::doBeginJob | ( | ) |
void edm::SubProcess::doBeginLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 389 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 329 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEndJob | ( | ) |
Definition at line 185 of file SubProcess.cc.
References endJob().
Referenced by edm::EventProcessor::endJob().
void edm::SubProcess::doEndLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 412 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 357 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEvent | ( | EventPrincipal const & | principal | ) |
Definition at line 282 of file SubProcess.cc.
References cmsPerfStripChart::operate(), and LaserDQM_cfg::process.
void edm::SubProcess::doStreamBeginLuminosityBlock | ( | unsigned int | iID, |
LuminosityBlockPrincipal const & | principal, | ||
IOVSyncValue const & | ts | ||
) |
Definition at line 480 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doStreamBeginRun | ( | unsigned int | iID, |
RunPrincipal const & | principal, | ||
IOVSyncValue const & | ts | ||
) |
Definition at line 458 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doStreamEndLuminosityBlock | ( | unsigned int | iID, |
LuminosityBlockPrincipal const & | principal, | ||
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 491 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doStreamEndRun | ( | unsigned int | iID, |
RunPrincipal const & | principal, | ||
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 469 of file SubProcess.cc.
References cmsPerfStripChart::operate().
|
inlineprivate |
Definition at line 217 of file SubProcess.h.
References droppedBranchIDToKeptBranchID_.
Referenced by beginJob().
|
inline |
Turn end_paths "off" if "active" is false; Turn end_paths "on" if "active" is true.
Definition at line 172 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 201 of file SubProcess.cc.
References trackerHits::c, edm::ExceptionCollector::call(), cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
Referenced by doEndJob().
|
private |
Definition at line 418 of file SubProcess.cc.
References edm::InLumi.
|
inline |
Return true if end_paths are active, and false if they are inactive.
Definition at line 179 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
private |
Definition at line 363 of file SubProcess.cc.
References edm::InRun.
|
private |
Definition at line 267 of file SubProcess.cc.
Referenced by beginJob().
std::vector<ModuleDescription const*> edm::SubProcess::getAllModuleDescriptions | ( | ) | const |
Return a vector allowing const access to all the ModuleDescriptions for this SubProcess.
*** N.B. *** Ownership of the ModuleDescriptions is not *** passed to the caller. Do not call delete on these *** pointers!
|
inline |
Return the trigger report information on paths, modules-in-path, modules-in-endpath, and modules.
Definition at line 186 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
inline |
Definition at line 55 of file SubProcess.h.
References keptProducts_.
Referenced by edm::ScheduleItems::ScheduleItems().
|
inline |
Definition at line 100 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 107 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
delete |
|
inline |
Definition at line 137 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 131 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 300 of file SubProcess.cc.
References edm::ProductRegistry::anyProductProduced(), printConversionInfo::aux, edm::EventPrincipal::aux(), edm::EventPrincipal::branchListIndexes(), edm::EventPrincipal::clearEventPrincipal(), edm::EventPrincipal::eventSelectionIDs(), edm::EventPrincipal::fillEventPrincipal(), edm::InEvent, edm::Principal::processHistory(), edm::Principal::processHistoryID(), edm::EventPrincipal::productProvenanceRetrieverPtr(), edm::Principal::productRegistry(), edm::Principal::reader(), edm::EventPrincipal::setLuminosityBlockPrincipal(), edm::EventPrincipal::streamID(), and edm::StreamID::value().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
|
private |
Definition at line 503 of file SubProcess.cc.
References edm::Principal::getProductHolder(), edm::Provenance::processHistory(), edm::ProductHolderBase::productData(), edm::Provenance::productID(), edm::Provenance::productProvenance(), edm::Provenance::productProvenanceValid(), edm::ProductHolderBase::productUnavailable(), edm::ProductData::prov_, edm::Provenance::resetProductProvenance(), edm::Provenance::setProcessHistory(), edm::Provenance::setProductID(), edm::Provenance::setProductProvenance(), edm::Provenance::setStore(), edm::Provenance::store(), and edm::ProductData::wrapper_.
|
inline |
Definition at line 119 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
void edm::SubProcess::respondToOpenInputFile | ( | FileBlock const & | fb | ) |
void edm::SubProcess::selectProducts | ( | ProductRegistry const & | preg | ) |
Definition at line 212 of file SubProcess.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::errors::Configuration, edm::hlt::Exception, edm::BranchID::id(), edm::BranchDescription::isAlias(), edm::BranchDescription::originalBranchID(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), and edm::BranchDescription::transient().
Referenced by SubProcess().
|
inline |
Definition at line 126 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Return whether each output module has reached its maximum count. If there is a subprocess, get this information from the subprocess.
Definition at line 193 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Return the number of events this SubProcess has tried to process (inclues both successes and failures, including failures due to exceptions during processing).
Definition at line 153 of file SubProcess.h.
References schedule_.
|
inline |
Return the number of events that have not passed any trigger. (N.B. totalEventsFailed() + totalEventsPassed() == totalEvents()
Definition at line 165 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
inline |
Return the number of events which have been passed by one or more trigger paths.
Definition at line 158 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
void edm::SubProcess::updateBranchIDListHelper | ( | BranchIDLists const & | branchIDLists | ) |
Definition at line 533 of file SubProcess.cc.
Referenced by SubProcess().
void edm::SubProcess::writeLumi | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 427 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::writeRun | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 372 of file SubProcess.cc.
References cmsPerfStripChart::operate().
|
private |
Definition at line 226 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 225 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 258 of file SubProcess.h.
Referenced by droppedBranchIDToKeptBranchID().
|
private |
Definition at line 236 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 234 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 231 of file SubProcess.h.
|
private |
Definition at line 232 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 246 of file SubProcess.h.
Referenced by keptProducts().
|
private |
Definition at line 223 of file SubProcess.h.
|
private |
Definition at line 238 of file SubProcess.h.
|
private |
Definition at line 224 of file SubProcess.h.
Referenced by beginJob(), and SubProcess().
|
private |
Definition at line 235 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 227 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 228 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 233 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 240 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 248 of file SubProcess.h.
|
private |
Definition at line 247 of file SubProcess.h.
|
private |
Definition at line 237 of file SubProcess.h.
Referenced by Config.Process::_insertPaths(), beginJob(), clearCounters(), closeOutputFiles(), enableEndPaths(), endJob(), endPathsEnabled(), getTriggerReport(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), Config.Process::prune(), respondToCloseInputFile(), shouldWeCloseOutput(), SubProcess(), terminate(), totalEvents(), totalEventsFailed(), and totalEventsPassed().
|
private |
Definition at line 253 of file SubProcess.h.
Referenced by SubProcess().
|
mutableprivate |
Definition at line 254 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 222 of file SubProcess.h.
Referenced by beginJob(), clearCounters(), closeOutputFiles(), enableEndPaths(), endJob(), endPathsEnabled(), getTriggerReport(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), respondToCloseInputFile(), shouldWeCloseOutput(), SubProcess(), terminate(), totalEventsFailed(), and totalEventsPassed().
|
private |
Definition at line 239 of file SubProcess.h.
Referenced by beginJob(), clearCounters(), closeOutputFiles(), Config.Process::dumpConfig(), Config.Process::dumpPython(), enableEndPaths(), endJob(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), respondToCloseInputFile(), shouldWeCloseOutput(), SubProcess(), and terminate().
|
private |
Definition at line 252 of file SubProcess.h.
Referenced by SubProcess().