#include <OutputModule.h>
Public Types | |
typedef OutputModule | ModuleType |
typedef OutputWorker | WorkerType |
Public Member Functions | |
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 () |
Static Public Member Functions | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Protected Member Functions | |
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) |
Trig | getTriggerResults (Event const &ep) const |
Trig | getTriggerResults (EventPrincipal const &ep) const |
ParameterSetID | selectorConfig () const |
Private Types | |
typedef std::map< BranchID, std::set< ParentageID > > | BranchParents |
Private Attributes | |
BranchChildren | branchChildren_ |
BranchParents | branchParents_ |
CurrentProcessingContext const * | current_context_ |
GroupSelector | groupSelector_ |
GroupSelectorRules | groupSelectorRules_ |
boost::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
SelectionsArray | keptProducts_ |
int | maxEvents_ |
ModuleDescription | moduleDescription_ |
std::string | process_name_ |
bool | prodsValid_ |
int | remainingEvents_ |
ParameterSetID | selector_config_id_ |
detail::CachedProducts | selectors_ |
bool | wantAllEvents_ |
Friends | |
class | OutputWorker |
template<typename T > | |
class | WorkerT |
Definition at line 35 of file OutputModule.h.
|
private |
Definition at line 139 of file OutputModule.h.
Definition at line 39 of file OutputModule.h.
Definition at line 40 of file OutputModule.h.
|
explicit |
Definition at line 113 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 205 of file OutputModule.cc.
|
static |
Definition at line 427 of file OutputModule.cc.
References edm::kBaseType().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, and edm::StreamerOutputModuleBase.
Definition at line 178 of file OutputModule.h.
Referenced by doBeginJob().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 183 of file OutputModule.h.
Referenced by doBeginLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, DQMRootOutputModule, FRDEventOutputModule< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 180 of file OutputModule.h.
Referenced by doBeginRun().
|
inline |
Definition at line 63 of file OutputModule.h.
References branchChildren_.
Referenced by edm::RootOutputFile::writeProductDependencies().
|
private |
Definition at line 169 of file OutputModule.cc.
References edm::OutputModuleDescription::maxEvents_, maxEvents_, and remainingEvents_.
Referenced by edm::OutputWorker::configure().
|
protected |
Definition at line 398 of file OutputModule.cc.
References current_context_.
|
protected |
Definition at line 403 of file OutputModule.cc.
References moduleDescription_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
|
protected |
|
protected |
Definition at line 316 of file OutputModule.cc.
References beginLuminosityBlock(), current_context_, and FDEBUG.
|
protected |
Definition at line 290 of file OutputModule.cc.
References beginRun(), current_context_, and FDEBUG.
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 374 of file OutputModule.cc.
References isFileOpen(), and reallyCloseFile().
Referenced by edm::OutputWorker::closeFile().
|
protected |
Definition at line 212 of file OutputModule.cc.
References endJob().
Referenced by edm::EventProcessor::endJob().
|
protected |
Definition at line 326 of file OutputModule.cc.
References current_context_, endLuminosityBlock(), and FDEBUG.
|
protected |
Definition at line 300 of file OutputModule.cc.
References current_context_, endRun(), and FDEBUG.
|
protected |
Definition at line 249 of file OutputModule.cc.
References current_context_, FDEBUG, moduleDescription_, prodsValid_, remainingEvents_, selectors_, updateBranchParents(), wantAllEvents_, edm::detail::CachedProducts::wantEvent(), and write().
|
private |
Definition at line 340 of file OutputModule.cc.
References openFile().
Referenced by edm::OutputWorker::openFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 196 of file OutputModule.h.
Referenced by maybeOpenFile().
|
private |
Definition at line 366 of file OutputModule.cc.
References postForkReacquireResources().
|
private |
Definition at line 361 of file OutputModule.cc.
References preForkReleaseResources().
|
private |
Definition at line 348 of file OutputModule.cc.
References respondToCloseInputFile().
|
private |
Definition at line 356 of file OutputModule.cc.
References respondToCloseOutputFiles().
|
private |
Definition at line 344 of file OutputModule.cc.
References respondToOpenInputFile().
|
private |
Definition at line 352 of file OutputModule.cc.
References respondToOpenOutputFiles().
|
private |
Definition at line 335 of file OutputModule.cc.
References FDEBUG, and writeLuminosityBlock().
Referenced by edm::OutputWorker::writeLumi().
|
private |
Definition at line 310 of file OutputModule.cc.
References FDEBUG, and writeRun().
Referenced by edm::OutputWorker::writeRun().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, and edm::StreamerOutputModuleBase.
Definition at line 179 of file OutputModule.h.
Referenced by doEndJob().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 184 of file OutputModule.h.
Referenced by doEndLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, FRDEventOutputModule< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 181 of file OutputModule.h.
Referenced by doEndRun().
|
private |
Definition at line 447 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 420 of file OutputModule.cc.
References edm::GroupSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().
Referenced by edm::StreamerOutputModuleBase::fillDescription(), edm::AsciiOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), edm::GetProductCheckerOutputModule::fillDescriptions(), edm::XMLOutputModule::fillDescriptions(), and edm::PoolOutputModule::fillDescriptions().
|
static |
Definition at line 413 of file OutputModule.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 222 of file OutputModule.h.
Referenced by reallyCloseFile().
Definition at line 217 of file OutputModule.cc.
References edm::detail::CachedProducts::getOneTriggerResults(), and selectors_.
Referenced by getTriggerResults(), and edm::StreamerOutputModuleBase::setHltMask().
|
protected |
Definition at line 221 of file OutputModule.cc.
References current_context_, getTriggerResults(), and edm::CurrentProcessingContext::moduleDescription().
|
inline |
Definition at line 57 of file OutputModule.h.
References hasNewlyDroppedBranch_.
Referenced by edm::RootOutputFile::beginInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 194 of file OutputModule.h.
Referenced by doCloseFile(), and maybeOpenFile().
|
inline |
Definition at line 56 of file OutputModule.h.
References keptProducts_.
Referenced by edm::SubProcess::beginJob(), edm::PoolOutputModule::fillSelectedItemList(), edm::RootOutputFile::finishEndFile(), edm::SubProcess::propagateProducts(), and edm::XMLOutputModule::write().
|
inlineprivate |
Definition at line 205 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 46 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 370 of file OutputModule.cc.
References doOpenFile(), and isFileOpen().
Referenced by edm::OutputWorker::openNewFileIfNeeded().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 186 of file OutputModule.h.
Referenced by python.Vispa.Main.Application.Application::_readCommandLineAttributes(), doOpenFile(), python.Vispa.Main.Application.Application::doubleClickOnFile(), python.Vispa.Main.Application.Application::openFileDialog(), and python.Vispa.Main.Application.Application::openRecentFileSlot().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess, and edm::PoolOutputModule.
Definition at line 192 of file OutputModule.h.
Referenced by doPostForkReacquireResources().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 191 of file OutputModule.h.
Referenced by doPreForkReleaseResources().
|
inline |
Definition at line 55 of file OutputModule.h.
References process_name_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry(), and DQMRootOutputModule::startEndFile().
|
private |
Definition at line 378 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 172 of file OutputModule.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 50 of file OutputModule.h.
References remainingEvents_.
Referenced by edm::PoolOutputModule::beginInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule, and edm::SubProcess.
Definition at line 188 of file OutputModule.h.
Referenced by doRespondToCloseInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 190 of file OutputModule.h.
Referenced by doRespondToCloseOutputFiles().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule, and edm::SubProcess.
Definition at line 187 of file OutputModule.h.
Referenced by doRespondToOpenInputFile().
|
inlineprivatevirtual |
Reimplemented in edm::SubProcess.
Definition at line 189 of file OutputModule.h.
Referenced by doRespondToOpenOutputFiles().
bool edm::OutputModule::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 408 of file OutputModule.cc.
References groupSelector_, and edm::GroupSelector::selected().
Referenced by selectProducts(), and edm::AsciiOutputModule::write().
|
inlineprotected |
Definition at line 83 of file OutputModule.h.
References selector_config_id_.
Referenced by edm::StreamerOutputModuleBase::serializeEvent(), and edm::RootOutputFile::writeOne().
void edm::OutputModule::selectProducts | ( | ) |
Definition at line 173 of file OutputModule.cc.
References edm::BranchDescription::branchType(), end, edm::getAllBranchDescriptions(), groupSelector_, groupSelectorRules_, hasNewlyDroppedBranch_, edm::GroupSelector::initialize(), edm::GroupSelector::initialized(), keptProducts_, edm::BranchDescription::present(), edm::BranchDescription::produced(), selected(), and edm::BranchDescription::transient().
Referenced by doBeginJob().
|
inlineprivate |
Definition at line 198 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 175 of file OutputModule.h.
Referenced by edm::OutputWorker::shouldWeCloseFile().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 210 of file OutputModule.h.
Referenced by reallyCloseFile().
|
private |
Definition at line 432 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 65 of file OutputModule.h.
References wantAllEvents_.
Referenced by edm::PoolOutputModule::PoolOutputModule(), edm::OutputWorker::wantAllEvents(), and edm::RootOutputFile::writeOne().
|
inlineprivate |
Definition at line 158 of file OutputModule.h.
|
privatepure virtual |
Implemented in edm::SubProcess, DQMRootOutputModule, edm::PoolOutputModule, edm::XMLOutputModule, edm::GetProductCheckerOutputModule, edm::ProvenanceCheckerOutputModule, FRDEventOutputModule< Consumer >, edm::StreamerOutputModuleBase, edm::AsciiOutputModule, and edm::TimeoutPoolOutputModule.
Referenced by doEvent().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 217 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 211 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 212 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 213 of file OutputModule.h.
Referenced by reallyCloseFile().
|
privatepure virtual |
Implemented in edm::SubProcess, DQMRootOutputModule, edm::PoolOutputModule, edm::XMLOutputModule, edm::GetProductCheckerOutputModule, edm::ProvenanceCheckerOutputModule, FRDEventOutputModule< Consumer >, edm::AsciiOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doWriteLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 216 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 218 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 214 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 215 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 220 of file OutputModule.h.
Referenced by reallyCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 219 of file OutputModule.h.
Referenced by reallyCloseFile().
|
privatepure virtual |
|
friend |
Definition at line 38 of file OutputModule.h.
|
friend |
Definition at line 37 of file OutputModule.h.
|
private |
Definition at line 142 of file OutputModule.h.
Referenced by branchChildren(), fillDependencyGraph(), reallyCloseFile(), and updateBranchParents().
|
private |
Definition at line 140 of file OutputModule.h.
Referenced by fillDependencyGraph(), reallyCloseFile(), and updateBranchParents().
|
private |
Definition at line 127 of file OutputModule.h.
Referenced by currentContext(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), and getTriggerResults().
|
private |
Definition at line 123 of file OutputModule.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 122 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 119 of file OutputModule.h.
Referenced by hasNewlyDroppedBranch(), OutputModule(), and selectProducts().
|
private |
Definition at line 118 of file OutputModule.h.
Referenced by keptProducts(), and selectProducts().
|
private |
Definition at line 100 of file OutputModule.h.
Referenced by configure(), and maxEvents().
|
private |
Definition at line 124 of file OutputModule.h.
Referenced by description(), doEvent(), and setModuleDescription().
|
private |
Definition at line 121 of file OutputModule.h.
Referenced by OutputModule(), and processName().
|
mutableprivate |
Definition at line 131 of file OutputModule.h.
Referenced by doEvent().
|
private |
Definition at line 101 of file OutputModule.h.
Referenced by configure(), doEvent(), limitReached(), and remainingEvents().
|
private |
Definition at line 137 of file OutputModule.h.
Referenced by OutputModule(), and selectorConfig().
|
mutableprivate |
Definition at line 134 of file OutputModule.h.
Referenced by doEvent(), getTriggerResults(), and OutputModule().
|
private |
Definition at line 133 of file OutputModule.h.
Referenced by doEvent(), OutputModule(), and wantAllEvents().