#include <OutputModule.h>
Public Types | |
typedef OutputModule | 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 *mcc) |
bool | doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *mcc) |
bool | doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc) |
bool | doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *act, ModuleCallingContext const *mcc) |
void | doPreallocate (PreallocationConfiguration const &) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
Trig | getTriggerResults (EventPrincipal const &ep, ModuleCallingContext const *) const |
ModuleDescription const & | moduleDescription () 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 | resourceAcquirer_ |
ParameterSetID | selector_config_id_ |
detail::TriggerResultsBasedEventSelector | selectors_ |
std::unique_ptr < ThinnedAssociationsHelper > | thinnedAssociationsHelper_ |
bool | wantAllEvents_ |
Friends | |
template<typename T > | |
class | maker::ModuleHolderT |
template<typename T > | |
class | OutputModuleCommunicatorT |
template<typename T > | |
class | WorkerT |
Definition at line 50 of file OutputModule.h.
|
private |
Definition at line 173 of file OutputModule.h.
Definition at line 55 of file OutputModule.h.
|
explicit |
Definition at line 33 of file OutputModule.cc.
References edm::detail::configureEventSelector(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, edm::ParameterSet::id(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, process_name_, edm::ParameterSet::registerIt(), edm::SharedResourcesRegistry::registerSharedResource(), selector_config_id_, selectors_, and wantAllEvents_.
|
virtual |
Definition at line 171 of file OutputModule.cc.
|
delete |
|
static |
Definition at line 379 of file OutputModule.cc.
References edm::kBaseType().
|
inlineprivatevirtual |
Reimplemented in evf::RecoEventOutputModuleForFU< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 214 of file OutputModule.h.
Referenced by doBeginJob().
|
inlineprivatevirtual |
Reimplemented in evf::RecoEventOutputModuleForFU< Consumer >, and RawEventOutputModuleForBU< Consumer >.
Definition at line 219 of file OutputModule.h.
Referenced by doBeginLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in RawEventOutputModuleForBU< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 216 of file OutputModule.h.
Referenced by doBeginRun().
|
inline |
BranchIDLists const * edm::OutputModule::branchIDLists | ( | ) | const |
Definition at line 325 of file OutputModule.cc.
References branchIDLists_, droppedBranchIDToKeptBranchID_, getDQMSummary::iter, and origBranchIDLists_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
|
protected |
Definition at line 72 of file OutputModule.cc.
References edm::OutputModuleDescription::branchIDLists_, edm::OutputModuleDescription::maxEvents_, maxEvents_, origBranchIDLists_, and remainingEvents_.
|
protected |
Definition at line 350 of file OutputModule.cc.
References moduleDescription_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry(), and setEventSelectionInfo().
|
protected |
Definition at line 173 of file OutputModule.cc.
References beginJob(), edm::SharedResourcesRegistry::createAcquirer(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and resourceAcquirer_.
|
protected |
Definition at line 263 of file OutputModule.cc.
References beginLuminosityBlock(), and FDEBUG.
|
protected |
Definition at line 238 of file OutputModule.cc.
References beginRun(), and FDEBUG.
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 312 of file OutputModule.cc.
References branchChildren_, branchParents_, edm::BranchChildren::clear(), fillDependencyGraph(), isFileOpen(), and reallyCloseFile().
|
protected |
|
protected |
Definition at line 272 of file OutputModule.cc.
References endLuminosityBlock(), and FDEBUG.
|
protected |
Definition at line 247 of file OutputModule.cc.
References endRun(), and FDEBUG.
|
protected |
Definition at line 192 of file OutputModule.cc.
References FDEBUG, mutex_, remainingEvents_, resourceAcquirer_, selectors_, updateBranchParents(), wantAllEvents_, edm::detail::TriggerResultsBasedEventSelector::wantEvent(), and write().
|
private |
|
private |
Definition at line 304 of file OutputModule.cc.
References postForkReacquireResources().
|
inlineprotected |
Definition at line 105 of file OutputModule.h.
|
private |
Definition at line 299 of file OutputModule.cc.
References preForkReleaseResources().
|
inlineprivate |
Definition at line 191 of file OutputModule.h.
|
private |
Definition at line 294 of file OutputModule.cc.
References respondToCloseInputFile().
|
private |
Definition at line 290 of file OutputModule.cc.
References respondToOpenInputFile().
|
private |
Definition at line 280 of file OutputModule.cc.
References FDEBUG, and writeLuminosityBlock().
|
private |
Definition at line 256 of file OutputModule.cc.
References FDEBUG, and writeRun().
|
inlineprotected |
Definition at line 126 of file OutputModule.h.
References droppedBranchIDToKeptBranchID_.
|
inlineprivatevirtual |
Reimplemented in edm::StreamerOutputModuleBase.
Definition at line 215 of file OutputModule.h.
Referenced by doEndJob().
|
inlineprivatevirtual |
Reimplemented in evf::RecoEventOutputModuleForFU< Consumer >, and RawEventOutputModuleForBU< Consumer >.
Definition at line 220 of file OutputModule.h.
Referenced by doEndLuminosityBlock().
|
inlineprivatevirtual |
Reimplemented in RawEventOutputModuleForBU< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 217 of file OutputModule.h.
Referenced by doEndRun().
|
private |
Definition at line 408 of file OutputModule.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 367 of file OutputModule.cc.
References edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().
Referenced by edm::StreamerOutputModuleBase::fillDescription(), edm::PoolOutputModule::fillDescription(), edm::AsciiOutputModule::fillDescriptions(), edm::ProvenanceCheckerOutputModule::fillDescriptions(), and edm::GetProductCheckerOutputModule::fillDescriptions().
|
static |
Definition at line 360 of file OutputModule.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
protected |
Definition at line 185 of file OutputModule.cc.
References edm::detail::TriggerResultsBasedEventSelector::getOneTriggerResults(), and selectors_.
Referenced by edm::StreamerOutputModuleBase::setHltMask().
|
inline |
Definition at line 76 of file OutputModule.h.
References hasNewlyDroppedBranch_.
|
inlineprivatevirtual |
Definition at line 228 of file OutputModule.h.
Referenced by doCloseFile(), and maybeOpenFile().
|
private |
Definition at line 126 of file OutputModule.cc.
References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::EDConsumerBase::consumes(), edm::InEvent, edm::InLumi, 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 75 of file OutputModule.h.
References keptProducts_.
|
inlineprivate |
Definition at line 243 of file OutputModule.h.
References remainingEvents_.
|
inline |
Accessor for maximum number of events to be written. -1 is used for unlimited.
Definition at line 65 of file OutputModule.h.
References maxEvents_.
|
private |
Tell the OutputModule to open an output file, if one is not already open.
Definition at line 308 of file OutputModule.cc.
References isFileOpen(), and reallyOpenFile().
|
inlineprotected |
Definition at line 100 of file OutputModule.h.
References moduleDescription_.
|
inlineprivatevirtual |
Definition at line 222 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 |
|
inlineprivatevirtual |
|
static |
Definition at line 373 of file OutputModule.cc.
|
inline |
Definition at line 74 of file OutputModule.h.
References process_name_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
|
privatevirtual |
|
inlineprivatevirtual |
|
inlineprivate |
Definition at line 208 of file OutputModule.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 69 of file OutputModule.h.
References remainingEvents_.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
bool edm::OutputModule::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 355 of file OutputModule.cc.
References productSelector_, and edm::ProductSelector::selected().
Referenced by selectProducts(), and edm::AsciiOutputModule::write().
|
inlineprotected |
Definition at line 103 of file OutputModule.h.
References selector_config_id_.
Referenced by edm::StreamerOutputModuleBase::serializeEvent().
void edm::OutputModule::selectProducts | ( | ProductRegistry const & | preg, |
ThinnedAssociationsHelper const & | thinnedAssociationsHelper | ||
) |
Definition at line 77 of file OutputModule.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(), edm::TypeWithDict::typeInfo(), and edm::BranchDescription::unwrappedType().
|
protected |
Definition at line 384 of file OutputModule.cc.
References description(), edm::getParameterSet(), edm::detail::registerProperSelectionInfo(), and selector_config_id_.
|
inlineprivate |
Definition at line 236 of file OutputModule.h.
References popcon2dropbox_job_conf::md, and moduleDescription_.
|
inlineprivatevirtual |
Ask the OutputModule if we should end the current file.
Definition at line 211 of file OutputModule.h.
ThinnedAssociationsHelper const * edm::OutputModule::thinnedAssociationsHelper | ( | ) | const |
Definition at line 345 of file OutputModule.cc.
References thinnedAssociationsHelper_.
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
|
private |
Definition at line 393 of file OutputModule.cc.
References edm::Principal::begin(), branchChildren_, branchParents_, edm::Principal::end(), i, and edm::BranchChildren::insertEmpty().
Referenced by doEvent().
|
inline |
|
inlineprivate |
Definition at line 194 of file OutputModule.h.
|
privatepure virtual |
Implemented in edm::GetProductCheckerOutputModule, edm::ProvenanceCheckerOutputModule, RawEventOutputModuleForBU< Consumer >, edm::AsciiOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doEvent(), and pkg.AbstractPkg::generate().
|
privatepure virtual |
|
privatepure virtual |
Implemented in edm::GetProductCheckerOutputModule, RawEventOutputModuleForBU< Consumer >, edm::ProvenanceCheckerOutputModule, edm::AsciiOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doWriteRun().
|
friend |
Definition at line 52 of file OutputModule.h.
|
friend |
Definition at line 54 of file OutputModule.h.
|
friend |
Definition at line 53 of file OutputModule.h.
|
private |
Definition at line 176 of file OutputModule.h.
Referenced by branchChildren(), doCloseFile(), fillDependencyGraph(), and updateBranchParents().
|
private |
Definition at line 167 of file OutputModule.h.
Referenced by branchIDLists().
|
private |
Definition at line 174 of file OutputModule.h.
Referenced by doCloseFile(), fillDependencyGraph(), and updateBranchParents().
|
private |
Definition at line 166 of file OutputModule.h.
Referenced by branchIDLists(), droppedBranchIDToKeptBranchID(), and selectProducts().
|
private |
Definition at line 151 of file OutputModule.h.
Referenced by hasNewlyDroppedBranch(), OutputModule(), and selectProducts().
|
private |
Definition at line 171 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 150 of file OutputModule.h.
Referenced by keepThisBranch(), and keptProducts().
|
private |
Definition at line 132 of file OutputModule.h.
Referenced by configure(), and maxEvents().
|
private |
Definition at line 156 of file OutputModule.h.
Referenced by description(), moduleDescription(), and setModuleDescription().
|
private |
Definition at line 179 of file OutputModule.h.
Referenced by doEvent().
|
private |
Definition at line 168 of file OutputModule.h.
Referenced by branchIDLists(), and configure().
|
private |
Definition at line 153 of file OutputModule.h.
Referenced by OutputModule(), and processName().
|
private |
Definition at line 155 of file OutputModule.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 154 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 133 of file OutputModule.h.
Referenced by configure(), doEvent(), limitReached(), and remainingEvents().
|
private |
Definition at line 178 of file OutputModule.h.
Referenced by doBeginJob(), and doEvent().
|
private |
Definition at line 162 of file OutputModule.h.
Referenced by OutputModule(), selectorConfig(), and setEventSelectionInfo().
|
mutableprivate |
Definition at line 159 of file OutputModule.h.
Referenced by doEvent(), getTriggerResults(), and OutputModule().
|
private |
Definition at line 170 of file OutputModule.h.
Referenced by selectProducts(), and thinnedAssociationsHelper().
|
private |
Definition at line 158 of file OutputModule.h.
Referenced by doEvent(), OutputModule(), and wantAllEvents().