Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
arttest::ToyProductFilterReplicated Class Reference
Inheritance diagram for arttest::ToyProductFilterReplicated:
art::ReplicatedFilter art::detail::Filter art::detail::EngineCreator art::Modifier art::ModuleBase art::ProductRegistryHelper

Classes

struct  Config
 

Public Types

using Parameters = Table< Config >
 
- Public Types inherited from art::ReplicatedFilter
using ModuleType = ReplicatedFilter
 
using WorkerType = WorkerT< ReplicatedFilter >
 
- Public Types inherited from art::detail::Filter
template<typename UserConfig >
using Table = Modifier::Table< UserConfig >
 
- Public Types inherited from art::Modifier
template<typename UserConfig , typename UserKeysToIgnore = void>
using Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore >
 

Public Member Functions

 ToyProductFilterReplicated (Parameters const &p, ProcessingFrame const &)
 
 ~ToyProductFilterReplicated ()
 
- Public Member Functions inherited from art::ReplicatedFilter
std::string workerType () const
 
 ReplicatedFilter (fhicl::ParameterSet const &pset, ProcessingFrame const &frame)
 
template<typename Config >
 ReplicatedFilter (Table< Config > const &config, ProcessingFrame const &frame)
 
- Public Member Functions inherited from art::detail::Filter
virtual ~Filter () noexcept
 
 Filter ()
 
 Filter (fhicl::ParameterSet const &)
 
 Filter (Filter const &)=delete
 
 Filter (Filter &&)=delete
 
Filteroperator= (Filter const &)=delete
 
Filteroperator= (Filter &&)=delete
 
void doBeginJob ()
 
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)
 
- Public Member Functions inherited from art::Modifier
virtual ~Modifier () noexcept
 
 Modifier ()
 
 Modifier (Modifier const &)=delete
 
 Modifier (Modifier &&)=delete
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (Modifier &&)=delete
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
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 ()
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Member Functions

void beginJob (ProcessingFrame const &) override
 
void respondToOpenInputFile (FileBlock const &, ProcessingFrame const &) override
 
void respondToCloseInputFile (FileBlock const &, ProcessingFrame const &) override
 
void respondToOpenOutputFiles (FileBlock const &, ProcessingFrame const &) override
 
void respondToCloseOutputFiles (FileBlock const &, ProcessingFrame const &) override
 
void beginRun (Run const &, ProcessingFrame const &) override
 
void beginSubRun (SubRun const &, ProcessingFrame const &) override
 
bool filter (Event &, ProcessingFrame const &) override
 
void endSubRun (SubRun const &, ProcessingFrame const &) override
 
void endRun (Run const &, ProcessingFrame const &) override
 
void endJob (ProcessingFrame const &) override
 

Private Attributes

bool const outputModuleConfigured_
 
bool beginJobCalled_ {false}
 
bool respondToOpenInputFileCalled_ {false}
 
bool respondToCloseInputFileCalled_ {false}
 
bool respondToOpenOutputFilesCalled_ {false}
 
bool respondToCloseOutputFilesCalled_ {false}
 
bool beginRunCalled_ {false}
 
bool beginSubRunCalled_ {false}
 
bool endSubRunCalled_ {false}
 
bool endRunCalled_ {false}
 
bool endJobCalled_ {false}
 

Additional Inherited Members

- Static Public Attributes inherited from art::detail::Filter
static constexpr bool Pass {true}
 
static constexpr bool Fail {false}
 

Detailed Description

Definition at line 36 of file ToyProductFilterReplicated_module.cc.

Member Typedef Documentation

Definition at line 42 of file ToyProductFilterReplicated_module.cc.

Constructor & Destructor Documentation

arttest::ToyProductFilterReplicated::ToyProductFilterReplicated ( Parameters const &  p,
ProcessingFrame const &  frame 
)
explicit
arttest::ToyProductFilterReplicated::~ToyProductFilterReplicated ( )

Definition at line 84 of file ToyProductFilterReplicated_module.cc.

85  {
86  assert(beginJobCalled_);
91  assert(beginRunCalled_);
92  assert(beginSubRunCalled_);
93  assert(endSubRunCalled_);
94  assert(endRunCalled_);
95  assert(endJobCalled_);
96  }

Member Function Documentation

void arttest::ToyProductFilterReplicated::beginJob ( ProcessingFrame const &  )
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 99 of file ToyProductFilterReplicated_module.cc.

void arttest::ToyProductFilterReplicated::beginRun ( Run const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 133 of file ToyProductFilterReplicated_module.cc.

void arttest::ToyProductFilterReplicated::beginSubRun ( SubRun const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 139 of file ToyProductFilterReplicated_module.cc.

void arttest::ToyProductFilterReplicated::endJob ( ProcessingFrame const &  )
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 165 of file ToyProductFilterReplicated_module.cc.

void arttest::ToyProductFilterReplicated::endRun ( Run const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 159 of file ToyProductFilterReplicated_module.cc.

void arttest::ToyProductFilterReplicated::endSubRun ( SubRun const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual

Reimplemented from art::ReplicatedFilter.

Definition at line 153 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::filter ( Event ,
ProcessingFrame const &   
)
overrideprivatevirtual

Implements art::ReplicatedFilter.

Definition at line 145 of file ToyProductFilterReplicated_module.cc.

146  {
147  double val = 0.0;
148  use_cpu_time(val);
149  return true;
150  }
void arttest::ToyProductFilterReplicated::respondToCloseInputFile ( FileBlock const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual
void arttest::ToyProductFilterReplicated::respondToCloseOutputFiles ( FileBlock const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual
void arttest::ToyProductFilterReplicated::respondToOpenInputFile ( FileBlock const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual
void arttest::ToyProductFilterReplicated::respondToOpenOutputFiles ( FileBlock const &  ,
ProcessingFrame const &   
)
overrideprivatevirtual

Member Data Documentation

bool arttest::ToyProductFilterReplicated::beginJobCalled_ {false}
private

Definition at line 65 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::beginRunCalled_ {false}
private

Definition at line 70 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::beginSubRunCalled_ {false}
private

Definition at line 71 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::endJobCalled_ {false}
private

Definition at line 74 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::endRunCalled_ {false}
private

Definition at line 73 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::endSubRunCalled_ {false}
private

Definition at line 72 of file ToyProductFilterReplicated_module.cc.

bool const arttest::ToyProductFilterReplicated::outputModuleConfigured_
private

Definition at line 64 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::respondToCloseInputFileCalled_ {false}
private

Definition at line 67 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::respondToCloseOutputFilesCalled_ {false}
private

Definition at line 69 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::respondToOpenInputFileCalled_ {false}
private

Definition at line 66 of file ToyProductFilterReplicated_module.cc.

bool arttest::ToyProductFilterReplicated::respondToOpenOutputFilesCalled_ {false}
private

Definition at line 68 of file ToyProductFilterReplicated_module.cc.


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