LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ModuleBase.h"
Public Member Functions | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
std::unique_ptr< Worker > | makeWorker (WorkerParams const &wp) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Protected Member Functions | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
Private Member Functions | |
virtual std::unique_ptr< Worker > | doMakeWorker (WorkerParams const &wp)=0 |
Private Attributes | |
std::optional< ModuleDescription > | md_ {std::nullopt} |
ConsumesCollector | collector_ |
Definition at line 20 of file ModuleBase.h.
|
virtualdefaultnoexcept |
|
default |
|
protected |
Definition at line 61 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::consumes().
|
protected |
|
protected |
Definition at line 75 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::consumesMany().
|
protected |
ViewToken<T> art::ModuleBase::consumesView | ( | InputTag const & | tag | ) |
Definition at line 68 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::consumesView().
|
privatepure virtual |
Implemented in art::OutputModule, art::ResultsProducer, art::ReplicatedAnalyzer, art::EDAnalyzer, art::ReplicatedProducer, art::ReplicatedFilter, art::EDFilter, art::EDProducer, art::SharedAnalyzer, art::SharedProducer, and art::SharedFilter.
Referenced by makeWorker().
std::array< std::vector< ProductInfo >, NumBranchTypes > const & art::ModuleBase::getConsumables | ( | ) | const |
Definition at line 43 of file ModuleBase.cc.
References collector_, and art::ConsumesCollector::getConsumables().
std::unique_ptr< Worker > art::ModuleBase::makeWorker | ( | WorkerParams const & | wp | ) |
Definition at line 37 of file ModuleBase.cc.
References doMakeWorker(), and art::NumBranchTypes.
|
protected |
Definition at line 82 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::mayConsume().
|
protected |
Definition at line 96 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::mayConsumeMany().
|
protected |
ViewToken<T> art::ModuleBase::mayConsumeView | ( | InputTag const & | tag | ) |
Definition at line 89 of file ModuleBase.h.
References collector_, and art::ConsumesCollector::mayConsumeView().
ModuleDescription const & art::ModuleBase::moduleDescription | ( | ) | const |
Definition at line 13 of file ModuleBase.cc.
References art::errors::LogicError.
Referenced by art::OutputModule::doRespondToOpenInputFile(), art::OutputModule::doWriteEvent(), art::Modifier::fillProductDescriptions(), art::OutputModule::makePlugins_(), art::OutputWorker::OutputWorker(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Modifier::registerProducts(), and art::OutputModule::registerProducts().
void art::ModuleBase::setModuleDescription | ( | ModuleDescription const & | md | ) |
void art::ModuleBase::sortConsumables | ( | std::string const & | current_process_name | ) |
Definition at line 49 of file ModuleBase.cc.
References collector_, and art::ConsumesCollector::sortConsumables().
|
private |
Definition at line 56 of file ModuleBase.h.
Referenced by consumes(), consumesCollector(), consumesMany(), consumesView(), getConsumables(), mayConsume(), mayConsumeMany(), mayConsumeView(), and sortConsumables().
|
private |
Definition at line 55 of file ModuleBase.h.
Referenced by setModuleDescription().