#include <OutputModuleBase.h>
Public Types | |
typedef OutputModuleBase | ModuleType |
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) |
ModuleDescription const & | description () const |
void | doBeginJob () |
bool | doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *) |
bool | doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *) |
bool | doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *) |
bool | doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *) |
void | doPreallocate (PreallocationConfiguration const &) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
Trig | getTriggerResults (EventPrincipal const &ep, ModuleCallingContext const *) 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_ |
std::map< BranchID::value_type, BranchID::value_type > | droppedBranchIDToKeptBranchID_ |
std::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
std::map< BranchID, bool > | keepAssociation_ |
SelectedProductsForBranchType | keptProducts_ |
int | maxEvents_ |
ModuleDescription | moduleDescription_ |
std::mutex | mutex_ |
BranchIDLists const * | origBranchIDLists_ |
std::string | process_name_ |
ProductSelector | productSelector_ |
ProductSelectorRules | productSelectorRules_ |
std::atomic< int > | remainingEvents_ |
SharedResourcesAcquirer | resourcesAcquirer_ |
ParameterSetID | selector_config_id_ |
detail::TriggerResultsBasedEventSelector | selectors_ |
std::unique_ptr < ThinnedAssociationsHelper > | thinnedAssociationsHelper_ |
bool | wantAllEvents_ |
Friends | |
template<typename T > | |
class | ::edm::OutputModuleCommunicatorT |
template<typename T > | |
class | ::edm::WorkerT |
template<typename U > | |
class | edm::maker::ModuleHolderT |
Definition at line 66 of file OutputModuleBase.h.
|
private |
Definition at line 186 of file OutputModuleBase.h.
Definition at line 71 of file OutputModuleBase.h.
|
explicit |
Definition at line 42 of file OutputModuleBase.cc.
References edm::detail::configureEventSelector(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, edm::ParameterSet::id(), process_name_, edm::ParameterSet::registerIt(), selector_config_id_, selectors_, and wantAllEvents_.
|
virtual |
Definition at line 177 of file OutputModuleBase.cc.
|
delete |
|
static |
Definition at line 367 of file OutputModuleBase.cc.
References edm::one::kBaseType().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 231 of file OutputModuleBase.h.
Referenced by doBeginJob().
|
inline |
Definition at line 99 of file OutputModuleBase.h.
References branchChildren_.
Referenced by edm::RootOutputFile::writeProductDependencies().
BranchIDLists const * OutputModuleBase::branchIDLists | ( | ) | const |
Definition at line 313 of file OutputModuleBase.cc.
References branchIDLists_, droppedBranchIDToKeptBranchID_, getDQMSummary::iter, and origBranchIDLists_.
Referenced by edm::RootOutputFile::writeBranchIDListRegistry().
|
protected |
Definition at line 78 of file OutputModuleBase.cc.
References edm::OutputModuleDescription::branchIDLists_, edm::OutputModuleDescription::maxEvents_, maxEvents_, origBranchIDLists_, and remainingEvents_.
|
privatevirtual |
Definition at line 179 of file OutputModuleBase.cc.
Referenced by doBeginJob().
|
protected |
Definition at line 338 of file OutputModuleBase.cc.
References moduleDescription_.
Referenced by DQMRootOutputModule::openFile(), and setEventSelectionInfo().
|
protected |
Definition at line 183 of file OutputModuleBase.cc.
References beginJob(), createAcquirer(), and resourcesAcquirer_.
|
protected |
Definition at line 247 of file OutputModuleBase.cc.
References doBeginLuminosityBlock_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::LuminosityBlockWatcher.
Definition at line 244 of file OutputModuleBase.h.
Referenced by doBeginLuminosityBlock().
|
protected |
Definition at line 225 of file OutputModuleBase.cc.
References doBeginRun_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::RunWatcher.
Definition at line 242 of file OutputModuleBase.h.
Referenced by doBeginRun().
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 300 of file OutputModuleBase.cc.
References branchChildren_, branchParents_, edm::BranchChildren::clear(), fillDependencyGraph(), isFileOpen(), and reallyCloseFile().
|
protected |
|
protected |
Definition at line 255 of file OutputModuleBase.cc.
References doEndLuminosityBlock_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::LuminosityBlockWatcher.
Definition at line 245 of file OutputModuleBase.h.
Referenced by doEndLuminosityBlock().
|
protected |
Definition at line 233 of file OutputModuleBase.cc.
References doEndRun_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::RunWatcher.
Definition at line 243 of file OutputModuleBase.h.
Referenced by doEndRun().
|
protected |
Definition at line 198 of file OutputModuleBase.cc.
References mutex_, remainingEvents_, resourcesAcquirer_, selectors_, updateBranchParents(), wantAllEvents_, edm::detail::TriggerResultsBasedEventSelector::wantEvent(), and write().
|
private |
Definition at line 267 of file OutputModuleBase.cc.
References openFile().
|
private |
Definition at line 285 of file OutputModuleBase.cc.
References postForkReacquireResources().
|
inlineprotected |
Definition at line 118 of file OutputModuleBase.h.
|
private |
Definition at line 280 of file OutputModuleBase.cc.
References preForkReleaseResources().
|
inlineprivate |
Definition at line 207 of file OutputModuleBase.h.
|
private |
Definition at line 275 of file OutputModuleBase.cc.
References doRespondToCloseInputFile_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::InputFileWatcher.
Definition at line 247 of file OutputModuleBase.h.
Referenced by doRespondToCloseInputFile().
|
private |
Definition at line 271 of file OutputModuleBase.cc.
References doRespondToOpenInputFile_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::InputFileWatcher.
Definition at line 246 of file OutputModuleBase.h.
Referenced by doRespondToOpenInputFile().
|
private |
Definition at line 262 of file OutputModuleBase.cc.
References writeLuminosityBlock().
|
private |
Definition at line 241 of file OutputModuleBase.cc.
References writeRun().
|
inlineprotected |
Definition at line 139 of file OutputModuleBase.h.
References droppedBranchIDToKeptBranchID_.
|
inlineprivatevirtual |
|
private |
Definition at line 396 of file OutputModuleBase.cc.
References branchChildren_, branchParents_, edm::ParentageRegistry::getMapped(), i, edm::BranchChildren::insertChild(), edm::ParentageRegistry::instance(), j, parents, and edm::Parentage::parents().
Referenced by doCloseFile().
|
static |
Definition at line 355 of file OutputModuleBase.cc.
References edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().
|
static |
Definition at line 348 of file OutputModuleBase.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
protected |
Definition at line 193 of file OutputModuleBase.cc.
References edm::detail::TriggerResultsBasedEventSelector::getOneTriggerResults(), and selectors_.
|
inline |
Definition at line 92 of file OutputModuleBase.h.
References hasNewlyDroppedBranch_.
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 236 of file OutputModuleBase.h.
Referenced by doCloseFile(), and maybeOpenFile().
|
private |
Definition at line 132 of file OutputModuleBase.cc.
References assert(), edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::EDConsumerBase::consumes(), edm::InEvent, edm::InLumi, HLT_25ns14e33_v1_cff::InputTag, edm::InRun, keptProducts_, edm::BranchDescription::moduleLabel(), edm::BranchDescription::originalBranchID(), edm::BranchDescription::processName(), edm::BranchDescription::produced(), edm::PRODUCT_TYPE, edm::BranchDescription::productInstanceName(), and edm::BranchDescription::unwrappedTypeID().
Referenced by selectProducts().
|
inline |
Definition at line 91 of file OutputModuleBase.h.
References keptProducts_.
Referenced by edm::PoolOutputModule::beginJob(), edm::PoolOutputModule::fillSelectedItemList(), and edm::RootOutputFile::finishEndFile().
|
inlineprivate |
Definition at line 260 of file OutputModuleBase.h.
References remainingEvents_.
|
inline |
Accessor for maximum number of events to be written. -1 is used for unlimited.
Definition at line 81 of file OutputModuleBase.h.
References maxEvents_.
|
private |
Tell the OutputModule to open an output file, if one is not already open.
Definition at line 296 of file OutputModuleBase.cc.
References isFileOpen(), and reallyOpenFile().
|
inline |
Definition at line 107 of file OutputModuleBase.h.
References moduleDescription_.
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 235 of file OutputModuleBase.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 |
|
privatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 293 of file OutputModuleBase.cc.
Referenced by doPostForkReacquireResources().
|
privatevirtual |
Definition at line 290 of file OutputModuleBase.cc.
Referenced by doPreForkReleaseResources().
|
static |
Definition at line 361 of file OutputModuleBase.cc.
|
inline |
Definition at line 90 of file OutputModuleBase.h.
References process_name_.
Referenced by DQMRootOutputModule::startEndFile().
|
privatevirtual |
Reimplemented in DQMRootOutputModule, and edm::PoolOutputModule.
Definition at line 309 of file OutputModuleBase.cc.
Referenced by doCloseFile().
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 237 of file OutputModuleBase.h.
Referenced by maybeOpenFile().
|
inlineprivate |
Definition at line 219 of file OutputModuleBase.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 85 of file OutputModuleBase.h.
References remainingEvents_.
Referenced by edm::PoolOutputModule::beginInputFile().
bool OutputModuleBase::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 343 of file OutputModuleBase.cc.
References productSelector_, and edm::ProductSelector::selected().
Referenced by selectProducts().
|
inlineprotected |
Definition at line 116 of file OutputModuleBase.h.
References selector_config_id_.
Referenced by edm::RootOutputFile::writeOne().
void OutputModuleBase::selectProducts | ( | ProductRegistry const & | preg, |
ThinnedAssociationsHelper const & | thinnedAssociationsHelper | ||
) |
Definition at line 83 of file OutputModuleBase.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::branchType(), droppedBranchIDToKeptBranchID_, edm::ProductSelector::fillDroppedToKept(), hasNewlyDroppedBranch_, edm::ProductSelector::initialize(), edm::ProductSelector::initialized(), keepAssociation_, keepThisBranch(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), productSelector_, productSelectorRules_, edm::ThinnedAssociationsHelper::selectAssociationProducts(), selected(), thinnedAssociationsHelper_, edm::BranchDescription::transient(), and edm::BranchDescription::unwrappedType().
|
protected |
Definition at line 372 of file OutputModuleBase.cc.
References description(), edm::getParameterSet(), edm::detail::registerProperSelectionInfo(), and selector_config_id_.
|
inlineprivate |
Definition at line 253 of file OutputModuleBase.h.
References popcon2dropbox_job_conf::md, and moduleDescription_.
|
inlineprivatevirtual |
Ask the OutputModule if we should end the current file.
Reimplemented in edm::PoolOutputModule, and edm::TimeoutPoolOutputModule.
Definition at line 228 of file OutputModuleBase.h.
ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper | ( | ) | const |
Definition at line 333 of file OutputModuleBase.cc.
References thinnedAssociationsHelper_.
Referenced by edm::RootOutputFile::writeThinnedAssociationsHelper().
|
private |
Definition at line 381 of file OutputModuleBase.cc.
References edm::Principal::begin(), branchChildren_, branchParents_, edm::Principal::end(), i, and edm::BranchChildren::insertEmpty().
Referenced by doEvent().
|
inline |
Definition at line 101 of file OutputModuleBase.h.
References wantAllEvents_.
Referenced by edm::PoolOutputModule::PoolOutputModule(), and edm::RootOutputFile::writeOne().
|
inlineprivate |
Definition at line 210 of file OutputModuleBase.h.
|
privatepure virtual |
Implemented in DQMRootOutputModule, edm::PoolOutputModule, and edm::TimeoutPoolOutputModule.
Referenced by doEvent(), and pkg.AbstractPkg::generate().
|
privatepure virtual |
Implemented in DQMRootOutputModule, and edm::PoolOutputModule.
Referenced by doWriteLuminosityBlock().
|
privatepure virtual |
Implemented in DQMRootOutputModule, and edm::PoolOutputModule.
Referenced by doWriteRun().
|
friend |
Definition at line 70 of file OutputModuleBase.h.
|
friend |
Definition at line 69 of file OutputModuleBase.h.
|
friend |
Definition at line 68 of file OutputModuleBase.h.
|
private |
Definition at line 189 of file OutputModuleBase.h.
Referenced by branchChildren(), doCloseFile(), fillDependencyGraph(), and updateBranchParents().
|
private |
Definition at line 180 of file OutputModuleBase.h.
Referenced by branchIDLists().
|
private |
Definition at line 187 of file OutputModuleBase.h.
Referenced by doCloseFile(), fillDependencyGraph(), and updateBranchParents().
|
private |
Definition at line 179 of file OutputModuleBase.h.
Referenced by branchIDLists(), droppedBranchIDToKeptBranchID(), and selectProducts().
|
private |
Definition at line 164 of file OutputModuleBase.h.
Referenced by hasNewlyDroppedBranch(), OutputModuleBase(), and selectProducts().
|
private |
Definition at line 184 of file OutputModuleBase.h.
Referenced by selectProducts().
|
private |
Definition at line 163 of file OutputModuleBase.h.
Referenced by keepThisBranch(), and keptProducts().
|
private |
Definition at line 145 of file OutputModuleBase.h.
Referenced by configure(), and maxEvents().
|
private |
Definition at line 169 of file OutputModuleBase.h.
Referenced by description(), moduleDescription(), and setModuleDescription().
|
private |
Definition at line 192 of file OutputModuleBase.h.
Referenced by doEvent().
|
private |
Definition at line 181 of file OutputModuleBase.h.
Referenced by branchIDLists(), and configure().
|
private |
Definition at line 166 of file OutputModuleBase.h.
Referenced by OutputModuleBase(), and processName().
|
private |
Definition at line 168 of file OutputModuleBase.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 167 of file OutputModuleBase.h.
Referenced by selectProducts().
|
private |
Definition at line 146 of file OutputModuleBase.h.
Referenced by configure(), doEvent(), limitReached(), and remainingEvents().
|
private |
Definition at line 191 of file OutputModuleBase.h.
Referenced by doBeginJob(), and doEvent().
|
private |
Definition at line 175 of file OutputModuleBase.h.
Referenced by OutputModuleBase(), selectorConfig(), and setEventSelectionInfo().
|
mutableprivate |
Definition at line 172 of file OutputModuleBase.h.
Referenced by doEvent(), getTriggerResults(), and OutputModuleBase().
|
private |
Definition at line 183 of file OutputModuleBase.h.
Referenced by selectProducts(), and thinnedAssociationsHelper().
|
private |
Definition at line 171 of file OutputModuleBase.h.
Referenced by doEvent(), OutputModuleBase(), and wantAllEvents().