Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
UnputtingProducer_module.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/EDProducer.h
"
2
#include "
art/Framework/Core/ModuleMacros.h
"
3
4
#include <string>
5
#include <vector>
6
7
namespace
arttest
{
8
class
UnputtingProducer;
9
}
10
11
//--------------------------------------------------------------------
12
//
13
// UnputtingProducer registers products, but does not put them into
14
// the Event.
15
//
16
class
arttest::UnputtingProducer
:
public
art::EDProducer
{
17
public
:
18
explicit
UnputtingProducer
(
fhicl::ParameterSet
const
&);
19
20
private
:
21
void
produce
(
art::Event
&
e
)
override
;
22
};
23
24
arttest::UnputtingProducer::UnputtingProducer
(
fhicl::ParameterSet
const
&
ps
)
25
:
art
::
EDProducer
{ps}
26
{
27
produces<std::string>();
28
}
29
30
void
31
arttest::UnputtingProducer::produce
(
art::Event
&)
32
{
33
// We don't put anything.
34
}
35
36
DEFINE_ART_MODULE
(
arttest::UnputtingProducer
)
genie::units::ps
static const double ps
Definition:
Units.h:103
art::EDProducer::EDProducer
EDProducer()=default
arttest::UnputtingProducer::UnputtingProducer
UnputtingProducer(fhicl::ParameterSet const &)
Definition:
UnputtingProducer_module.cc:24
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
arttest
Definition:
GroupSelector_t.h:4
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
art
Definition:
BasicOptionsHandler.h:11
arttest::UnputtingProducer
Definition:
UnputtingProducer_module.cc:16
arttest::UnputtingProducer::produce
void produce(art::Event &e) override
Definition:
UnputtingProducer_module.cc:31
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11