#include <OutputModuleBase.h>
Public Types | |
typedef OutputModuleBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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, EventSetupImpl const &c, ModuleCallingContext const *) |
bool | doBeginRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *) |
bool | doEndRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *) |
bool | doEvent (EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *) |
void | doPreallocate (PreallocationConfiguration const &) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
virtual void | preallocLumis (unsigned int) |
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 | resourcesAcquirer_ |
SerialTaskQueue | runQueue_ |
ParameterSet | selectEvents_ |
ParameterSetID | selector_config_id_ |
std::vector< detail::TriggerResultsBasedEventSelector > | selectors_ |
SubProcessParentageHelper const * | subProcessParentageHelper_ |
edm::propagate_const< 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 68 of file OutputModuleBase.h.
Definition at line 76 of file OutputModuleBase.h.
|
explicit |
Definition at line 45 of file OutputModuleBase.cc.
References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, edm::ParameterSet::id(), process_name_, edm::ParameterSet::registerIt(), selectEvents_, selector_config_id_, selectors_, and wantAllEvents_.
|
override |
Definition at line 181 of file OutputModuleBase.cc.
|
delete |
|
static |
Definition at line 358 of file OutputModuleBase.cc.
References edm::one::kBaseType().
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, evf::RecoEventOutputModuleForFU< Consumer >, and edm::StreamerOutputModuleBase.
Definition at line 239 of file OutputModuleBase.h.
Referenced by doBeginJob().
BranchIDLists const * OutputModuleBase::branchIDLists | ( | ) |
Definition at line 316 of file OutputModuleBase.cc.
References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.
Referenced by edm::StreamerOutputModuleBase::beginRun(), and evf::EvFOutputModule::beginRun().
|
protected |
Definition at line 79 of file OutputModuleBase.cc.
References edm::OutputModuleDescription::branchIDLists_, edm::OutputModuleDescription::maxEvents_, maxEvents_, origBranchIDLists_, remainingEvents_, edm::OutputModuleDescription::subProcessParentageHelper_, and subProcessParentageHelper_.
|
privatevirtual |
|
protected |
Definition at line 340 of file OutputModuleBase.cc.
References moduleDescription_.
Referenced by edm::StreamerOutputModuleBase::beginRun(), evf::EvFOutputModule::beginRun(), NanoAODOutputModule::openFile(), DQMRootOutputModule::openFile(), and setEventSelectionInfo().
|
protected |
Definition at line 206 of file OutputModuleBase.cc.
References beginJob(), createAcquirer(), and resourcesAcquirer_.
|
protected |
Definition at line 276 of file OutputModuleBase.cc.
References doBeginLuminosityBlock_(), moduleDescription_, and edm::OccurrenceForOutput::setConsumer().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::LuminosityBlockCacheHolder< C >, and edm::one::outputmodule::LuminosityBlockWatcher.
Definition at line 248 of file OutputModuleBase.h.
Referenced by doBeginLuminosityBlock(), and edm::one::outputmodule::LuminosityBlockWatcher::~LuminosityBlockWatcher().
|
protected |
Definition at line 254 of file OutputModuleBase.cc.
References doBeginRun_(), moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::RunCacheHolder< C >, and edm::one::outputmodule::RunWatcher.
Definition at line 246 of file OutputModuleBase.h.
Referenced by doBeginRun().
|
private |
Tell the OutputModule that is must end the current file.
Definition at line 308 of file OutputModuleBase.cc.
References isFileOpen(), and reallyCloseFile().
|
protected |
|
protected |
Definition at line 285 of file OutputModuleBase.cc.
References doEndLuminosityBlock_(), moduleDescription_, and edm::OccurrenceForOutput::setConsumer().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::LuminosityBlockCacheHolder< C >, and edm::one::outputmodule::LuminosityBlockWatcher.
Definition at line 249 of file OutputModuleBase.h.
Referenced by doEndLuminosityBlock(), and edm::one::outputmodule::LuminosityBlockWatcher::~LuminosityBlockWatcher().
|
protected |
Definition at line 261 of file OutputModuleBase.cc.
References doEndRun_(), moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::RunCacheHolder< C >, and edm::one::outputmodule::RunWatcher.
Definition at line 247 of file OutputModuleBase.h.
Referenced by doEndRun().
|
protected |
Definition at line 238 of file OutputModuleBase.cc.
References MillePedeFileConverter_cfg::e, moduleDescription_, remainingEvents_, edm::OccurrenceForOutput::setConsumer(), and write().
|
private |
Definition at line 302 of file OutputModuleBase.cc.
References openFile().
|
protected |
Definition at line 188 of file OutputModuleBase.cc.
References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfStreams(), preallocLumis(), process_name_, alignCSCRings::s, selectEvents_, and selectors_.
|
inlineprivate |
Definition at line 214 of file OutputModuleBase.h.
|
private |
Definition at line 306 of file OutputModuleBase.cc.
References doRespondToCloseInputFile_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::InputFileWatcher.
Definition at line 251 of file OutputModuleBase.h.
Referenced by doRespondToCloseInputFile(), and edm::one::outputmodule::InputFileWatcher::~InputFileWatcher().
|
private |
Definition at line 304 of file OutputModuleBase.cc.
References doRespondToOpenInputFile_().
|
inlineprivatevirtual |
Reimplemented in edm::one::outputmodule::InputFileWatcher.
Definition at line 250 of file OutputModuleBase.h.
Referenced by doRespondToOpenInputFile(), and edm::one::outputmodule::InputFileWatcher::~InputFileWatcher().
|
private |
Definition at line 295 of file OutputModuleBase.cc.
References moduleDescription_, edm::OccurrenceForOutput::setConsumer(), and writeLuminosityBlock().
|
private |
Definition at line 268 of file OutputModuleBase.cc.
References moduleDescription_, alignCSCRings::r, edm::OccurrenceForOutput::setConsumer(), and writeRun().
|
inlineprotected |
Definition at line 150 of file OutputModuleBase.h.
|
inlineprivatevirtual |
Reimplemented in edm::StreamerOutputModuleBase.
Definition at line 240 of file OutputModuleBase.h.
Referenced by doEndJob().
|
static |
Definition at line 350 of file OutputModuleBase.cc.
References edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().
Referenced by evf::EvFOutputModule::fillDescriptions().
|
static |
Definition at line 344 of file OutputModuleBase.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
inlinevirtual |
Reimplemented in edm::one::OutputModule< T >, edm::one::OutputModule<>, edm::one::OutputModule< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks >, edm::one::OutputModule< WatchInputFiles >, and edm::one::OutputModule< one::WatchRuns, one::WatchLuminosityBlocks >.
Definition at line 111 of file OutputModuleBase.h.
|
inlinevirtual |
Reimplemented in edm::one::OutputModule< T >, edm::one::OutputModule<>, edm::one::OutputModule< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks >, edm::one::OutputModule< WatchInputFiles >, and edm::one::OutputModule< one::WatchRuns, one::WatchLuminosityBlocks >.
Definition at line 110 of file OutputModuleBase.h.
|
inlineprivate |
Definition at line 256 of file OutputModuleBase.h.
|
inlineprivate |
Definition at line 255 of file OutputModuleBase.h.
|
inline |
Definition at line 97 of file OutputModuleBase.h.
References fillDescriptions(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, and NanoAODOutputModule.
Definition at line 244 of file OutputModuleBase.h.
Referenced by doCloseFile().
|
private |
Definition at line 139 of file OutputModuleBase.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 96 of file OutputModuleBase.h.
Referenced by evf::EvFOutputModule::beginRun(), edm::PoolOutputModule::fillSelectedItemList(), and NanoAODOutputModule::openFile().
|
inlineprivate |
Definition at line 264 of file OutputModuleBase.h.
|
inline |
Accessor for maximum number of events to be written. -1 is used for unlimited.
Definition at line 86 of file OutputModuleBase.h.
|
inline |
Definition at line 122 of file OutputModuleBase.h.
References heppy_report::description.
Referenced by edm::StreamerOutputModuleBase::beginRun(), and evf::EvFOutputModule::beginRun().
|
private |
|
inlineprivatevirtual |
Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, and NanoAODOutputModule.
Definition at line 243 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 |
|
inlineprivatevirtual |
|
protectedvirtual |
Reimplemented in edm::one::outputmodule::LuminosityBlockCacheHolder< C >.
Definition at line 204 of file OutputModuleBase.cc.
Referenced by doPreallocate().
|
private |
Definition at line 227 of file OutputModuleBase.cc.
References MillePedeFileConverter_cfg::e, moduleDescription_, alignCSCRings::s, selectors_, edm::OccurrenceForOutput::setConsumer(), and wantAllEvents_.
|
static |
Definition at line 355 of file OutputModuleBase.cc.
References edm::one::kBaseType(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 95 of file OutputModuleBase.h.
Referenced by DQMRootOutputModule::startEndFile().
|
private |
Definition at line 215 of file OutputModuleBase.cc.
References mps_fire::i, gen::n, alignCSCRings::s, selectors_, and edm::EDConsumerBase::uncheckedIndexFrom().
|
privatevirtual |
Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, and NanoAODOutputModule.
Definition at line 314 of file OutputModuleBase.cc.
Referenced by doCloseFile().
|
inlineprivate |
Definition at line 221 of file OutputModuleBase.h.
|
inline |
Accessor for remaining number of events to be written. -1 is used for unlimited.
Definition at line 90 of file OutputModuleBase.h.
Referenced by edm::PoolOutputModule::beginInputFile().
bool OutputModuleBase::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 342 of file OutputModuleBase.cc.
References productSelector_, and edm::ProductSelector::selected().
Referenced by selectProducts().
|
inlineprotected |
Definition at line 127 of file OutputModuleBase.h.
References EnergyCorrector::c, genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::StreamerOutputModuleBase::write(), and evf::EvFOutputModule::write().
void OutputModuleBase::selectProducts | ( | ProductRegistry const & | preg, |
ThinnedAssociationsHelper const & | thinnedAssociationsHelper | ||
) |
Definition at line 85 of file OutputModuleBase.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 360 of file OutputModuleBase.cc.
References description(), edm::getParameterSet(), edm::detail::registerProperSelectionInfo(), and selector_config_id_.
|
inlineprivate |
Definition at line 262 of file OutputModuleBase.h.
|
inlineprivatevirtual |
Reimplemented in edm::PoolOutputModule.
Definition at line 253 of file OutputModuleBase.h.
Referenced by selectProducts().
|
inline |
Definition at line 112 of file OutputModuleBase.h.
|
inlineprivatevirtual |
Ask the OutputModule if we should end the current file.
Reimplemented in edm::PoolOutputModule, and edm::TimeoutPoolOutputModule.
Definition at line 232 of file OutputModuleBase.h.
References TriggerAnalyzer::write().
|
inline |
Definition at line 120 of file OutputModuleBase.h.
Referenced by edm::PoolOutputModule::updateBranchParents().
ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper | ( | ) | const |
Definition at line 336 of file OutputModuleBase.cc.
References thinnedAssociationsHelper_.
Referenced by edm::StreamerOutputModuleBase::beginRun(), and evf::EvFOutputModule::beginRun().
|
inline |
Definition at line 114 of file OutputModuleBase.h.
Referenced by edm::PoolOutputModule::PoolOutputModule().
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 108 of file OutputModuleBase.h.
|
inline |
Definition at line 107 of file OutputModuleBase.h.
|
inlineprivate |
Definition at line 216 of file OutputModuleBase.h.
|
privatepure virtual |
Implemented in DQMRootOutputModule, edm::PoolOutputModule, evf::EvFOutputModule, NanoAODOutputModule, RawEventOutputModuleForBU< Consumer >, edm::TimeoutPoolOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doEvent(), and pkg.AbstractPkg::generate().
|
privatepure virtual |
Implemented in DQMRootOutputModule, edm::PoolOutputModule, evf::EvFOutputModule, NanoAODOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doWriteLuminosityBlock().
|
privatepure virtual |
Implemented in DQMRootOutputModule, edm::PoolOutputModule, evf::EvFOutputModule, NanoAODOutputModule, and edm::StreamerOutputModuleBase.
Referenced by doWriteRun().
|
friend |
Definition at line 75 of file OutputModuleBase.h.
|
friend |
Definition at line 73 of file OutputModuleBase.h.
|
friend |
Definition at line 71 of file OutputModuleBase.h.
|
private |
Definition at line 191 of file OutputModuleBase.h.
Referenced by branchIDLists().
|
private |
Definition at line 190 of file OutputModuleBase.h.
Referenced by branchIDLists(), and selectProducts().
|
private |
Definition at line 174 of file OutputModuleBase.h.
Referenced by OutputModuleBase(), and selectProducts().
|
private |
Definition at line 197 of file OutputModuleBase.h.
Referenced by selectProducts().
|
private |
Definition at line 173 of file OutputModuleBase.h.
Referenced by keepThisBranch().
|
private |
Definition at line 201 of file OutputModuleBase.h.
|
private |
Definition at line 155 of file OutputModuleBase.h.
Referenced by configure().
|
private |
Definition at line 179 of file OutputModuleBase.h.
Referenced by description(), doBeginLuminosityBlock(), doBeginRun(), doEndLuminosityBlock(), doEndRun(), doEvent(), doWriteLuminosityBlock(), doWriteRun(), and prePrefetchSelection().
|
private |
Definition at line 192 of file OutputModuleBase.h.
Referenced by branchIDLists(), and configure().
|
private |
Definition at line 176 of file OutputModuleBase.h.
Referenced by doPreallocate(), and OutputModuleBase().
|
private |
Definition at line 178 of file OutputModuleBase.h.
Referenced by selected(), and selectProducts().
|
private |
Definition at line 177 of file OutputModuleBase.h.
Referenced by selectProducts().
|
private |
Definition at line 156 of file OutputModuleBase.h.
Referenced by configure(), and doEvent().
|
private |
Definition at line 199 of file OutputModuleBase.h.
Referenced by doBeginJob().
|
private |
Definition at line 200 of file OutputModuleBase.h.
|
private |
Definition at line 183 of file OutputModuleBase.h.
Referenced by doPreallocate(), and OutputModuleBase().
|
private |
Definition at line 186 of file OutputModuleBase.h.
Referenced by OutputModuleBase(), and setEventSelectionInfo().
|
private |
Definition at line 182 of file OutputModuleBase.h.
Referenced by doPreallocate(), OutputModuleBase(), prePrefetchSelection(), and productsUsedBySelection().
|
private |
Definition at line 194 of file OutputModuleBase.h.
Referenced by configure().
|
private |
Definition at line 196 of file OutputModuleBase.h.
Referenced by selectProducts(), and thinnedAssociationsHelper().
|
private |
Definition at line 181 of file OutputModuleBase.h.
Referenced by needToRunSelection(), OutputModuleBase(), and prePrefetchSelection().