Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
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
10
#include "
art/Framework/Core/EDFilter.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
#include "
art/Framework/Principal/Event.h
"
13
#include "
art/Framework/Principal/Handle.h
"
14
#include "
art/Framework/Principal/Run.h
"
15
#include "
art/Framework/Principal/SubRun.h
"
16
#include "
fhiclcpp/ParameterSet.h
"
17
18
#include <cassert>
19
20
namespace
arttest
{
21
class
FlushingGeneratorTestFilter;
22
}
23
24
class
arttest::FlushingGeneratorTestFilter
:
public
art::EDFilter
{
25
public
:
26
explicit
FlushingGeneratorTestFilter
(
fhicl::ParameterSet
const
&
p
);
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
37
arttest::FlushingGeneratorTestFilter::FlushingGeneratorTestFilter
(
38
fhicl::ParameterSet
const
&
ps
)
39
:
EDFilter
{ps}
40
{}
41
42
bool
43
arttest::FlushingGeneratorTestFilter::filter
(
art::Event
&
e
)
44
{
45
assert(!e.
id
().
isFlush
());
46
return
true
;
47
}
48
49
bool
50
arttest::FlushingGeneratorTestFilter::beginRun
(
art::Run
&
r
)
51
{
52
assert(!r.
id
().
isFlush
());
53
return
true
;
54
}
55
56
bool
57
arttest::FlushingGeneratorTestFilter::beginSubRun
(
art::SubRun
&
sr
)
58
{
59
assert(!sr.
id
().
isFlush
());
60
return
true
;
61
}
62
63
bool
64
arttest::FlushingGeneratorTestFilter::endRun
(
art::Run
&
r
)
65
{
66
assert(!r.
id
().
isFlush
());
67
return
true
;
68
}
69
70
bool
71
arttest::FlushingGeneratorTestFilter::endSubRun
(
art::SubRun
&
sr
)
72
{
73
assert(!sr.
id
().
isFlush
());
74
return
true
;
75
}
76
77
DEFINE_ART_MODULE
(
arttest::FlushingGeneratorTestFilter
)
art::RunID::isFlush
bool isFlush() const
Definition:
RunID.h:77
arttest::FlushingGeneratorTestFilter::endSubRun
bool endSubRun(art::SubRun &sr) override
Definition:
FlushingGeneratorTestFilter_module.cc:71
art::SubRun
Definition:
SubRun.h:27
art::EDFilter
Definition:
EDFilter.h:17
art::Run::id
RunID id() const
Definition:
Run.cc:24
Handle.h
genie::units::ps
static const double ps
Definition:
Units.h:103
arttest::FlushingGeneratorTestFilter::beginSubRun
bool beginSubRun(art::SubRun &sr) override
Definition:
FlushingGeneratorTestFilter_module.cc:57
art::EventID::isFlush
bool isFlush() const
Definition:
EventID.h:129
art::Run
Definition:
Run.h:21
ParameterSet.h
arttest::FlushingGeneratorTestFilter::FlushingGeneratorTestFilter
FlushingGeneratorTestFilter(fhicl::ParameterSet const &p)
Definition:
FlushingGeneratorTestFilter_module.cc:37
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
EDFilter.h
arttest::FlushingGeneratorTestFilter::filter
bool filter(art::Event &) override
Definition:
FlushingGeneratorTestFilter_module.cc:43
arttest::FlushingGeneratorTestFilter::endRun
bool endRun(art::Run &r) override
Definition:
FlushingGeneratorTestFilter_module.cc:64
arttest
Definition:
GroupSelector_t.h:4
SubRun.h
ModuleMacros.h
art::SubRunID::isFlush
bool isFlush() const
Definition:
SubRunID.h:102
test.p
p
Definition:
test.py:228
art::Event
Definition:
Event.h:40
art::SubRun::id
SubRunID id() const
Definition:
SubRun.cc:21
arttest::FlushingGeneratorTestFilter::beginRun
bool beginRun(art::Run &r) override
Definition:
FlushingGeneratorTestFilter_module.cc:50
Event.h
genie::units::sr
static const double sr
Definition:
Units.h:167
Run.h
art::Event::id
EventID id() const
Definition:
Event.cc:37
plot_model.r
r
Definition:
plot_model.py:48
fhicl::ParameterSet
Definition:
ParameterSet.h:34
art::EDFilter::EDFilter
EDFilter()=default
arttest::FlushingGeneratorTestFilter
Definition:
FlushingGeneratorTestFilter_module.cc:24
Generated by
1.8.11