FlushingGeneratorTestFilter_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: FlushingGeneratorTestFilter
3 // Module Type: analyzer
4 // File: FlushingGeneratorTestFilter_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 
16 #include "fhiclcpp/ParameterSet.h"
17 
18 #include <cassert>
19 
20 namespace arttest {
21  class FlushingGeneratorTestFilter;
22 }
23 
25 public:
27 
28 private:
29  bool filter(art::Event&) override;
30 
31  bool beginRun(art::Run& r) override;
32  bool beginSubRun(art::SubRun& sr) override;
33  bool endRun(art::Run& r) override;
34  bool endSubRun(art::SubRun& sr) override;
35 };
36 
38  fhicl::ParameterSet const& ps)
39  : EDFilter{ps}
40 {}
41 
42 bool
44 {
45  assert(!e.id().isFlush());
46  return true;
47 }
48 
49 bool
51 {
52  assert(!r.id().isFlush());
53  return true;
54 }
55 
56 bool
58 {
59  assert(!sr.id().isFlush());
60  return true;
61 }
62 
63 bool
65 {
66  assert(!r.id().isFlush());
67  return true;
68 }
69 
70 bool
72 {
73  assert(!sr.id().isFlush());
74  return true;
75 }
76 
bool isFlush() const
Definition: RunID.h:77
RunID id() const
Definition: Run.cc:24
static const double ps
Definition: Units.h:103
bool isFlush() const
Definition: EventID.h:129
Definition: Run.h:21
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
bool isFlush() const
Definition: SubRunID.h:102
p
Definition: test.py:228
SubRunID id() const
Definition: SubRun.cc:21
static const double sr
Definition: Units.h:167
EventID id() const
Definition: Event.cc:37
EDFilter()=default