LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::MixFilter< T, IOPolicy > Class Template Reference

#include "MixFilter.h"

Inheritance diagram for art::MixFilter< T, IOPolicy >:
art::EDFilter art::detail::Filter art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Types

using MixDetail = T
 
using Parameters = typename detail::maybe_has_Parameters< T >::Parameters
 
using ModuleType = EDFilter
 
template<typename UserConfig >
using Table = Modifier::Table< UserConfig >
 

Public Member Functions

template<typename U = Parameters>
 MixFilter (std::enable_if_t< std::is_same_v< U, fhicl::ParameterSet >, fhicl::ParameterSet > const &p)
 
template<typename U = Parameters>
 MixFilter (std::enable_if_t<!std::is_same_v< U, fhicl::ParameterSet >, U > const &p)
 
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 &current_process_name)
 
std::unique_ptr< WorkermakeWorker (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

ConsumesCollectorconsumesCollector ()
 
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

void respondToOpenInputFile (FileBlock const &fb) override
 
void respondToCloseInputFile (FileBlock const &fb) override
 
void respondToOpenOutputFiles (FileBlock const &fb) override
 
void respondToCloseOutputFiles (FileBlock const &fb) override
 
bool filter (Event &e) override
 
bool beginSubRun (SubRun &sr) override
 
bool endSubRun (SubRun &sr) override
 
bool beginRun (Run &r) override
 
bool endRun (Run &r) override
 

Private Attributes

MixHelper helper_
 
MixDetail detail_
 

Detailed Description

template<typename T, typename IOPolicy>
class art::MixFilter< T, IOPolicy >

Definition at line 155 of file MixFilter.h.

Member Typedef Documentation

template<typename T , typename IOPolicy >
using art::MixFilter< T, IOPolicy >::MixDetail = T

Definition at line 384 of file MixFilter.h.

Definition at line 18 of file EDFilter.h.

template<typename T , typename IOPolicy >
using art::MixFilter< T, IOPolicy >::Parameters = typename detail::maybe_has_Parameters<T>::Parameters

Definition at line 386 of file MixFilter.h.

template<typename UserConfig >
using art::detail::Filter::Table = Modifier::Table<UserConfig>
inherited

Definition at line 32 of file Filter.h.

Constructor & Destructor Documentation

template<typename T , typename IOPolicy >
template<typename U >
art::MixFilter< T, IOPolicy >::MixFilter ( std::enable_if_t< std::is_same_v< U, fhicl::ParameterSet >, fhicl::ParameterSet > const &  p)
explicit

Definition at line 412 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_, art::MixFilter< T, IOPolicy >::helper_, art::ProductRegistryHelper::producesCollector(), and art::MixHelper::setEventsToSkipFunction().

415  : EDFilter{p}
416  , helper_{p,
417  p.template get<std::string>("module_label"),
419  std::make_unique<IOPolicy>()}
420  , detail_{p, helper_}
421 {
422  if constexpr (detail::has_eventsToSkip<T>::value) {
423  helper_.setEventsToSkipFunction([this] { return detail_.eventsToSkip(); });
424  }
425 }
void setEventsToSkipFunction(std::function< size_t()> eventsToSkip)
Definition: MixHelper.cc:360
MixHelper helper_
Definition: MixFilter.h:406
double value
Definition: spectrum.C:18
ProducesCollector & producesCollector() noexcept
EDFilter(fhicl::ParameterSet const &pset)
Definition: EDFilter.cc:6
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
template<typename U >
art::MixFilter< T, IOPolicy >::MixFilter ( std::enable_if_t<!std::is_same_v< U, fhicl::ParameterSet >, U > const &  p)
explicit

Definition at line 429 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_, art::MixFilter< T, IOPolicy >::helper_, art::ProductRegistryHelper::producesCollector(), and art::MixHelper::setEventsToSkipFunction().

431  : EDFilter{p}
432  , helper_{p().mixHelper(),
433  p.get_PSet().template get<std::string>("module_label"),
435  std::make_unique<IOPolicy>()}
436  , detail_{p().userConfig, helper_}
437 {
438  if constexpr (detail::has_eventsToSkip<T>::value) {
439  helper_.setEventsToSkipFunction([this] { return detail_.eventsToSkip(); });
440  }
441 }
void setEventsToSkipFunction(std::function< size_t()> eventsToSkip)
Definition: MixHelper.cc:360
MixHelper helper_
Definition: MixFilter.h:406
double value
Definition: spectrum.C:18
ProducesCollector & producesCollector() noexcept
EDFilter(fhicl::ParameterSet const &pset)
Definition: EDFilter.cc:6
MixDetail detail_
Definition: MixFilter.h:407

Member Function Documentation

template<typename T , typename IOPolicy >
bool art::MixFilter< T, IOPolicy >::beginRun ( Run r)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 546 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

547 {
548  if constexpr (detail::has_beginRun<T>::value) {
549  detail_.beginRun(r);
550  }
551  return true;
552 }
TRandom r
Definition: spectrum.C:23
double value
Definition: spectrum.C:18
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
bool art::MixFilter< T, IOPolicy >::beginSubRun ( SubRun sr)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 526 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

527 {
528  if constexpr (detail::has_beginSubRun<T>::value) {
529  detail_.beginSubRun(sr);
530  }
531  return true;
532 }
double value
Definition: spectrum.C:18
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::consumes ( InputTag const &  tag)
protectedinherited

Definition at line 61 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().

62  {
63  return collector_.consumes<T, BT>(tag);
64  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ProductToken< T > consumes(InputTag const &)
ConsumesCollector & art::ModuleBase::consumesCollector ( )
protectedinherited

Definition at line 57 of file ModuleBase.cc.

References art::ModuleBase::collector_.

58  {
59  return collector_;
60  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename T , BranchType BT>
void art::ModuleBase::consumesMany ( )
protectedinherited

Definition at line 75 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().

76  {
77  collector_.consumesMany<T, BT>();
78  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::consumesView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::consumesView ( InputTag const &  tag)
inherited

Definition at line 68 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().

69  {
70  return collector_.consumesView<T, BT>(tag);
71  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ViewToken< Element > consumesView(InputTag const &)
void art::detail::Filter::doBeginJob ( SharedResources const &  resources)
inherited

Definition at line 29 of file Filter.cc.

30  {
31  setupQueues(resources);
32  ProcessingFrame const frame{ScheduleID{}};
33  beginJobWithFrame(frame);
34  }
virtual void setupQueues(SharedResources const &)=0
virtual void beginJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Filter::doBeginRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited

Definition at line 72 of file Filter.cc.

References art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().

73  {
74  auto r = rp.makeRun(mc, RangeSet::forRun(rp.runID()));
75  ProcessingFrame const frame{mc.scheduleID()};
76  bool const rc = beginRunWithFrame(r, frame);
77  r.commitProducts();
78  return rc;
79  }
TRandom r
Definition: spectrum.C:23
virtual bool beginRunWithFrame(Run &, ProcessingFrame const &)=0
static RangeSet forRun(RunID)
Definition: RangeSet.cc:51
bool art::detail::Filter::doBeginSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited

Definition at line 92 of file Filter.cc.

References art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().

93  {
94  auto sr = srp.makeSubRun(mc, RangeSet::forSubRun(srp.subRunID()));
95  ProcessingFrame const frame{mc.scheduleID()};
96  bool const rc = beginSubRunWithFrame(sr, frame);
97  sr.commitProducts();
98  return rc;
99  }
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:57
virtual bool beginSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
void art::detail::Filter::doEndJob ( )
inherited

Definition at line 37 of file Filter.cc.

38  {
39  ProcessingFrame const frame{ScheduleID{}};
40  endJobWithFrame(frame);
41  }
virtual void endJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Filter::doEndRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited

Definition at line 82 of file Filter.cc.

References art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().

83  {
84  auto r = rp.makeRun(mc, rp.seenRanges());
85  ProcessingFrame const frame{mc.scheduleID()};
86  bool const rc = endRunWithFrame(r, frame);
87  r.commitProducts();
88  return rc;
89  }
TRandom r
Definition: spectrum.C:23
virtual bool endRunWithFrame(Run &, ProcessingFrame const &)=0
bool art::detail::Filter::doEndSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited

Definition at line 102 of file Filter.cc.

References art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().

103  {
104  auto sr = srp.makeSubRun(mc, srp.seenRanges());
105  ProcessingFrame const frame{mc.scheduleID()};
106  bool const rc = endSubRunWithFrame(sr, frame);
107  sr.commitProducts();
108  return rc;
109  }
virtual bool endSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
bool art::detail::Filter::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 
)
inherited

Definition at line 112 of file Filter.cc.

References e, art::EventPrincipal::makeEvent(), and art::ModuleContext::scheduleID().

117  {
118  auto e = ep.makeEvent(mc);
119  ++counts_run;
120  ProcessingFrame const frame{mc.scheduleID()};
121  bool const rc = filterWithFrame(e, frame);
122  e.commitProducts(checkPutProducts_, &expectedProducts<InEvent>());
123  if (rc) {
124  ++counts_passed;
125  } else {
126  ++counts_failed;
127  }
128  return rc;
129  }
virtual bool filterWithFrame(Event &, ProcessingFrame const &)=0
bool const checkPutProducts_
Definition: Filter.h:75
Float_t e
Definition: plot.C:35
void art::detail::Filter::doRespondToCloseInputFile ( FileBlock const &  fb)
inherited

Definition at line 51 of file Filter.cc.

52  {
53  ProcessingFrame const frame{ScheduleID{}};
55  }
TFile fb("Li6.root")
virtual void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Filter::doRespondToCloseOutputFiles ( FileBlock const &  fb)
inherited

Definition at line 65 of file Filter.cc.

66  {
67  ProcessingFrame const frame{ScheduleID{}};
69  }
TFile fb("Li6.root")
virtual void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Filter::doRespondToOpenInputFile ( FileBlock const &  fb)
inherited

Definition at line 44 of file Filter.cc.

45  {
46  ProcessingFrame const frame{ScheduleID{}};
48  }
TFile fb("Li6.root")
virtual void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Filter::doRespondToOpenOutputFiles ( FileBlock const &  fb)
inherited

Definition at line 58 of file Filter.cc.

59  {
60  ProcessingFrame const frame{ScheduleID{}};
62  }
TFile fb("Li6.root")
virtual void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
template<typename T , typename IOPolicy >
bool art::MixFilter< T, IOPolicy >::endRun ( Run r)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 556 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

557 {
558  if constexpr (detail::has_endRun<T>::value) {
559  detail_.endRun(r);
560  }
561  return true;
562 }
TRandom r
Definition: spectrum.C:23
double value
Definition: spectrum.C:18
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
bool art::MixFilter< T, IOPolicy >::endSubRun ( SubRun sr)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 536 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

537 {
538  if constexpr (detail::has_endSubRun<T>::value) {
539  detail_.endSubRun(sr);
540  }
541  return true;
542 }
double value
Definition: spectrum.C:18
MixDetail detail_
Definition: MixFilter.h:407
void art::Modifier::fillProductDescriptions ( )
inherited

Definition at line 10 of file Modifier.cc.

References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().

11  {
13  }
void fillDescriptions(ModuleDescription const &md)
ModuleDescription const & moduleDescription() const
Definition: ModuleBase.cc:13
template<typename T , typename IOPolicy >
bool art::MixFilter< T, IOPolicy >::filter ( Event e)
overrideprivatevirtual

Implements art::EDFilter.

Definition at line 481 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_, art::errors::FileReadError, art::MixHelper::generateEventAuxiliarySequence(), art::MixHelper::generateEventSequence(), art::MixFilter< T, IOPolicy >::helper_, and art::MixHelper::mixAndPut().

482 {
483  // 1. Call detail object's startEvent() if it exists.
484  if constexpr (detail::has_startEvent<T>::value) {
485  detail_.startEvent(e);
486  }
487 
488  // 2. Ask detail object how many events to read.
489  size_t const nSecondaries = detail_.nSecondaries();
490 
491  // 3. Decide which events we're reading and prime the event tree
492  // cache.
493  EntryNumberSequence enSeq;
494  EventIDSequence eIDseq;
495  enSeq.reserve(nSecondaries);
496  eIDseq.reserve(nSecondaries);
497  if (!helper_.generateEventSequence(nSecondaries, enSeq, eIDseq)) {
499  << "Insufficient secondary events available to mix.\n";
500  }
501 
502  // 4. Give the event ID sequence to the detail object.
504  detail_.processEventIDs(eIDseq);
505  }
506 
507  // 5. Give the event auxiliary sequence to the detail object.
509  auto const auxseq = helper_.generateEventAuxiliarySequence(enSeq);
510  detail_.processEventAuxiliaries(auxseq);
511  }
512 
513  // 6. Make the MixHelper read info into all the products, invoke the
514  // mix functions and put the products into the event.
515  helper_.mixAndPut(enSeq, eIDseq, e);
516 
517  // 7. Call detail object's finalizeEvent() if it exists.
518  if constexpr (detail::has_finalizeEvent<T>::value) {
519  detail_.finalizeEvent(e);
520  }
521  return true;
522 }
std::vector< EventID > EventIDSequence
Definition: MixTypes.h:26
void mixAndPut(EntryNumberSequence const &enSeq, EventIDSequence const &eIDseq, Event &e)
Definition: MixHelper.cc:289
bool generateEventSequence(size_t nSecondaries, EntryNumberSequence &enSeq, EventIDSequence &eIDseq)
Definition: MixHelper.cc:193
std::vector< FileIndex::EntryNumber_t > EntryNumberSequence
Definition: MixTypes.h:27
MixHelper helper_
Definition: MixFilter.h:406
double value
Definition: spectrum.C:18
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
EventAuxiliarySequence generateEventAuxiliarySequence(EntryNumberSequence const &)
Definition: MixHelper.cc:279
Float_t e
Definition: plot.C:35
MixDetail detail_
Definition: MixFilter.h:407
std::array< std::vector< ProductInfo >, NumBranchTypes > const & art::ModuleBase::getConsumables ( ) const
inherited

Definition at line 43 of file ModuleBase.cc.

References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().

44  {
45  return collector_.getConsumables();
46  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables() const
std::unique_ptr< Worker > art::ModuleBase::makeWorker ( WorkerParams const &  wp)
inherited

Definition at line 37 of file ModuleBase.cc.

References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.

38  {
39  return doMakeWorker(wp);
40  }
virtual std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp)=0
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::mayConsume ( InputTag const &  tag)
protectedinherited

Definition at line 82 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().

83  {
84  return collector_.mayConsume<T, BT>(tag);
85  }
ProductToken< T > mayConsume(InputTag const &)
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename T , BranchType BT>
void art::ModuleBase::mayConsumeMany ( )
protectedinherited

Definition at line 96 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().

97  {
98  collector_.mayConsumeMany<T, BT>();
99  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::mayConsumeView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::mayConsumeView ( InputTag const &  tag)
inherited

Definition at line 89 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().

90  {
91  return collector_.mayConsumeView<T, BT>(tag);
92  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ViewToken< Element > mayConsumeView(InputTag const &)
ModuleDescription const & art::ModuleBase::moduleDescription ( ) const
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().

14  {
15  if (md_.has_value()) {
16  return *md_;
17  }
18 
20  "There was an error while calling moduleDescription().\n"}
21  << "The moduleDescription() base-class member function cannot be called\n"
22  "during module construction. To determine which module is "
23  "responsible\n"
24  "for calling it, find the '<module type>:<module "
25  "label>@Construction'\n"
26  "tag in the message prefix above. Please contact artists@fnal.gov\n"
27  "for guidance.\n";
28  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
std::optional< ModuleDescription > md_
Definition: ModuleBase.h:55
void art::Modifier::registerProducts ( ProductDescriptions productsToRegister)
inherited

Definition at line 16 of file Modifier.cc.

References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().

17  {
18  ProductRegistryHelper::registerProducts(productsToRegister,
20  }
void registerProducts(ProductDescriptions &productsToRegister, ModuleDescription const &md)
ModuleDescription const & moduleDescription() const
Definition: ModuleBase.cc:13
template<typename T , typename IOPolicy >
void art::MixFilter< T, IOPolicy >::respondToCloseInputFile ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 454 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

455 {
457  detail_.respondToCloseInputFile(fb);
458  }
459 }
double value
Definition: spectrum.C:18
TFile fb("Li6.root")
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
void art::MixFilter< T, IOPolicy >::respondToCloseOutputFiles ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 472 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

473 {
475  detail_.respondToCloseOutputFiles(fb);
476  }
477 }
double value
Definition: spectrum.C:18
TFile fb("Li6.root")
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
void art::MixFilter< T, IOPolicy >::respondToOpenInputFile ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 445 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

446 {
448  detail_.respondToOpenInputFile(fb);
449  }
450 }
double value
Definition: spectrum.C:18
TFile fb("Li6.root")
MixDetail detail_
Definition: MixFilter.h:407
template<typename T , typename IOPolicy >
void art::MixFilter< T, IOPolicy >::respondToOpenOutputFiles ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from art::EDFilter.

Definition at line 463 of file MixFilter.h.

References art::MixFilter< T, IOPolicy >::detail_.

464 {
466  detail_.respondToOpenOutputFiles(fb);
467  }
468 }
double value
Definition: spectrum.C:18
TFile fb("Li6.root")
MixDetail detail_
Definition: MixFilter.h:407
void art::ModuleBase::setModuleDescription ( ModuleDescription const &  md)
inherited

Definition at line 31 of file ModuleBase.cc.

References art::ModuleBase::md_.

32  {
33  md_ = md;
34  }
std::optional< ModuleDescription > md_
Definition: ModuleBase.h:55
void art::ModuleBase::sortConsumables ( std::string const &  current_process_name)
inherited

Definition at line 49 of file ModuleBase.cc.

References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().

50  {
51  // Now that we know we have seen all the consumes declarations,
52  // sort the results for fast lookup later.
53  collector_.sortConsumables(current_process_name);
54  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
void sortConsumables(std::string const &current_process_name)

Member Data Documentation

constexpr bool art::detail::Filter::Fail {false}
staticinherited

Definition at line 29 of file Filter.h.

template<typename T , typename IOPolicy >
MixHelper art::MixFilter< T, IOPolicy >::helper_
private
constexpr bool art::detail::Filter::Pass {true}
staticinherited

Definition at line 28 of file Filter.h.


The documentation for this class was generated from the following file: