#include <OutputModule.h>
Public Types | |
typedef OutputModule | ModuleType |
typedef OutputWorker | WorkerType |
Static Public Member Functions | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions | |
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) |
Private Types | |
typedef std::map< BranchID, std::set< ParentageID > > | BranchParents |
Private Attributes | |
BranchChildren | branchChildren_ |
std::unique_ptr< BranchIDLists > | branchIDLists_ |
BranchParents | branchParents_ |
CurrentProcessingContext const * | current_context_ |
std::map< BranchID::value_type, BranchID::value_type > | droppedBranchIDToKeptBranchID_ |
std::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
SelectionsArray | keptProducts_ |
int | maxEvents_ |
ModuleDescription | moduleDescription_ |
BranchIDLists const * | origBranchIDLists_ |
std::string | process_name_ |
bool | prodsValid_ |
ProductSelector | productSelector_ |
ProductSelectorRules | productSelectorRules_ |
int | remainingEvents_ |
ParameterSetID | selector_config_id_ |
detail::CachedProducts | selectors_ |
bool | wantAllEvents_ |
Friends | |
class | OutputWorker |
template<typename T > | |
class | WorkerT |
Definition at line 36 of file OutputModule.h.
|
private |
Definition at line 163 of file OutputModule.h.
Definition at line 40 of file OutputModule.h.
Definition at line 41 of file OutputModule.h.
|
explicit |
Definition at line 105 of file OutputModule.cc.
References edm::ParameterSet::empty(), edm::getAllTriggerNames(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, i, edm::ParameterSet::id(), process_name_, edm::ParameterSet::registerIt(), selector_config_id_, selectors_, edm::detail::CachedProducts::setup(), edm::detail::CachedProducts::setupDefault(), and wantAllEvents_.
|
virtual |
Definition at line 256 of file OutputModule.cc.
|
delete |
|
static |
Definition at line 502 of file OutputModule.cc.
References edm::kBaseType().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, edm::PoolOutputModule, and edm::StreamerOutputModuleBase.
Definition at line 201 of file OutputModule.h.
Referenced by doBeginJob().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 206 of file OutputModule.h.
Referenced by doBeginLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, FRDEventOutputModule< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 203 of file OutputModule.h.
Referenced by doBeginRun().
|
inline |
Definition at line 69 of file OutputModule.h.
References branchChildren_.
Referenced by edm::RootOutputFile::writeProductDependencies().
BranchIDLists const * edm::OutputModule::branchIDLists | ( | ) | const |
Definition at line 448 of file OutputModule.cc.
References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry(), and edm::RootOutputFile::writeBranchIDListRegistry().
|
protected |
Definition at line 164 of file OutputModule.cc.
References edm::OutputModuleDescription::branchIDLists_, edm::OutputModuleDescription::maxEvents_, maxEvents_, origBranchIDLists_, and remainingEvents_.
Referenced by edm::OutputWorker::configure(), and edm::SubProcess::SubProcess().
|
protected |
Definition at line 468 of file OutputModule.cc.
References current_context_.
|
protected |
Definition at line 473 of file OutputModule.cc.
References moduleDescription_.
Referenced by DQMRootOutputModule::openFile(), edm::StreamerOutputModuleBase::serializeRegistry(), and setEventSelectionInfo().
|
protected |
|
protected |
Definition at line 366 of file OutputModule.cc.
References beginLuminosityBlock(), current_context_, and FDEBUG.
|
protected |
Definition at line 340 of file OutputModule.cc.
References beginRun(), current_context_, and FDEBUG.
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 424 of file OutputModule.cc.
References isFileOpen(), and reallyCloseFile().
Referenced by edm::OutputWorker::closeFile().
|
protected |
Definition at line 262 of file OutputModule.cc.
References endJob().
Referenced by edm::EventProcessor::endJob().
|
protected |
Definition at line 376 of file OutputModule.cc.
References current_context_, endLuminosityBlock(), and FDEBUG.
|
protected |
Definition at line 350 of file OutputModule.cc.
References current_context_, endRun(), and FDEBUG.
|
protected |
Definition at line 299 of file OutputModule.cc.
References current_context_, alignCSCRings::e, FDEBUG, moduleDescription_, prodsValid_, remainingEvents_, selectors_, updateBranchParents(), wantAllEvents_, edm::detail::CachedProducts::wantEvent(), and write().
|
private |
Definition at line 390 of file OutputModule.cc.
References openFile().
Referenced by edm::OutputWorker::openFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 219 of file OutputModule.h.
Referenced by maybeOpenFile().
|
private |
Definition at line 416 of file OutputModule.cc.
References postForkReacquireResources().
|
private |
Definition at line 411 of file OutputModule.cc.
References preForkReleaseResources().
|
private |
Definition at line 398 of file OutputModule.cc.
References respondToCloseInputFile().
|
private |
Definition at line 406 of file OutputModule.cc.
References respondToCloseOutputFiles().
|
private |
Definition at line 394 of file OutputModule.cc.
References respondToOpenInputFile().
|
private |
Definition at line 402 of file OutputModule.cc.
References respondToOpenOutputFiles().
|
private |
Definition at line 385 of file OutputModule.cc.
References FDEBUG, and writeLuminosityBlock().
Referenced by edm::OutputWorker::writeLumi().
|
private |
Definition at line 360 of file OutputModule.cc.
References FDEBUG, and writeRun().
Referenced by edm::OutputWorker::writeRun().
|
inlineprotected |
Definition at line 112 of file OutputModule.h.
References droppedBranchIDToKeptBranchID_.
Referenced by edm::SubProcess::beginJob().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, and edm::StreamerOutputModuleBase.
Definition at line 202 of file OutputModule.h.
Referenced by doEndJob().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 207 of file OutputModule.h.
Referenced by doEndLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, FRDEventOutputModule< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 204 of file OutputModule.h.
Referenced by doEndRun().
|
private |
Definition at line 554 of file OutputModule.cc.
References branchChildren_, branchParents_, edm::detail::ThreadSafeRegistry< KEY, T, E >::getMapped(), i, edm::BranchChildren::insertChild(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), j, parents, and edm::Parentage::parents().
Referenced by reallyCloseFile().
|
static |
Definition at line 490 of file OutputModule.cc.
References edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().
Referenced by edm::StreamerOutputModuleBase::fillDescription(), edm::AsciiOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), and edm::PoolOutputModule::fillDescriptions().
|
static |
Definition at line 483 of file OutputModule.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 245 of file OutputModule.h.
Referenced by reallyCloseFile().
Definition at line 267 of file OutputModule.cc.
References edm::detail::CachedProducts::getOneTriggerResults(), and selectors_.
Referenced by getTriggerResults(), and edm::StreamerOutputModuleBase::setHltMask().
|
protected |
Definition at line 271 of file OutputModule.cc.
References current_context_, getTriggerResults(), and edm::CurrentProcessingContext::moduleDescription().
|
inline |
Definition at line 62 of file OutputModule.h.
References hasNewlyDroppedBranch_.
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 217 of file OutputModule.h.
Referenced by doCloseFile(), and maybeOpenFile().
|
inline |
Definition at line 61 of file OutputModule.h.
References keptProducts_.
Referenced by edm::PoolOutputModule::beginJob(), edm::PoolOutputModule::fillSelectedItemList(), edm::RootOutputFile::finishEndFile(), edm::OutputWorker::keptProducts(), edm::SubProcess::propagateProducts(), and edm::ScheduleItems::ScheduleItems().
|
inlineprivate |
Definition at line 228 of file OutputModule.h.
References remainingEvents_.
Referenced by edm::OutputWorker::limitReached().
|
inline |
Accessor for maximum number of events to be written. -1 is used for unlimited.
Definition at line 51 of file OutputModule.h.
References maxEvents_.
Referenced by edm::SubProcess::SubProcess().
|
private |
Tell the OutputModule to open an output file, if one is not already open.
Definition at line 420 of file OutputModule.cc.
References doOpenFile(), and isFileOpen().
Referenced by edm::OutputWorker::openNewFileIfNeeded().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 209 of file OutputModule.h.
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), doOpenFile(), Vispa.Main.Application.Application::doubleClickOnFile(), Vispa.Main.Application.Application::openFileDialog(), and Vispa.Main.Application.Application::openRecentFileSlot().
|
delete |
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, and edm::PoolOutputModule.
Definition at line 215 of file OutputModule.h.
Referenced by doPostForkReacquireResources().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 214 of file OutputModule.h.
Referenced by doPreForkReleaseResources().
|
static |
Definition at line 496 of file OutputModule.cc.
|
inline |
Definition at line 60 of file OutputModule.h.
References process_name_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry(), and DQMRootOutputModule::startEndFile().
|
private |
Definition at line 428 of file OutputModule.cc.
References branchChildren_, branchParents_, edm::BranchChildren::clear(), fillDependencyGraph(), finishEndFile(), startEndFile(), writeBranchIDListRegistry(), writeBranchMapper(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessConfigurationRegistry(), writeProcessHistoryRegistry(), writeProductDependencies(), and writeProductDescriptionRegistry().
Referenced by doCloseFile().
|
inlineprivate |
Definition at line 195 of file OutputModule.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 55 of file OutputModule.h.
References remainingEvents_.
Referenced by edm::PoolOutputModule::beginInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule, and edm::SubProcess.
Definition at line 211 of file OutputModule.h.
Referenced by doRespondToCloseInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 213 of file OutputModule.h.
Referenced by doRespondToCloseOutputFiles().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule, and edm::SubProcess.
Definition at line 210 of file OutputModule.h.
Referenced by doRespondToOpenInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 212 of file OutputModule.h.
Referenced by doRespondToOpenOutputFiles().
bool edm::OutputModule::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 478 of file OutputModule.cc.
References productSelector_, and edm::ProductSelector::selected().
Referenced by selectProducts(), and edm::AsciiOutputModule::write().
|
inlineprotected |
Definition at line 92 of file OutputModule.h.
References selector_config_id_.
Referenced by edm::StreamerOutputModuleBase::serializeEvent(), edm::SubProcess::write(), and edm::RootOutputFile::writeOne().
void edm::OutputModule::selectProducts | ( | ProductRegistry const & | preg | ) |
Definition at line 169 of file OutputModule.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::errors::Configuration, edm::EDConsumerBase::consumes(), droppedBranchIDToKeptBranchID_, edm::hlt::Exception, hasNewlyDroppedBranch_, edm::BranchID::id(), edm::InEvent, edm::ProductSelector::initialize(), edm::ProductSelector::initialized(), edm::InLumi, edm::InRun, edm::BranchDescription::isAlias(), keptProducts_, edm::BranchDescription::moduleLabel(), edm::BranchDescription::originalBranchID(), edm::BranchDescription::present(), edm::BranchDescription::processName(), edm::BranchDescription::produced(), edm::PRODUCT_TYPE, edm::BranchDescription::productInstanceName(), edm::ProductRegistry::productList(), productSelector_, productSelectorRules_, selected(), edm::BranchDescription::transient(), and edm::BranchDescription::unwrappedTypeID().
Referenced by edm::OutputWorker::selectProducts(), and edm::SubProcess::SubProcess().
|
protected |
Definition at line 507 of file OutputModule.cc.
References edm::ParameterSet::addParameter(), edm::ParameterSet::copyForModify(), description(), alignCSCRings::e, edm::ParameterSet::exists(), edm::getParameterSet(), i, edm::ParameterSet::id(), diffTwoXMLs::label, edm::ModuleDescription::moduleLabel(), edm::ParameterSet::registerIt(), selector_config_id_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::SubProcess::SubProcess().
|
inlineprivate |
Definition at line 221 of file OutputModule.h.
References moduleDescription_.
|
inlineprivatevirtual |
Ask the OutputModule if we should end the current file.
Reimplemented in edm::PoolOutputModule, and edm::TimeoutPoolOutputModule.
Definition at line 198 of file OutputModule.h.
Referenced by edm::OutputWorker::shouldWeCloseFile().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 233 of file OutputModule.h.
Referenced by reallyCloseFile().
|
private |
Definition at line 539 of file OutputModule.cc.
References edm::Principal::begin(), branchChildren_, branchParents_, edm::Principal::end(), i, and edm::BranchChildren::insertEmpty().
Referenced by doEvent().
|
inline |
Definition at line 71 of file OutputModule.h.
References wantAllEvents_.
Referenced by edm::PoolOutputModule::PoolOutputModule(), edm::OutputWorker::wantAllEvents(), edm::SubProcess::write(), and edm::RootOutputFile::writeOne().
|
inlineprivate |
Definition at line 181 of file OutputModule.h.
|
privatepure virtual |
Implemented in edm::SubProcess, DQMRootOutputModule, edm::PoolOutputModule, edm::GetProductCheckerOutputModule, edm::ProvenanceCheckerOutputModule, edm::TimeoutPoolOutputModule, FRDEventOutputModule< Consumer >, edm::AsciiOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doEvent(), and pkg.AbstractPkg::generate().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 240 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 234 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 235 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 236 of file OutputModule.h.
Referenced by reallyCloseFile().
|
privatepure virtual |
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 239 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 241 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 237 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 238 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 243 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 242 of file OutputModule.h.
Referenced by reallyCloseFile().
|
privatepure virtual |
|
friend |
Definition at line 39 of file OutputModule.h.
|
friend |
Definition at line 38 of file OutputModule.h.
|
private |
Definition at line 166 of file OutputModule.h.
Referenced by branchChildren(), fillDependencyGraph(), reallyCloseFile(), and updateBranchParents().
|
private |
Definition at line 160 of file OutputModule.h.
Referenced by branchIDLists().
|
private |
Definition at line 164 of file OutputModule.h.
Referenced by fillDependencyGraph(), reallyCloseFile(), and updateBranchParents().
|
private |
Definition at line 145 of file OutputModule.h.
Referenced by currentContext(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), and getTriggerResults().
|
private |
Definition at line 159 of file OutputModule.h.
Referenced by branchIDLists(), droppedBranchIDToKeptBranchID(), and selectProducts().
|
private |
Definition at line 137 of file OutputModule.h.
Referenced by hasNewlyDroppedBranch(), OutputModule(), and selectProducts().
|
private |
Definition at line 136 of file OutputModule.h.
Referenced by keptProducts(), and selectProducts().
|
private |
Definition at line 118 of file OutputModule.h.
Referenced by configure(), and maxEvents().
|
private |
Definition at line 142 of file OutputModule.h.
Referenced by description(), doEvent(), and setModuleDescription().
|
private |
Definition at line 161 of file OutputModule.h.
Referenced by branchIDLists(), and configure().
|
private |
Definition at line 139 of file OutputModule.h.
Referenced by OutputModule(), and processName().
|
mutableprivate |
Definition at line 149 of file OutputModule.h.
Referenced by doEvent().
|
private |
Definition at line 141 of file OutputModule.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 140 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 119 of file OutputModule.h.
Referenced by configure(), doEvent(), limitReached(), and remainingEvents().
|
private |
Definition at line 155 of file OutputModule.h.
Referenced by OutputModule(), selectorConfig(), and setEventSelectionInfo().
|
mutableprivate |
Definition at line 152 of file OutputModule.h.
Referenced by doEvent(), getTriggerResults(), and OutputModule().
|
private |
Definition at line 151 of file OutputModule.h.
Referenced by doEvent(), OutputModule(), and wantAllEvents().