#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, boost::shared_ptr< BranchIDListHelper const > parentBranchIDListHelper, 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 |
BranchIDLists const * | branchIDLists () const |
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
SelectionsArray const & | keptProducts () const |
int | maxEvents () const |
OutputModule & | operator= (OutputModule const &)=delete |
OutputModule (ParameterSet const &pset) | |
OutputModule (OutputModule const &)=delete | |
std::string const & | processName () const |
int | remainingEvents () const |
bool | selected (BranchDescription const &desc) const |
void | selectProducts (ProductRegistry const &preg) |
bool | wantAllEvents () const |
virtual | ~OutputModule () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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 | fixBranchIDListsForEDAliases (std::map< BranchID::value_type, BranchID::value_type > const &droppedBranchIDToKeptBranchID) |
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 | |
std::unique_ptr< ActionTable const > | act_table_ |
boost::shared_ptr < BranchIDListHelper > | branchIDListHelper_ |
bool | cleaningUpAfterException_ |
std::auto_ptr< ESInfo > | esInfo_ |
boost::shared_ptr < eventsetup::EventSetupProvider > | esp_ |
std::unique_ptr< HistoryAppender > | historyAppender_ |
boost::shared_ptr < ProductRegistry const > | parentPreg_ |
std::map< ProcessHistoryID, ProcessHistoryID > | parentToChildPhID_ |
boost::shared_ptr < ProductRegistry const > | preg_ |
PrincipalCache | principalCache_ |
boost::shared_ptr < ProcessConfiguration const > | processConfiguration_ |
std::unique_ptr< ParameterSet > | processParameterSet_ |
std::auto_ptr< Schedule > | schedule_ |
ServiceToken | serviceToken_ |
std::auto_ptr< SubProcess > | subProcess_ |
Additional Inherited Members | |
Public Types inherited from edm::OutputModule | |
typedef OutputModule | ModuleType |
typedef OutputWorker | WorkerType |
Static Public Member Functions inherited from edm::OutputModule | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::OutputModule | |
void | configure (OutputModuleDescription const &desc) |
CurrentProcessingContext const * | currentContext () const |
ModuleDescription const & | description () const |
void | doBeginJob () |
bool | doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc) |
bool | doBeginRun (RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc) |
bool | doEndRun (RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc) |
bool | doEvent (EventPrincipal const &ep, EventSetup const &c, CurrentProcessingContext const *cpc) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
Trig | getTriggerResults (Event const &ep) const |
Trig | getTriggerResults (EventPrincipal const &ep) const |
ParameterSetID | selectorConfig () const |
void | setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 28 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 | ||
) |
Definition at line 33 of file SubProcess.cc.
References act_table_, branchIDListHelper_, edm::OutputModule::configure(), edm::ActivityRegistry::connectToSubProcess(), esp_, edm::ParameterSet::exists(), edm::ParameterSet::getUntrackedParameterSet(), historyAppender_, edm::PrincipalCache::insert(), edm::eventsetup::EventSetupsController::makeProvider(), edm::OutputModule::maxEvents(), edm::ParameterSet::popParameterSet(), edm::popSubProcessParameterSet(), preg_, principalCache_, processConfiguration_, processParameterSet_, schedule_, edm::OutputModule::selectProducts(), serviceToken_, edm::OutputModule::setEventSelectionInfo(), edm::IllegalParameters::setThrowAnException(), AlCaHLTBitMon_QueryRunRegistry::string, and subProcess_.
|
virtual |
Definition at line 133 of file SubProcess.cc.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 136 of file SubProcess.cc.
References edm::OutputModule::droppedBranchIDToKeptBranchID(), relativeConstraints::empty, fixBranchIDListsForEDAliases(), preg_, schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 286 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 220 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 188 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
inline |
void edm::SubProcess::deleteLumiFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 329 of file SubProcess.cc.
References edm::PrincipalCache::deleteLumi(), parentToChildPhID_, principalCache_, and subProcess_.
void edm::SubProcess::deleteRunFromCache | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 269 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 277 of file SubProcess.cc.
References esInfo_, esp_, and serviceToken_.
void edm::SubProcess::doBeginRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 211 of file SubProcess.cc.
References esInfo_, esp_, and serviceToken_.
void edm::SubProcess::doEndLuminosityBlock | ( | LuminosityBlockPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 301 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, esp_, and serviceToken_.
void edm::SubProcess::doEndRun | ( | RunPrincipal const & | principal, |
IOVSyncValue const & | ts, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 241 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, esp_, and serviceToken_.
void edm::SubProcess::doEvent | ( | EventPrincipal const & | principal, |
IOVSyncValue const & | ts | ||
) |
Definition at line 177 of file SubProcess.cc.
References esInfo_, esp_, and serviceToken_.
|
inline |
Turn end_paths "off" if "active" is false; Turn end_paths "on" if "active" is true.
Definition at line 161 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 146 of file SubProcess.cc.
References trackerHits::c, edm::ExceptionCollector::hasThrown(), edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and subProcess_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 311 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 168 of file SubProcess.h.
References schedule_, and serviceToken_.
|
privatevirtual |
Reimplemented from edm::OutputModule.
Definition at line 251 of file SubProcess.cc.
References cleaningUpAfterException_, esInfo_, edm::InRun, principalCache_, propagateProducts(), edm::PrincipalCache::runPrincipalPtr(), schedule_, and subProcess_.
|
private |
Definition at line 157 of file SubProcess.cc.
References branchIDListHelper_, and subProcess_.
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 175 of file SubProcess.h.
References schedule_, and serviceToken_.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 126 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 120 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
private |
Definition at line 337 of file SubProcess.cc.
References Selections::begin(), Selections::end(), edm::Principal::getProductHolder(), edm::OutputModule::keptProducts(), edm::Provenance::processHistoryID(), edm::ProductHolderBase::productData(), edm::Provenance::productID(), edm::Provenance::productProvenance(), edm::Provenance::productProvenanceValid(), edm::ProductHolderBase::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 94 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 108 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
virtual |
Reimplemented from edm::OutputModule.
Definition at line 369 of file SubProcess.cc.
References branchIDListHelper_, edm::FileBlock::branchIDLists(), schedule_, serviceToken_, and subProcess_.
|
inlinevirtual |
Reimplemented from edm::OutputModule.
Definition at line 101 of file SubProcess.h.
References schedule_, serviceToken_, and subProcess_.
|
inline |
Definition at line 115 of file SubProcess.h.
References 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 182 of file SubProcess.h.
References 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 142 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 154 of file SubProcess.h.
References schedule_, and serviceToken_.
|
inline |
Return the number of events which have been passed by one or more trigger paths.
Definition at line 147 of file SubProcess.h.
References schedule_, and serviceToken_.
|
privatevirtual |
Implements edm::OutputModule.
Definition at line 186 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(), edm::EventPrincipal::setLuminosityBlockPrincipal(), subProcess_, and edm::OutputModule::wantAllEvents().
Referenced by pkg.AbstractPkg::generate().
void edm::SubProcess::writeLumi | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber, | ||
int | lumiNumber | ||
) |
Definition at line 320 of file SubProcess.cc.
References edm::PrincipalCache::lumiPrincipal(), parentToChildPhID_, principalCache_, schedule_, serviceToken_, and subProcess_.
|
inlineprivatevirtual |
void edm::SubProcess::writeRun | ( | ProcessHistoryID const & | parentPhID, |
int | runNumber | ||
) |
Definition at line 260 of file SubProcess.cc.
References parentToChildPhID_, principalCache_, edm::PrincipalCache::runPrincipal(), schedule_, serviceToken_, and subProcess_.
|
inlineprivatevirtual |
|
private |
Definition at line 218 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 217 of file SubProcess.h.
Referenced by fixBranchIDListsForEDAliases(), respondToOpenInputFile(), and SubProcess().
|
private |
Definition at line 227 of file SubProcess.h.
Referenced by doEndLuminosityBlock(), doEndRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 225 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), endLuminosityBlock(), endRun(), and write().
|
private |
Definition at line 221 of file SubProcess.h.
Referenced by doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), and SubProcess().
|
private |
Definition at line 224 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 215 of file SubProcess.h.
|
private |
Definition at line 223 of file SubProcess.h.
Referenced by beginRun(), deleteLumiFromCache(), deleteRunFromCache(), writeLumi(), and writeRun().
|
private |
Definition at line 216 of file SubProcess.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 220 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), deleteLumiFromCache(), deleteRunFromCache(), endLuminosityBlock(), endRun(), SubProcess(), write(), writeLumi(), and writeRun().
|
private |
Definition at line 219 of file SubProcess.h.
Referenced by beginLuminosityBlock(), beginRun(), and SubProcess().
|
private |
Definition at line 228 of file SubProcess.h.
Referenced by SubProcess().
|
private |
Definition at line 222 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 214 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 226 of file SubProcess.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), clearCounters(), closeOutputFiles(), deleteLumiFromCache(), deleteRunFromCache(), Config.Process::dumpConfig(), Config.Process::dumpPython(), enableEndPaths(), endJob(), endLuminosityBlock(), endRun(), fixBranchIDListsForEDAliases(), openNewOutputFilesIfNeeded(), openOutputFiles(), postForkReacquireResources(), preForkReleaseResources(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), shouldWeCloseOutput(), SubProcess(), terminate(), write(), writeLumi(), and writeRun().