#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 38 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 36 of file SubProcess.cc.
References act_table_, 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(), 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_, thinnedAssociationsHelper_, updateBranchIDListHelper(), and wantAllEvents_.
|
virtual |
Definition at line 181 of file SubProcess.cc.
|
delete |
|
private |
Definition at line 195 of file SubProcess.cc.
References droppedBranchIDToKeptBranchID(), relativeConstraints::empty, fixBranchIDListsForEDAliases(), cmsPerfStripChart::operate(), preg_, schedule_, serviceToken_, and subProcess_.
Referenced by doBeginJob().
|
private |
Definition at line 405 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 345 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 206 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 100 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 446 of file SubProcess.cc.
void edm::SubProcess::deleteRunFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 391 of file SubProcess.cc.
void edm::SubProcess::doBeginJob | ( | ) |
void edm::SubProcess::doBeginLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 399 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 339 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doBeginStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEndJob | ( | ) |
Definition at line 189 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 422 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 367 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doEndStream | ( | unsigned int | iID | ) |
void edm::SubProcess::doEvent | ( | EventPrincipal const & | principal | ) |
Definition at line 292 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 490 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::doStreamBeginRun | ( | unsigned int | iID, |
RunPrincipal const & | principal, | ||
IOVSyncValue const & | ts | ||
) |
Definition at line 468 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 501 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 479 of file SubProcess.cc.
References cmsPerfStripChart::operate().
|
inlineprivate |
Definition at line 227 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 179 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 205 of file SubProcess.cc.
References EnergyCorrector::c, edm::ExceptionCollector::call(), cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
Referenced by doEndJob().
|
private |
Definition at line 428 of file SubProcess.cc.
References edm::InLumi.
|
inline |
Return true if end_paths are active, and false if they are inactive.
Definition at line 186 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
private |
Definition at line 373 of file SubProcess.cc.
References edm::InRun.
|
private |
Definition at line 277 of file SubProcess.cc.
References getDQMSummary::iter.
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 193 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
private |
Definition at line 258 of file SubProcess.cc.
References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::InEvent, edm::BranchDescription::originalBranchID(), and edm::BranchDescription::produced().
|
inline |
Definition at line 62 of file SubProcess.h.
References keptProducts_.
Referenced by edm::ScheduleItems::ScheduleItems().
|
inline |
Definition at line 107 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 114 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
delete |
|
inline |
Definition at line 144 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 138 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 310 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::__init__(), ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::anyOf(), 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(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HARVESTING(), 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 513 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 126 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 216 of file SubProcess.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), edm::ThinnedAssociationsHelper::selectAssociationProducts(), edm::BranchDescription::transient(), edm::TypeWithDict::typeInfo(), and edm::BranchDescription::unwrappedType().
Referenced by SubProcess().
|
inline |
Definition at line 133 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 200 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 160 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 172 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 165 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
void edm::SubProcess::updateBranchIDListHelper | ( | BranchIDLists const & | branchIDLists | ) |
Definition at line 543 of file SubProcess.cc.
Referenced by SubProcess().
void edm::SubProcess::writeLumi | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 437 of file SubProcess.cc.
References cmsPerfStripChart::operate().
void edm::SubProcess::writeRun | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 382 of file SubProcess.cc.
References cmsPerfStripChart::operate().
|
private |
Definition at line 237 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 235 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 269 of file SubProcess.h.
Referenced by droppedBranchIDToKeptBranchID(), and SubProcess().
|
private |
Definition at line 247 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 245 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 242 of file SubProcess.h.
|
private |
Definition at line 243 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 257 of file SubProcess.h.
Referenced by keptProducts().
|
private |
Definition at line 233 of file SubProcess.h.
|
private |
Definition at line 249 of file SubProcess.h.
|
private |
Definition at line 234 of file SubProcess.h.
Referenced by beginJob(), and SubProcess().
|
private |
Definition at line 246 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 238 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 239 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 244 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 251 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 259 of file SubProcess.h.
|
private |
Definition at line 258 of file SubProcess.h.
|
private |
Definition at line 248 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 264 of file SubProcess.h.
Referenced by SubProcess().
|
mutableprivate |
Definition at line 265 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 232 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 250 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 236 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 263 of file SubProcess.h.
Referenced by SubProcess().