#include <SubProcess.h>
Classes | |
struct | ESInfo |
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 | doBeginLuminosityBlock (LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts) |
void | doBeginRun (RunPrincipal const &principal, IOVSyncValue const &ts) |
void | doEndLuminosityBlock (LuminosityBlockPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | doEndRun (RunPrincipal const &principal, IOVSyncValue const &ts, bool cleaningUpAfterException) |
void | doEvent (EventPrincipal const &principal, IOVSyncValue const &ts) |
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 |
void | openNewOutputFilesIfNeeded () |
void | openOutputFiles (FileBlock &fb) |
void | postForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren) |
void | preForkReleaseResources () |
void | respondToCloseInputFile (FileBlock const &fb) |
void | respondToCloseOutputFiles (FileBlock const &fb) |
void | respondToOpenInputFile (FileBlock const &fb) |
void | respondToOpenOutputFiles (FileBlock const &fb) |
bool | shouldWeCloseOutput () const |
SubProcess (ParameterSet ¶meterSet, ParameterSet const &topLevelParameterSet, boost::shared_ptr< ProductRegistry const > parentProductRegistry, eventsetup::EventSetupsController &esController, ActivityRegistry &parentActReg, ServiceToken const &token, serviceregistry::ServiceLegacy iLegacy) | |
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 | writeLumi (ProcessHistoryID const &parentPhID, int runNumber, int lumiNumber) |
void | writeRun (ProcessHistoryID const &parentPhID, int runNumber) |
virtual | ~SubProcess () |
Public Member Functions inherited from edm::OutputModule | |
BranchChildren const & | branchChildren () const |
boost::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
SelectionsArray const & | keptProducts () const |
int | maxEvents () const |
OutputModule (ParameterSet const &pset) | |
std::string const & | processName () const |
int | remainingEvents () const |
bool | selected (BranchDescription const &desc) const |
void | selectProducts () |
bool | wantAllEvents () const |
virtual | ~OutputModule () |
Private Member Functions | |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (LuminosityBlockPrincipal const &lb) |
virtual void | beginRun (RunPrincipal const &r) |
virtual void | endJob () |
virtual void | endLuminosityBlock (LuminosityBlockPrincipal const &lb) |
virtual void | endRun (RunPrincipal const &r) |
void | propagateProducts (BranchType type, Principal const &parentPrincipal, Principal &principal) const |
virtual void | write (EventPrincipal const &e) |
virtual void | writeLuminosityBlock (LuminosityBlockPrincipal const &) |
virtual void | writeRun (RunPrincipal const &) |
Private Attributes | |
boost::shared_ptr< ActionTable const > | act_table_ |
bool | cleaningUpAfterException_ |
std::auto_ptr< ESInfo > | esInfo_ |
boost::shared_ptr < eventsetup::EventSetupProvider > | esp_ |
boost::scoped_ptr < HistoryAppender > | historyAppender_ |
boost::shared_ptr < ProductRegistry const > | parentPreg_ |
std::map< ProcessHistoryID, ProcessHistoryID > | parentToChildPhID_ |
boost::shared_ptr < SignallingProductRegistry > | preg_ |
PrincipalCache | principalCache_ |
boost::shared_ptr < ProcessConfiguration > | processConfiguration_ |
std::unique_ptr< ParameterSet > | processParameterSet_ |
std::auto_ptr< Schedule > | schedule_ |
ServiceToken | serviceToken_ |
std::auto_ptr< SubProcess > | subProcess_ |
Definition at line 28 of file SubProcess.h.
edm::SubProcess::SubProcess | ( | ParameterSet & | parameterSet, |
ParameterSet const & | topLevelParameterSet, | ||
boost::shared_ptr< ProductRegistry const > | parentProductRegistry, | ||
eventsetup::EventSetupsController & | esController, | ||
ActivityRegistry & | parentActReg, | ||
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | iLegacy | ||
) |
Definition at line 31 of file SubProcess.cc.
References act_table_, edm::ActivityRegistry::connectToSubProcess(), esp_, edm::ParameterSet::exists(), edm::ParameterSet::getUntrackedParameterSet(), historyAppender_, edm::PrincipalCache::insert(), edm::eventsetup::EventSetupsController::makeProvider(), edm::OutputModule::maxEvents(), cmsPerfStripChart::operate(), edm::ParameterSet::popParameterSet(), edm::popSubProcessParameterSet(), preg_, principalCache_, processConfiguration_, processParameterSet_, schedule_, serviceToken_, edm::OutputModule::setEventSelectionInfo(), edm::IllegalParameters::setThrowAnException(), and subProcess_.
|
virtual |
Definition at line 123 of file SubProcess.cc.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 126 of file SubProcess.cc.
References Selections::begin(), Selections::end(), edm::InEvent, edm::InLumi, edm::InRun, edm::OutputModule::keptProducts(), cmsPerfStripChart::operate(), preg_, schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 279 of file SubProcess.cc.
References printConversionInfo::aux, edm::LuminosityBlockPrincipal::aux(), esInfo_, historyAppender_, edm::InLumi, edm::PrincipalCache::insert(), edm::PrincipalCache::lumiPrincipalPtr(), preg_, principalCache_, processConfiguration_, edm::Principal::processHistoryID(), propagateProducts(), edm::Principal::reader(), edm::PrincipalCache::runPrincipalPtr(), schedule_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 213 of file SubProcess.cc.
References printConversionInfo::aux, edm::RunPrincipal::aux(), esInfo_, historyAppender_, edm::InRun, edm::PrincipalCache::insert(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), parentToChildPhID_, preg_, principalCache_, processConfiguration_, edm::RunAuxiliary::processHistoryID(), edm::Principal::processHistoryID(), propagateProducts(), edm::Principal::reader(), edm::FullHistoryToReducedHistoryMap::reduceProcessHistoryID(), edm::PrincipalCache::runPrincipalPtr(), schedule_, and subProcess_.
|
inline |
Clear all the counters in the trigger report.
Definition at line 191 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 69 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 321 of file SubProcess.cc.
References edm::PrincipalCache::deleteLumi(), parentToChildPhID_, principalCache_, and subProcess_.
void edm::SubProcess::deleteRunFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 262 of file SubProcess.cc.
References edm::PrincipalCache::deleteRun(), parentToChildPhID_, principalCache_, and subProcess_.
void edm::SubProcess::doBeginLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 270 of file SubProcess.cc.
References esInfo_, esp_, cmsPerfStripChart::operate(), and serviceToken_.
void edm::SubProcess::doBeginRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 204 of file SubProcess.cc.
References esInfo_, esp_, cmsPerfStripChart::operate(), and serviceToken_.
void edm::SubProcess::doEndLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 293 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, esp_, cmsPerfStripChart::operate(), and serviceToken_.
void edm::SubProcess::doEndRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 234 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, esp_, cmsPerfStripChart::operate(), and serviceToken_.
void edm::SubProcess::doEvent | ( | EventPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 170 of file SubProcess.cc.
References esInfo_, esp_, cmsPerfStripChart::operate(), and serviceToken_.
|
inline |
Turn end_paths "off" if "active" is false; Turn end_paths "on" if "active" is true.
Definition at line 164 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 154 of file SubProcess.cc.
References trackerHits::c, edm::ExceptionCollector::hasThrown(), cmsPerfStripChart::operate(), edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 303 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, edm::InLumi, edm::PrincipalCache::lumiPrincipalPtr(), principalCache_, propagateProducts(), schedule_, and subProcess_.
|
inline |
Return true if end_paths are active, and false if they are inactive.
Definition at line 171 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 244 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, edm::InRun, principalCache_, propagateProducts(), edm::PrincipalCache::runPrincipalPtr(), schedule_, and subProcess_.
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 178 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
inline |
Definition at line 76 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 83 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 129 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 123 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 329 of file SubProcess.cc.
References Selections::begin(), Selections::end(), edm::Principal::getGroup(), edm::OutputModule::keptProducts(), edm::Provenance::processHistoryID(), edm::Group::productData(), edm::Provenance::productID(), edm::Provenance::productProvenance(), edm::Provenance::productProvenanceValid(), edm::Group::productUnavailable(), edm::ProductData::prov_, edm::Provenance::resetProductProvenance(), edm::Provenance::setProcessHistoryID(), edm::Provenance::setProductID(), edm::Provenance::setProductProvenance(), edm::Provenance::setStore(), edm::Provenance::store(), and edm::ProductData::wrapper_.
Referenced by beginLuminosityBlock(), beginRun(), endLuminosityBlock(), endRun(), and write().
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 97 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 111 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 90 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 104 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 118 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 185 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 145 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 157 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 150 of file SubProcess.h.
References cmsPerfStripChart::operate(), schedule_, and serviceToken_.
|
privatevirtual |
Implements edm::OutputModule.
Definition at line 179 of file SubProcess.cc.
References edm::ProductRegistry::anyProductProduced(), printConversionInfo::aux, edm::EventPrincipal::aux(), edm::EventPrincipal::branchListIndexes(), edm::EventPrincipal::branchMapperPtr(), esInfo_, edm::PrincipalCache::eventPrincipal(), edm::EventPrincipal::eventSelectionIDs(), edm::EventPrincipal::fillEventPrincipal(), edm::InEvent, edm::PrincipalCache::lumiPrincipalPtr(), principalCache_, edm::Principal::processHistoryID(), edm::Principal::productRegistry(), propagateProducts(), edm::Principal::reader(), schedule_, edm::OutputModule::selectorConfig(), subProcess_, and edm::OutputModule::wantAllEvents().
void edm::SubProcess::writeLumi | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 312 of file SubProcess.cc.
References edm::PrincipalCache::lumiPrincipal(), cmsPerfStripChart::operate(), parentToChildPhID_, principalCache_, schedule_, serviceToken_, and subProcess_.
|
inlineprivatevirtual |
void edm::SubProcess::writeRun | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 253 of file SubProcess.cc.
References cmsPerfStripChart::operate(), parentToChildPhID_, principalCache_, edm::PrincipalCache::runPrincipal(), schedule_, serviceToken_, and subProcess_.
|
inlineprivatevirtual |
|
private |
Definition at line 219 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 228 of file SubProcess.h.
Referenced by doEndLuminosityBlock(), doEndRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 226 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), endLuminosityBlock(), endRun(), and write().
|
private |
Definition at line 222 of file SubProcess.h.
Referenced by doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), and SubProcess().
|
private |
Definition at line 225 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 217 of file SubProcess.h.
|
private |
Definition at line 224 of file SubProcess.h.
Referenced by beginRun(), deleteLumiFromCache(), deleteRunFromCache(), writeLumi(), and writeRun().
|
private |
Definition at line 218 of file SubProcess.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 221 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), deleteLumiFromCache(), deleteRunFromCache(), endLuminosityBlock(), endRun(), SubProcess(), write(), writeLumi(), and writeRun().
|
private |
Definition at line 220 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 229 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 223 of file SubProcess.h.
Referenced by Config.Process::_insertPaths(), beginJob(), beginLuminosityBlock(), beginRun(), clearCounters(), closeOutputFiles(), enableEndPaths(), endJob(), endLuminosityBlock(), endPathsEnabled(), endRun(), getTriggerReport(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), Config.Process::prune(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), shouldWeCloseOutput(), SubProcess(), terminate(), totalEvents(), totalEventsFailed(), totalEventsPassed(), write(), writeLumi(), and writeRun().
|
private |
Definition at line 216 of file SubProcess.h.
Referenced by beginJob(), clearCounters(), closeOutputFiles(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), enableEndPaths(), endJob(), endPathsEnabled(), getTriggerReport(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), shouldWeCloseOutput(), SubProcess(), terminate(), totalEventsFailed(), totalEventsPassed(), writeLumi(), and writeRun().
|
private |
Definition at line 227 of file SubProcess.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), clearCounters(), closeOutputFiles(), deleteLumiFromCache(), deleteRunFromCache(), Config.Process::dumpConfig(), Config.Process::dumpPython(), enableEndPaths(), endJob(), endLuminosityBlock(), endRun(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), shouldWeCloseOutput(), SubProcess(), terminate(), write(), writeLumi(), and writeRun().