FlushingGeneratorTest_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: FlushingGeneratorTest
3 // Module Type: analyzer
4 // File: FlushingGeneratorTest_module.cc
5 //
6 // Generated at Tue Apr 2 10:48:17 2013 by Christopher Green using artmod
7 // from cetpkgsupport v1_01_00.
8 ////////////////////////////////////////////////////////////////////////
9 
17 
18 #include <cassert>
19 
20 namespace arttest {
21  class FlushingGeneratorTest;
22 }
23 
25 public:
26  struct Config {
28  };
29 
30  using Parameters =
32  explicit FlushingGeneratorTest(Parameters const& p);
33 
34  void write(art::EventPrincipal& e) override;
35  void writeSubRun(art::SubRunPrincipal& sr) override;
36  void writeRun(art::RunPrincipal& r) override;
37 
38  void beginRun(art::RunPrincipal const& r) override;
39  void beginSubRun(art::SubRunPrincipal const& sr) override;
40  void endRun(art::RunPrincipal const& r) override;
41  void endSubRun(art::SubRunPrincipal const& sr) override;
42 
43 private:
44 };
45 
48  : OutputModule(p().omConfig, p.get_PSet())
49 {}
50 
51 void
53 {
54  assert(!e.eventID().isFlush());
55 }
56 
57 void
59 {
60  assert(!sr.subRunID().isFlush());
61 }
62 
63 void
65 {
66  assert(!r.runID().isFlush());
67 }
68 
69 void
71 {
72  assert(!r.runID().isFlush());
73 }
74 
75 void
77 {
78  assert(!sr.subRunID().isFlush());
79 }
80 
81 void
83 {
84  assert(!r.runID().isFlush());
85 }
86 
87 void
89 {
90  assert(!sr.subRunID().isFlush());
91 }
92 
bool isFlush() const
Definition: RunID.h:77
EventID const & eventID() const
Definition: Principal.cc:1186
RunID const & runID() const
Definition: Principal.cc:1174
void writeSubRun(art::SubRunPrincipal &sr) override
void endRun(art::RunPrincipal const &r) override
bool isFlush() const
Definition: EventID.h:129
void beginSubRun(art::SubRunPrincipal const &sr) override
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
void write(art::EventPrincipal &e) override
SubRunID subRunID() const
Definition: Principal.cc:1180
void writeRun(art::RunPrincipal &r) override
OutputModule(fhicl::ParameterSet const &pset)
Definition: OutputModule.cc:81
fhicl::TableFragment< art::OutputModule::Config > omConfig
bool isFlush() const
Definition: SubRunID.h:102
p
Definition: test.py:228
void endSubRun(art::SubRunPrincipal const &sr) override
static const double sr
Definition: Units.h:167
void beginRun(art::RunPrincipal const &r) override