Classes | Public Member Functions | Private Attributes | List of all members
arttest::PDDetail Class Reference

Classes

struct  Config
 

Public Member Functions

 PDDetail (fhicl::TableFragment< Config > const &ps)
 
 ~PDDetail ()
 
void beginJob ()
 
void endJob ()
 
void preProcessEvent ()
 
void processEventProvenance (art::Provenance const &prov)
 
void postProcessEvent ()
 
void preProcessSubRun ()
 
void processSubRunProvenance (art::Provenance const &prov)
 
void postProcessSubRun ()
 
void preProcessRun ()
 
void processRunProvenance (art::Provenance const &prov)
 
void postProcessRun ()
 

Private Attributes

size_t nExpected_
 
std::set< std::stringfunctionsCalled_
 

Detailed Description

Definition at line 16 of file TestProvenanceDumper_module.cc.

Constructor & Destructor Documentation

arttest::PDDetail::PDDetail ( fhicl::TableFragment< Config > const &  ps)
inlineexplicit

Definition at line 26 of file TestProvenanceDumper_module.cc.

27  : nExpected_(9u + ps().expectSubRunProducts() + ps().expectRunProducts())
29  {}
static const double ps
Definition: Units.h:103
std::set< std::string > functionsCalled_
arttest::PDDetail::~PDDetail ( )
inline

Definition at line 31 of file TestProvenanceDumper_module.cc.

32  {
33  // Required to be sure that we actually did the main check!
34  BOOST_CHECK(functionsCalled_.find("endJob") != functionsCalled_.end());
35  }
std::set< std::string > functionsCalled_

Member Function Documentation

void arttest::PDDetail::beginJob ( )
inline

Definition at line 38 of file TestProvenanceDumper_module.cc.

39  {
40  functionsCalled_.insert("beginJob");
41  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::endJob ( )
inline

Definition at line 44 of file TestProvenanceDumper_module.cc.

45  {
46  functionsCalled_.insert("endJob");
48  std::ostream_iterator<std::string>(std::cout, "\n"));
49  BOOST_REQUIRE_EQUAL(functionsCalled_.size(), nExpected_);
50  }
auto copy_all(FwdCont &, FwdIter)
std::set< std::string > functionsCalled_
void arttest::PDDetail::postProcessEvent ( )
inline

Definition at line 66 of file TestProvenanceDumper_module.cc.

67  {
68  functionsCalled_.insert("postProcessEvent");
69  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::postProcessRun ( )
inline

Definition at line 104 of file TestProvenanceDumper_module.cc.

105  {
106  functionsCalled_.insert("postProcessRun");
107  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::postProcessSubRun ( )
inline

Definition at line 85 of file TestProvenanceDumper_module.cc.

86  {
87  functionsCalled_.insert("postProcessSubRun");
88  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::preProcessEvent ( )
inline

Definition at line 53 of file TestProvenanceDumper_module.cc.

54  {
55  functionsCalled_.insert("preProcessEvent");
56  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::preProcessRun ( )
inline

Definition at line 91 of file TestProvenanceDumper_module.cc.

92  {
93  functionsCalled_.insert("preProcessRun");
94  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::preProcessSubRun ( )
inline

Definition at line 72 of file TestProvenanceDumper_module.cc.

73  {
74  functionsCalled_.insert("preProcessSubRun");
75  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::processEventProvenance ( art::Provenance const &  prov)
inline

Definition at line 59 of file TestProvenanceDumper_module.cc.

60  {
61  functionsCalled_.insert("processEventProvenance");
62  std::cout << prov << std::endl;
63  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::processRunProvenance ( art::Provenance const &  prov)
inline

Definition at line 97 of file TestProvenanceDumper_module.cc.

98  {
99  functionsCalled_.insert("processRunProvenance");
100  std::cout << prov << std::endl;
101  }
std::set< std::string > functionsCalled_
void arttest::PDDetail::processSubRunProvenance ( art::Provenance const &  prov)
inline

Definition at line 78 of file TestProvenanceDumper_module.cc.

79  {
80  functionsCalled_.insert("processSubRunProvenance");
81  std::cout << prov << std::endl;
82  }
std::set< std::string > functionsCalled_

Member Data Documentation

std::set<std::string> arttest::PDDetail::functionsCalled_
private

Definition at line 111 of file TestProvenanceDumper_module.cc.

size_t arttest::PDDetail::nExpected_
private

Definition at line 110 of file TestProvenanceDumper_module.cc.


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