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

Classes

struct  Config
 

Public Member Functions

 RICDetail (fhicl::TableFragment< Config > const &ps)
 
void preProcessRun ()
 
void processRunProvenance (art::Provenance const &)
 
void postProcessRun ()
 
void preProcessSubRun ()
 
void processSubRunProvenance (art::Provenance const &)
 
void postProcessSubRun ()
 
void preProcessEvent ()
 
void processEventProvenance (art::Provenance const &)
 
void postProcessEvent ()
 

Private Attributes

bool const expectRunProducts_
 
bool const expectSubRunProducts_
 
bool const expectEventProducts_
 
std::size_t presentRunProducts_ {0ull}
 
std::size_t presentSubRunProducts_ {0ull}
 
std::size_t presentEventProducts_ {0ull}
 

Detailed Description

Definition at line 12 of file TestReadImmediateControl_module.cc.

Constructor & Destructor Documentation

arttest::RICDetail::RICDetail ( fhicl::TableFragment< Config > const &  ps)
explicit

Definition at line 46 of file TestReadImmediateControl_module.cc.

47  : expectRunProducts_(ps().expectRunProducts())
48  , expectSubRunProducts_(ps().expectSubRunProducts())
49  , expectEventProducts_(ps().expectEventProducts())
50 {}
static const double ps
Definition: Units.h:103

Member Function Documentation

void arttest::RICDetail::postProcessEvent ( )

Definition at line 109 of file TestReadImmediateControl_module.cc.

110 {
111  if (expectEventProducts_) {
112  BOOST_CHECK_GT(presentEventProducts_, 0ull);
113  } else {
114  BOOST_CHECK_EQUAL(presentEventProducts_, 0ull);
115  }
116 }
void arttest::RICDetail::postProcessRun ( )

Definition at line 65 of file TestReadImmediateControl_module.cc.

66 {
67  if (expectRunProducts_) {
68  BOOST_CHECK_GT(presentRunProducts_, 0ull);
69  } else {
70  BOOST_CHECK_EQUAL(presentRunProducts_, 0ull);
71  }
72 }
void arttest::RICDetail::postProcessSubRun ( )

Definition at line 87 of file TestReadImmediateControl_module.cc.

88 {
90  BOOST_CHECK_GT(presentSubRunProducts_, 0ull);
91  } else {
92  BOOST_CHECK_EQUAL(presentSubRunProducts_, 0ull);
93  }
94 }
void arttest::RICDetail::preProcessEvent ( )

Definition at line 97 of file TestReadImmediateControl_module.cc.

98 {
99  presentEventProducts_ = 0ull;
100 }
void arttest::RICDetail::preProcessRun ( )

Definition at line 53 of file TestReadImmediateControl_module.cc.

54 {
55  presentRunProducts_ = 0ull;
56 }
void arttest::RICDetail::preProcessSubRun ( )

Definition at line 75 of file TestReadImmediateControl_module.cc.

76 {
78 }
void arttest::RICDetail::processEventProvenance ( art::Provenance const &  )

Definition at line 103 of file TestReadImmediateControl_module.cc.

104 {
106 }
void arttest::RICDetail::processRunProvenance ( art::Provenance const &  )

Definition at line 59 of file TestReadImmediateControl_module.cc.

60 {
62 }
void arttest::RICDetail::processSubRunProvenance ( art::Provenance const &  )

Definition at line 81 of file TestReadImmediateControl_module.cc.

82 {
84 }

Member Data Documentation

bool const arttest::RICDetail::expectEventProducts_
private

Definition at line 39 of file TestReadImmediateControl_module.cc.

bool const arttest::RICDetail::expectRunProducts_
private

Definition at line 37 of file TestReadImmediateControl_module.cc.

bool const arttest::RICDetail::expectSubRunProducts_
private

Definition at line 38 of file TestReadImmediateControl_module.cc.

std::size_t arttest::RICDetail::presentEventProducts_ {0ull}
private

Definition at line 43 of file TestReadImmediateControl_module.cc.

std::size_t arttest::RICDetail::presentRunProducts_ {0ull}
private

Definition at line 41 of file TestReadImmediateControl_module.cc.

std::size_t arttest::RICDetail::presentSubRunProducts_ {0ull}
private

Definition at line 42 of file TestReadImmediateControl_module.cc.


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