Classes | Public Types | Public Member Functions | List of all members
arttest::FlushingGeneratorTest Class Reference
Inheritance diagram for arttest::FlushingGeneratorTest:
art::OutputModule art::Observer art::detail::SharedModule art::ModuleBase

Classes

struct  Config
 

Public Types

using Parameters = fhicl::WrappedTable< Config, art::OutputModule::Config::KeysToIgnore >
 
- Public Types inherited from art::OutputModule
using ModuleType = OutputModule
 
using WorkerType = OutputWorker
 
using PluginCollection_t = std::vector< std::unique_ptr< FileCatalogMetadataPlugin >>
 

Public Member Functions

 FlushingGeneratorTest (Parameters const &p)
 
void write (art::EventPrincipal &e) override
 
void writeSubRun (art::SubRunPrincipal &sr) override
 
void writeRun (art::RunPrincipal &r) override
 
void beginRun (art::RunPrincipal const &r) override
 
void beginSubRun (art::SubRunPrincipal const &sr) override
 
void endRun (art::RunPrincipal const &r) override
 
void endSubRun (art::SubRunPrincipal const &sr) override
 
- Public Member Functions inherited from art::OutputModule
virtual ~OutputModule () noexcept
 
 OutputModule (fhicl::ParameterSet const &pset)
 
 OutputModule (fhicl::TableFragment< Config > const &pset, fhicl::ParameterSet const &containing_pset)
 
 OutputModule (OutputModule const &)=delete
 
 OutputModule (OutputModule &&)=delete
 
OutputModuleoperator= (OutputModule const &)=delete
 
OutputModuleoperator= (OutputModule &&)=delete
 
int maxEvents () const
 
int remainingEvents () const
 
bool fileIsOpen () const
 
OutputFileStatus fileStatus () const
 
virtual std::string const & lastClosedFileName () const
 
SelectionsArray const & keptProducts () const
 
bool selected (BranchDescription const &) const
 
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch () const
 
void selectProducts (ProductTables const &)
 
void doSelectProducts (ProductTables const &)
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
BranchChildren const & branchChildren () const
 
- Public Member Functions inherited from art::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
- 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)
 
- Public Member Functions inherited from art::detail::SharedModule
 SharedModule ()
 
 SharedModule (std::string const &moduleLabel)
 
 ~SharedModule () noexcept
 
hep::concurrency::SerialTaskQueueChain * serialTaskQueueChain () const
 
void createQueues ()
 
template<BranchType BT = InEvent, typename... T>
void serialize (T const &...)
 
template<BranchType BT = InEvent>
void async ()
 
template<BranchType , typename... T>
void serialize (T const &...resources)
 

Additional Inherited Members

- Protected Member Functions inherited from art::OutputModule
virtual void doRegisterProducts (ProductDescriptions &, ModuleDescription const &)
 
- Protected Member Functions inherited from art::Observer
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &paths, fhicl::ParameterSet const &config)
 
detail::ProcessAndEventSelectorsprocessAndEventSelectors ()
 

Detailed Description

Definition at line 24 of file FlushingGeneratorTest_module.cc.

Member Typedef Documentation

Definition at line 31 of file FlushingGeneratorTest_module.cc.

Constructor & Destructor Documentation

arttest::FlushingGeneratorTest::FlushingGeneratorTest ( Parameters const &  p)
explicit

Definition at line 46 of file FlushingGeneratorTest_module.cc.

48  : OutputModule(p().omConfig, p.get_PSet())
49 {}
OutputModule(fhicl::ParameterSet const &pset)
Definition: OutputModule.cc:81
p
Definition: test.py:228

Member Function Documentation

void arttest::FlushingGeneratorTest::beginRun ( art::RunPrincipal const &  r)
overridevirtual

Reimplemented from art::OutputModule.

Definition at line 70 of file FlushingGeneratorTest_module.cc.

71 {
72  assert(!r.runID().isFlush());
73 }
void arttest::FlushingGeneratorTest::beginSubRun ( art::SubRunPrincipal const &  sr)
overridevirtual

Reimplemented from art::OutputModule.

Definition at line 76 of file FlushingGeneratorTest_module.cc.

77 {
78  assert(!sr.subRunID().isFlush());
79 }
static const double sr
Definition: Units.h:167
void arttest::FlushingGeneratorTest::endRun ( art::RunPrincipal const &  r)
overridevirtual

Reimplemented from art::OutputModule.

Definition at line 82 of file FlushingGeneratorTest_module.cc.

83 {
84  assert(!r.runID().isFlush());
85 }
void arttest::FlushingGeneratorTest::endSubRun ( art::SubRunPrincipal const &  sr)
overridevirtual

Reimplemented from art::OutputModule.

Definition at line 88 of file FlushingGeneratorTest_module.cc.

89 {
90  assert(!sr.subRunID().isFlush());
91 }
static const double sr
Definition: Units.h:167
void arttest::FlushingGeneratorTest::write ( art::EventPrincipal e)
overridevirtual

Implements art::OutputModule.

Definition at line 52 of file FlushingGeneratorTest_module.cc.

53 {
54  assert(!e.eventID().isFlush());
55 }
EventID const & eventID() const
Definition: Principal.cc:1186
bool isFlush() const
Definition: EventID.h:129
void arttest::FlushingGeneratorTest::writeRun ( art::RunPrincipal r)
overridevirtual

Implements art::OutputModule.

Definition at line 64 of file FlushingGeneratorTest_module.cc.

65 {
66  assert(!r.runID().isFlush());
67 }
bool isFlush() const
Definition: RunID.h:77
RunID const & runID() const
Definition: Principal.cc:1174
void arttest::FlushingGeneratorTest::writeSubRun ( art::SubRunPrincipal sr)
overridevirtual

Implements art::OutputModule.

Definition at line 58 of file FlushingGeneratorTest_module.cc.

59 {
60  assert(!sr.subRunID().isFlush());
61 }
SubRunID subRunID() const
Definition: Principal.cc:1180
bool isFlush() const
Definition: SubRunID.h:102

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