#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, ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, std::map< BranchID, bool > &keepAssociation) |
bool | shouldWeCloseOutput () const |
SubProcess (ParameterSet ¶meterSet, ParameterSet const &topLevelParameterSet, std::shared_ptr< ProductRegistry const > parentProductRegistry, std::shared_ptr< BranchIDListHelper const > parentBranchIDListHelper, ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, 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 | keepThisBranch (BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent) |
void | process (EventPrincipal const &e) |
void | propagateProducts (BranchType type, Principal const &parentPrincipal, Principal &principal) const |
Definition at line 40 of file SubProcess.h.
edm::SubProcess::SubProcess | ( | ParameterSet & | parameterSet, |
ParameterSet const & | topLevelParameterSet, | ||
std::shared_ptr< ProductRegistry const > | parentProductRegistry, | ||
std::shared_ptr< BranchIDListHelper const > | parentBranchIDListHelper, | ||
ThinnedAssociationsHelper const & | parentThinnedAssociationsHelper, | ||
eventsetup::EventSetupsController & | esController, | ||
ActivityRegistry & | parentActReg, | ||
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | iLegacy, | ||
PreallocationConfiguration const & | preallocConfig, | ||
ProcessContext const * | parentProcessContext | ||
) |
Definition at line 37 of file SubProcess.cc.
References act_table_, actReg_, branchIDListHelper_, edm::detail::configureEventSelector(), edm::ActivityRegistry::connectToSubProcess(), droppedBranchIDToKeptBranchID_, esp_, edm::ParameterSet::exists(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), historyAppenders_, historyRunOffset_, cmsHarvester::index, edm::PrincipalCache::insert(), edm::eventsetup::EventSetupsController::makeProvider(), Data_TkAlMuonIsolated_Run2015B_PromptReco_v1_cff::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_, thinnedAssociationsHelper_, updateBranchIDListHelper(), and wantAllEvents_.
|
virtual |
Definition at line 183 of file SubProcess.cc.
|
delete |
|
private |
Definition at line 197 of file SubProcess.cc.
References actReg_, droppedBranchIDToKeptBranchID(), relativeConstraints::empty, fixBranchIDListsForEDAliases(), edm::PathsAndConsumesOfModules::initialize(), cmsPerfStripChart::operate(), pathsAndConsumesOfModules_, preg_, processContext_, schedule_, serviceToken_, and subProcess_.
Referenced by doBeginJob().
|
private |
Definition at line 409 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 349 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 208 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 102 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 450 of file SubProcess.cc.
References assert().
void edm::SubProcess::deleteRunFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 395 of file SubProcess.cc.
References assert().
void edm::SubProcess::doBeginJob | ( | ) |
void edm::SubProcess::doBeginLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 403 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 343 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEndJob | ( | ) |
Definition at line 191 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 426 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 371 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEvent | ( | EventPrincipal const & | principal | ) |
Definition at line 296 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 494 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doStreamBeginRun | ( | unsigned int | iID, |
RunPrincipal const & | principal, | ||
IOVSyncValue const & | ts | ||
) |
Definition at line 472 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 505 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 483 of file SubProcess.cc.
References cmsPerfStripChart::operate().
|
inlineprivate |
Definition at line 229 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 181 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 209 of file SubProcess.cc.
References EnergyCorrector::c, edm::ExceptionCollector::call(), cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
Referenced by doEndJob().
|
private |
Definition at line 432 of file SubProcess.cc.
References edm::InLumi.
|
inline |
Return true if end_paths are active, and false if they are inactive.
Definition at line 188 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
private |
Definition at line 377 of file SubProcess.cc.
References edm::InRun.
|
private |
Definition at line 281 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 195 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
private |
Definition at line 262 of file SubProcess.cc.
References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::InEvent, edm::BranchDescription::originalBranchID(), and edm::BranchDescription::produced().
|
inline |
Definition at line 64 of file SubProcess.h.
References keptProducts_.
Referenced by edm::ScheduleItems::ScheduleItems().
|
inline |
Definition at line 109 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 116 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
delete |
|
inline |
Definition at line 146 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 140 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 314 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_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), 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 517 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 128 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, |
ThinnedAssociationsHelper const & | parentThinnedAssociationsHelper, | ||
std::map< BranchID, bool > & | keepAssociation | ||
) |
Definition at line 220 of file SubProcess.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), edm::ThinnedAssociationsHelper::selectAssociationProducts(), edm::BranchDescription::transient(), and edm::BranchDescription::unwrappedType().
Referenced by SubProcess().
|
inline |
Definition at line 135 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 202 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 162 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 174 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 167 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
void edm::SubProcess::updateBranchIDListHelper | ( | BranchIDLists const & | branchIDLists | ) |
Definition at line 547 of file SubProcess.cc.
Referenced by SubProcess().
void edm::SubProcess::writeLumi | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 441 of file SubProcess.cc.
References assert(), and cmsPerfStripChart::operate().
void edm::SubProcess::writeRun | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 386 of file SubProcess.cc.
References assert(), and cmsPerfStripChart::operate().
|
private |
Definition at line 240 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 234 of file SubProcess.h.
Referenced by beginJob(), and SubProcess().
|
private |
Definition at line 238 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 273 of file SubProcess.h.
Referenced by droppedBranchIDToKeptBranchID(), and SubProcess().
|
private |
Definition at line 251 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 249 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 246 of file SubProcess.h.
|
private |
Definition at line 247 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 261 of file SubProcess.h.
Referenced by keptProducts().
|
private |
Definition at line 236 of file SubProcess.h.
|
private |
Definition at line 253 of file SubProcess.h.
|
private |
Definition at line 243 of file SubProcess.h.
Referenced by beginJob().
|
private |
Definition at line 237 of file SubProcess.h.
Referenced by beginJob(), and SubProcess().
|
private |
Definition at line 250 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 241 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 242 of file SubProcess.h.
Referenced by beginJob(), and SubProcess().
|
private |
Definition at line 248 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 255 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 263 of file SubProcess.h.
|
private |
Definition at line 262 of file SubProcess.h.
|
private |
Definition at line 252 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 268 of file SubProcess.h.
Referenced by SubProcess().
|
mutableprivate |
Definition at line 269 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 235 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 254 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 239 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 267 of file SubProcess.h.
Referenced by SubProcess().