Classes | Public Types | Public Member Functions | Private Attributes | List of all members
arttest::RPTest Class Reference
Inheritance diagram for arttest::RPTest:
art::ResultsProducer art::ModuleBase art::detail::SharedModule art::ProductRegistryHelper

Classes

struct  Config
 

Public Types

using Parameters = art::ResultsProducer::Table< Config >
 
- Public Types inherited from art::ResultsProducer
template<typename UserConfig , typename KeysToIgnore = void>
using Table = ProducerTable< UserConfig, detail::PluginConfig, KeysToIgnore >
 

Public Member Functions

 RPTest (Parameters const &p)
 
 RPTest (RPTest const &)=delete
 
 RPTest (RPTest &&)=delete
 
RPTestoperator= (RPTest const &)=delete
 
RPTestoperator= (RPTest &&)=delete
 
void clear () override
 
void writeResults (art::Results &res) override
 
void beginJob () override
 
void beginRun (art::Run const &r) override
 
void beginSubRun (art::SubRun const &sr) override
 
void endJob () override
 
void endRun (art::Run const &r) override
 
void endSubRun (art::SubRun const &) override
 
void event (art::Event const &e) override
 
void readResults (art::Results const &res) override
 
- Public Member Functions inherited from art::ResultsProducer
virtual ~ResultsProducer () noexcept=default
 
void doBeginJob ()
 
void doEndJob ()
 
void doBeginRun (RunPrincipal const &)
 
void doEndRun (RunPrincipal const &)
 
void doBeginSubRun (SubRunPrincipal const &)
 
void doEndSubRun (SubRunPrincipal const &)
 
void doEvent (EventPrincipal const &)
 
void doReadResults (ResultsPrincipal const &)
 
void doWriteResults (ResultsPrincipal &)
 
void doClear ()
 
void registerProducts (ProductDescriptions &producedProducts, ModuleDescription const &md)
 
- 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 Attributes

std::set< std::stringseenEntryPoints_
 

Additional Inherited Members

- Protected Member Functions inherited from art::ResultsProducer
template<class P >
void produces (std::string const &instanceName={})
 

Detailed Description

Definition at line 29 of file RPTest_plugin.cc.

Member Typedef Documentation

Definition at line 33 of file RPTest_plugin.cc.

Constructor & Destructor Documentation

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

Definition at line 62 of file RPTest_plugin.cc.

63  : seenEntryPoints_({"Constructor",
64  "clear",
65  "writeResults",
66  "beginJob",
67  "beginRun",
68  "beginSubRun",
69  "event",
70  "endJob",
71  "endRun",
72  "endSubRun",
73  "readResults"})
74 {
75  seenEntryPoints_.erase("Constructor");
76  produces<IntProduct>();
77 }
std::set< std::string > seenEntryPoints_
arttest::RPTest::RPTest ( RPTest const &  )
delete
arttest::RPTest::RPTest ( RPTest &&  )
delete

Member Function Documentation

void arttest::RPTest::beginJob ( )
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 93 of file RPTest_plugin.cc.

94 {
95  seenEntryPoints_.erase("beginJob");
96 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::beginRun ( art::Run const &  r)
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 99 of file RPTest_plugin.cc.

100 {
101  seenEntryPoints_.erase("beginRun");
102 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::beginSubRun ( art::SubRun const &  sr)
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 105 of file RPTest_plugin.cc.

106 {
107  seenEntryPoints_.erase("beginSubRun");
108 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::clear ( )
overridevirtual

Implements art::ResultsProducer.

Definition at line 80 of file RPTest_plugin.cc.

81 {
82  seenEntryPoints_.erase("clear");
83 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::endJob ( )
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 111 of file RPTest_plugin.cc.

112 {
113  seenEntryPoints_.erase("endJob");
114  if (!seenEntryPoints_.empty()) {
115  std::ostringstream failed;
116  std::copy(seenEntryPoints_.cbegin(),
117  seenEntryPoints_.cend(),
118  std::ostream_iterator<std::string>(failed, " "));
120  << "Failed to hit the following entry points for ResultsProducer: "
121  << failed.str() << ".\n";
122  }
123 }
std::set< std::string > seenEntryPoints_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
T copy(T const &v)
void arttest::RPTest::endRun ( art::Run const &  r)
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 126 of file RPTest_plugin.cc.

127 {
128  seenEntryPoints_.erase("endRun");
129 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::endSubRun ( art::SubRun const &  )
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 132 of file RPTest_plugin.cc.

133 {
134  seenEntryPoints_.erase("endSubRun");
135 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::event ( art::Event const &  e)
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 138 of file RPTest_plugin.cc.

139 {
140  seenEntryPoints_.erase("event");
141 }
std::set< std::string > seenEntryPoints_
RPTest& arttest::RPTest::operator= ( RPTest const &  )
delete
RPTest& arttest::RPTest::operator= ( RPTest &&  )
delete
void arttest::RPTest::readResults ( art::Results const &  res)
overridevirtual

Reimplemented from art::ResultsProducer.

Definition at line 144 of file RPTest_plugin.cc.

145 {
146  seenEntryPoints_.erase("readResults");
147 }
std::set< std::string > seenEntryPoints_
void arttest::RPTest::writeResults ( art::Results res)
overridevirtual

Implements art::ResultsProducer.

Definition at line 86 of file RPTest_plugin.cc.

87 {
88  seenEntryPoints_.erase("writeResults");
89  res.put(std::make_unique<IntProduct>(5.0));
90 }
std::set< std::string > seenEntryPoints_
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692

Member Data Documentation

std::set<std::string> arttest::RPTest::seenEntryPoints_
private

Definition at line 59 of file RPTest_plugin.cc.


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