LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "EDFilter.h"
Public Types | |
using | ModuleType = EDFilter |
template<typename UserConfig > | |
using | Table = Modifier::Table< UserConfig > |
Public Member Functions | |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
void | fillProductDescriptions () |
void | registerProducts (ProductDescriptions &productsToRegister) |
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) |
Static Public Attributes | |
static constexpr bool | Pass {true} |
static constexpr bool | Fail {false} |
Protected Member Functions | |
EDFilter (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDFilter (Table< Config > const &config) | |
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 Types | |
using | base_engine_t = EngineCreator::base_engine_t |
using | seed_t = EngineCreator::seed_t |
using | label_t = EngineCreator::label_t |
Private Member Functions | |
std::unique_ptr< Worker > | doMakeWorker (WorkerParams const &wp) final |
void | setupQueues (detail::SharedResources const &resources) final |
void | beginJobWithFrame (ProcessingFrame const &) final |
void | endJobWithFrame (ProcessingFrame const &) final |
void | respondToOpenInputFileWithFrame (FileBlock const &, ProcessingFrame const &) final |
void | respondToCloseInputFileWithFrame (FileBlock const &, ProcessingFrame const &) final |
void | respondToOpenOutputFilesWithFrame (FileBlock const &, ProcessingFrame const &) final |
void | respondToCloseOutputFilesWithFrame (FileBlock const &, ProcessingFrame const &) final |
bool | beginRunWithFrame (Run &, ProcessingFrame const &) final |
bool | endRunWithFrame (Run &, ProcessingFrame const &) final |
bool | beginSubRunWithFrame (SubRun &, ProcessingFrame const &) final |
bool | endSubRunWithFrame (SubRun &, ProcessingFrame const &) final |
bool | filterWithFrame (Event &, ProcessingFrame const &) final |
virtual void | beginJob () |
virtual void | endJob () |
virtual void | respondToOpenInputFile (FileBlock const &) |
virtual void | respondToCloseInputFile (FileBlock const &) |
virtual void | respondToOpenOutputFiles (FileBlock const &) |
virtual void | respondToCloseOutputFiles (FileBlock const &) |
virtual bool | beginRun (Run &) |
virtual bool | endRun (Run &) |
virtual bool | beginSubRun (SubRun &) |
virtual bool | endSubRun (SubRun &) |
virtual bool | filter (Event &)=0 |
ScheduleID | scheduleID () const noexcept |
hep::concurrency::SerialTaskQueueChain * | serialTaskQueueChain () const |
std::set< std::string > const & | sharedResources () const |
void | createQueues (SharedResources const &resources) |
template<BranchType BT = InEvent, typename... T> | |
void | serialize (T const &...) |
template<BranchType , typename... T> | |
void | serialize (T const &...resources) |
template<BranchType BT = InEvent, typename... T> | |
void | serializeExternal (T const &...) |
template<BranchType , typename... T> | |
void | serializeExternal (T const &...resources) |
template<BranchType BT = InEvent> | |
void | async () |
Definition at line 16 of file EDFilter.h.
|
inherited |
Definition at line 19 of file LegacyModule.h.
|
inherited |
Definition at line 21 of file LegacyModule.h.
using art::EDFilter::ModuleType = EDFilter |
Definition at line 18 of file EDFilter.h.
|
inherited |
Definition at line 20 of file LegacyModule.h.
|
inherited |
|
explicitprotected |
Definition at line 6 of file EDFilter.cc.
|
inlineexplicitprotected |
Definition at line 27 of file EDFilter.h.
References beginJob(), beginJobWithFrame(), beginRun(), beginRunWithFrame(), beginSubRun(), beginSubRunWithFrame(), art::detail::EngineCreator::createEngine(), doMakeWorker(), endJob(), endJobWithFrame(), endRun(), endRunWithFrame(), endSubRun(), endSubRunWithFrame(), filter(), filterWithFrame(), art::ProducerTable< UserConfig, ImplicitConfig, UserKeysToIgnore >::get_PSet(), respondToCloseInputFile(), respondToCloseInputFileWithFrame(), respondToCloseOutputFiles(), respondToCloseOutputFilesWithFrame(), respondToOpenInputFile(), respondToOpenInputFileWithFrame(), respondToOpenOutputFiles(), respondToOpenOutputFilesWithFrame(), art::detail::LegacyModule::scheduleID(), and setupQueues().
|
inlineprotectedinherited |
Definition at line 38 of file SharedModule.h.
References art::detail::SharedModule::asyncDeclared_, art::detail::SharedModule::implicit_serialize(), art::InEvent, and art::detail::SharedModule::serialize_for().
|
privatevirtual |
Reimplemented in simfilter::FilterGenInTime, and filt::FinalStateParticleFilter.
Definition at line 95 of file EDFilter.cc.
Referenced by beginJobWithFrame(), and EDFilter().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 51 of file EDFilter.cc.
References beginJob().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 119 of file EDFilter.cc.
Referenced by beginRunWithFrame(), and EDFilter().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 63 of file EDFilter.cc.
References beginRun().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 131 of file EDFilter.cc.
Referenced by beginSubRunWithFrame(), and EDFilter().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 75 of file EDFilter.cc.
References beginSubRun().
Referenced by EDFilter().
|
protectedinherited |
Definition at line 61 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().
|
protectedinherited |
|
protectedinherited |
Definition at line 75 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().
|
protectedinherited |
|
inherited |
Definition at line 68 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().
|
inherited |
Definition at line 34 of file SharedModule.cc.
References art::detail::SharedModule::asyncDeclared_, util::cbegin(), util::cend(), art::detail::SharedModule::chain_, art::detail::SharedResources::createQueues(), e, util::empty(), art::errors::LogicError, and art::detail::SharedModule::resourceNames_.
Referenced by art::OutputModule::doBeginJob(), art::SharedFilter::setupQueues(), art::SharedProducer::setupQueues(), art::SharedAnalyzer::setupQueues(), setupQueues(), art::EDProducer::setupQueues(), and art::EDAnalyzer::setupQueues().
|
inherited |
|
inherited |
Definition at line 72 of file Filter.cc.
References art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 92 of file Filter.cc.
References art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().
|
inherited |
|
inherited |
Definition at line 82 of file Filter.cc.
References art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 102 of file Filter.cc.
References art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 112 of file Filter.cc.
References e, art::EventPrincipal::makeEvent(), and art::ModuleContext::scheduleID().
|
finalprivatevirtual |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privatevirtual |
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 57 of file EDFilter.cc.
References endJob().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 125 of file EDFilter.cc.
Referenced by EDFilter(), and endRunWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 69 of file EDFilter.cc.
References endRun().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 137 of file EDFilter.cc.
Referenced by EDFilter(), and endSubRunWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 81 of file EDFilter.cc.
References endSubRun().
Referenced by EDFilter().
|
inherited |
Definition at line 10 of file Modifier.cc.
References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().
|
privatepure virtual |
Implemented in art::MixFilter< T, IOPolicy >, filter::MuonFilter, simfilter::FilterGenInTime, cluster::SmallClusterFilter, simfilter::FilterNoDirtNeutrinos, filter::EventTimeFilter, filter::ADCFilter, filt::FinalStateParticleFilter, simfilter::FilterCryostatNus, simfilter::FilterPrimaryPDG, filt::LArG4ParticleFilter, and filter::EventFilter.
Referenced by EDFilter(), and filterWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 87 of file EDFilter.cc.
References filter(), and art::ProcessingFrame::scheduleID().
Referenced by EDFilter().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
inherited |
Definition at line 37 of file ModuleBase.cc.
References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.
|
protectedinherited |
Definition at line 82 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().
|
protectedinherited |
Definition at line 96 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().
|
protectedinherited |
|
inherited |
Definition at line 89 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().
|
inherited |
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().
|
inherited |
Definition at line 16 of file Modifier.cc.
References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 107 of file EDFilter.cc.
Referenced by EDFilter(), and respondToCloseInputFileWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 30 of file EDFilter.cc.
References respondToCloseInputFile().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 115 of file EDFilter.cc.
Referenced by EDFilter(), and respondToCloseOutputFilesWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 44 of file EDFilter.cc.
References respondToCloseOutputFiles().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 103 of file EDFilter.cc.
Referenced by EDFilter(), and respondToOpenInputFileWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 23 of file EDFilter.cc.
References respondToOpenInputFile().
Referenced by EDFilter().
|
privatevirtual |
Reimplemented in art::MixFilter< T, IOPolicy >.
Definition at line 111 of file EDFilter.cc.
Referenced by EDFilter(), and respondToOpenOutputFilesWithFrame().
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 37 of file EDFilter.cc.
References respondToOpenOutputFiles().
Referenced by EDFilter().
|
noexceptinherited |
Definition at line 12 of file LegacyModule.cc.
References art::detail::LegacyModule::scheduleID_.
Referenced by art::EDAnalyzer::EDAnalyzer(), EDFilter(), and art::EDProducer::EDProducer().
|
protectedinherited |
|
inherited |
Definition at line 83 of file SharedModule.h.
References art::detail::SharedModule::serialize_for_resource().
|
protectedinherited |
Referenced by wcls::WireCellToolkit::WireCellToolkit().
|
inherited |
Definition at line 90 of file SharedModule.h.
References art::detail::SharedModule::serialize_for_external_resource().
|
inherited |
Definition at line 22 of file SharedModule.cc.
References art::detail::SharedModule::chain_.
|
inherited |
|
finalprivatevirtual |
Implements art::detail::Filter.
Definition at line 17 of file EDFilter.cc.
References art::detail::SharedModule::createQueues().
Referenced by EDFilter().
|
inherited |
Definition at line 28 of file SharedModule.cc.
References art::detail::SharedModule::resourceNames_.
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
staticinherited |
|
staticinherited |