#include <OutputModule.h>
Public Types | |
typedef OutputModule | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings()) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions | |
void | configure (OutputModuleDescription const &desc) |
ModuleDescription const & | description () const |
void | doBeginJob () |
bool | doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *mcc) |
bool | doBeginRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *mcc) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *mcc) |
bool | doEndRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *mcc) |
bool | doEvent (EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *act, ModuleCallingContext const *mcc) |
void | doPreallocate (PreallocationConfiguration const &) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
Trig | getTriggerResults (EDGetTokenT< TriggerResults > const &token, EventForOutput const &e) const |
ModuleDescription const & | moduleDescription () const |
void | preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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 Attributes | |
edm::propagate_const< std::unique_ptr< BranchIDLists > > | branchIDLists_ |
std::map< BranchID::value_type, BranchID::value_type > | droppedBranchIDToKeptBranchID_ |
std::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
std::map< BranchID, bool > | keepAssociation_ |
SelectedProductsForBranchType | keptProducts_ |
SerialTaskQueue | luminosityBlockQueue_ |
int | maxEvents_ |
ModuleDescription | moduleDescription_ |
BranchIDLists const * | origBranchIDLists_ |
std::string | process_name_ |
ProductSelector | productSelector_ |
ProductSelectorRules | productSelectorRules_ |
std::atomic< int > | remainingEvents_ |
SharedResourcesAcquirer | resourceAcquirer_ |
SerialTaskQueue | runQueue_ |
ParameterSet | selectEvents_ |
ParameterSetID | selector_config_id_ |
std::vector< detail::TriggerResultsBasedEventSelector > | selectors_ |
edm::propagate_const< 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 54 of file OutputModule.h.
Definition at line 62 of file OutputModule.h.
|
explicit |
Definition at line 40 of file OutputModule.cc.
References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, edm::ParameterSet::id(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, process_name_, edm::ParameterSet::registerIt(), edm::SharedResourcesRegistry::registerSharedResource(), selectEvents_, selector_config_id_, selectors_, and wantAllEvents_.
|
override |
Definition at line 175 of file OutputModule.cc.
|
delete |
|
static |
Definition at line 372 of file OutputModule.cc.
References edm::kBaseType().
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlineprivatevirtual |
BranchIDLists const * edm::OutputModule::branchIDLists | ( | ) |
Definition at line 329 of file OutputModule.cc.
References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.
|
protected |
Definition at line 75 of file OutputModule.cc.
References edm::OutputModuleDescription::branchIDLists_, edm::OutputModuleDescription::maxEvents_, maxEvents_, origBranchIDLists_, and remainingEvents_.
|
protected |
Definition at line 353 of file OutputModule.cc.
References moduleDescription_.
Referenced by setEventSelectionInfo().
|
protected |
Definition at line 190 of file OutputModule.cc.
References beginJob(), edm::SharedResourcesRegistry::createAcquirer(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and resourceAcquirer_.
|
protected |
Definition at line 288 of file OutputModule.cc.
References beginLuminosityBlock(), FDEBUG, moduleDescription_, and edm::OccurrenceForOutput::setConsumer().
|
protected |
Definition at line 263 of file OutputModule.cc.
References beginRun(), FDEBUG, moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 321 of file OutputModule.cc.
References isFileOpen(), and reallyCloseFile().
|
protected |
|
protected |
Definition at line 298 of file OutputModule.cc.
References endLuminosityBlock(), FDEBUG, moduleDescription_, and edm::OccurrenceForOutput::setConsumer().
|
protected |
Definition at line 271 of file OutputModule.cc.
References endRun(), FDEBUG, moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().
|
protected |
Definition at line 229 of file OutputModule.cc.
References MillePedeFileConverter_cfg::e, FDEBUG, moduleDescription_, remainingEvents_, edm::OccurrenceForOutput::setConsumer(), and write().
|
private |
|
protected |
Definition at line 177 of file OutputModule.cc.
References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::PreallocationConfiguration::numberOfStreams(), process_name_, alignCSCRings::s, selectEvents_, and selectors_.
|
inlineprivate |
Definition at line 206 of file OutputModule.h.
|
private |
Definition at line 319 of file OutputModule.cc.
References respondToCloseInputFile().
|
private |
Definition at line 317 of file OutputModule.cc.
References respondToOpenInputFile().
|
private |
Definition at line 308 of file OutputModule.cc.
References FDEBUG, moduleDescription_, edm::OccurrenceForOutput::setConsumer(), and writeLuminosityBlock().
|
private |
Definition at line 279 of file OutputModule.cc.
References FDEBUG, moduleDescription_, alignCSCRings::r, edm::OccurrenceForOutput::setConsumer(), and writeRun().
|
inlineprotected |
Definition at line 147 of file OutputModule.h.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
static |
Definition at line 363 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(), edm::GetProductCheckerOutputModule::fillDescriptions(), NanoAODOutputModule::fillDescriptions(), and DQMRootOutputModule::fillDescriptions().
|
static |
Definition at line 357 of file OutputModule.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
protected |
Definition at line 199 of file OutputModule.cc.
References edm::OccurrenceForOutput::getByToken(), and mps_fire::result.
|
inline |
Definition at line 98 of file OutputModule.h.
|
inline |
Definition at line 97 of file OutputModule.h.
|
inlineprivate |
Definition at line 242 of file OutputModule.h.
|
inlineprivate |
Definition at line 241 of file OutputModule.h.
|
inline |
Definition at line 83 of file OutputModule.h.
References edm::ProductSelectorRules::defaultSelectionStrings(), fillDescriptions(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivatevirtual |
|
private |
Definition at line 133 of file OutputModule.cc.
References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::checkDictionary(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::BranchDescription::className(), 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(), AlCaHLTBitMon_QueryRunRegistry::string, edm::throwMissingDictionariesException(), edm::BranchDescription::unwrappedType(), and edm::BranchDescription::unwrappedTypeID().
Referenced by selectProducts().
|
inline |
Definition at line 82 of file OutputModule.h.
Referenced by edm::GetProductCheckerOutputModule::write(), edm::ProvenanceCheckerOutputModule::write(), edm::GetProductCheckerOutputModule::writeLuminosityBlock(), and edm::GetProductCheckerOutputModule::writeRun().
|
inlineprivate |
Definition at line 252 of file OutputModule.h.
|
inline |
Accessor for maximum number of events to be written. -1 is used for unlimited.
Definition at line 72 of file OutputModule.h.
|
inlineprotected |
Definition at line 115 of file OutputModule.h.
|
private |
|
inlineprivatevirtual |
Definition at line 235 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 |
|
inlineprotected |
Definition at line 128 of file OutputModule.h.
References genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 220 of file OutputModule.cc.
References MillePedeFileConverter_cfg::e, moduleDescription_, alignCSCRings::s, selectors_, edm::OccurrenceForOutput::setConsumer(), and wantAllEvents_.
|
static |
Definition at line 369 of file OutputModule.cc.
References edm::kBaseType(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 81 of file OutputModule.h.
Referenced by edm::StreamerOutputModuleBase::beginRun().
|
private |
Definition at line 208 of file OutputModule.cc.
References mps_fire::i, gen::n, alignCSCRings::s, selectors_, and edm::EDConsumerBase::uncheckedIndexFrom().
|
privatevirtual |
|
inlineprivate |
Definition at line 217 of file OutputModule.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 76 of file OutputModule.h.
|
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().
|
inlineprotected |
Definition at line 117 of file OutputModule.h.
References EnergyCorrector::c.
Referenced by edm::PoolOutputModule::whyNotFastClonable().
void edm::OutputModule::selectProducts | ( | ProductRegistry const & | preg, |
ThinnedAssociationsHelper const & | thinnedAssociationsHelper | ||
) |
Definition at line 80 of file OutputModule.cc.
References edm::ProductRegistry::allBranchDescriptions(), TrackValidation_cff::association, edm::BranchDescription::branchType(), droppedBranchIDToKeptBranchID_, edm::ProductSelector::fillDroppedToKept(), hasNewlyDroppedBranch_, edm::ProductSelector::initialize(), edm::ProductSelector::initialized(), edm::insertSelectedProcesses(), keepAssociation_, keepThisBranch(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), productSelector_, productSelectorRules_, edm::ThinnedAssociationsHelper::selectAssociationProducts(), selected(), setProcessesWithSelectedMergeableRunProducts(), thinnedAssociationsHelper_, edm::BranchDescription::transient(), and edm::BranchDescription::unwrappedType().
|
protected |
Definition at line 374 of file OutputModule.cc.
References description(), edm::getParameterSet(), edm::detail::registerProperSelectionInfo(), and selector_config_id_.
|
inlineprivate |
Definition at line 250 of file OutputModule.h.
|
inlineprivatevirtual |
|
inline |
Definition at line 99 of file OutputModule.h.
|
inlineprivatevirtual |
Ask the OutputModule if we should end the current file.
Definition at line 224 of file OutputModule.h.
References TriggerAnalyzer::write().
ThinnedAssociationsHelper const * edm::OutputModule::thinnedAssociationsHelper | ( | ) | const |
Definition at line 349 of file OutputModule.cc.
References thinnedAssociationsHelper_.
|
inline |
Definition at line 101 of file OutputModule.h.
References heppy_report::description, MillePedeFileConverter_cfg::e, and dqmoffline::l1t::getTriggerResults().
|
inlinestatic |
Definition at line 93 of file OutputModule.h.
|
inlinestatic |
Definition at line 92 of file OutputModule.h.
|
inlinestatic |
Definition at line 95 of file OutputModule.h.
|
inlinestatic |
Definition at line 94 of file OutputModule.h.
|
inlineprivate |
Definition at line 208 of file OutputModule.h.
|
privatepure virtual |
Implemented in edm::GetProductCheckerOutputModule, and edm::ProvenanceCheckerOutputModule.
Referenced by doEvent(), and pkg.AbstractPkg::generate().
|
privatepure virtual |
Implemented in edm::GetProductCheckerOutputModule, and edm::ProvenanceCheckerOutputModule.
Referenced by doWriteLuminosityBlock().
|
privatepure virtual |
Implemented in edm::GetProductCheckerOutputModule, and edm::ProvenanceCheckerOutputModule.
Referenced by doWriteRun().
|
friend |
Definition at line 57 of file OutputModule.h.
|
friend |
Definition at line 61 of file OutputModule.h.
|
friend |
Definition at line 59 of file OutputModule.h.
|
private |
Definition at line 188 of file OutputModule.h.
Referenced by branchIDLists().
|
private |
Definition at line 187 of file OutputModule.h.
Referenced by branchIDLists(), and selectProducts().
|
private |
Definition at line 171 of file OutputModule.h.
Referenced by OutputModule(), and selectProducts().
|
private |
Definition at line 192 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 170 of file OutputModule.h.
Referenced by keepThisBranch().
|
private |
Definition at line 196 of file OutputModule.h.
|
private |
Definition at line 152 of file OutputModule.h.
Referenced by configure().
|
private |
Definition at line 176 of file OutputModule.h.
Referenced by description(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), doWriteLuminosityBlock(), doWriteRun(), and prePrefetchSelection().
|
private |
Definition at line 189 of file OutputModule.h.
Referenced by branchIDLists(), and configure().
|
private |
Definition at line 173 of file OutputModule.h.
Referenced by doPreallocate(), and OutputModule().
|
private |
Definition at line 175 of file OutputModule.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 174 of file OutputModule.h.
Referenced by selectProducts().
|
private |
Definition at line 153 of file OutputModule.h.
Referenced by configure(), and doEvent().
|
private |
Definition at line 194 of file OutputModule.h.
Referenced by doBeginJob().
|
private |
Definition at line 195 of file OutputModule.h.
|
private |
Definition at line 182 of file OutputModule.h.
Referenced by doPreallocate(), and OutputModule().
|
private |
Definition at line 183 of file OutputModule.h.
Referenced by OutputModule(), and setEventSelectionInfo().
|
private |
Definition at line 179 of file OutputModule.h.
Referenced by doPreallocate(), OutputModule(), prePrefetchSelection(), and productsUsedBySelection().
|
private |
Definition at line 191 of file OutputModule.h.
Referenced by selectProducts(), and thinnedAssociationsHelper().
|
private |
Definition at line 178 of file OutputModule.h.
Referenced by needToRunSelection(), OutputModule(), and prePrefetchSelection().