Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
U_S_module.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/EDProducer.h
"
2
#include "
art/Framework/Core/ModuleMacros.h
"
3
#include "
art/Framework/Principal/Event.h
"
4
#include "
art/test/TestObjects/ToyProducts.h
"
5
6
namespace
arttest
{
7
class
U_S;
8
}
9
10
class
arttest::U_S
:
public
art::EDProducer
{
11
public
:
12
struct
Config
{
13
};
14
using
Parameters
=
Table<Config>
;
15
explicit
U_S
(
Parameters
const
&
ps
) :
EDProducer
{ps}
16
{
17
produces<IntProduct>();
18
}
19
20
private
:
21
void
22
produce
(
art::Event
&
e
)
override
23
{
24
e.
put
(std::make_unique<IntProduct>(1));
25
}
26
};
27
28
DEFINE_ART_MODULE
(
arttest::U_S
)
arttest::U_S::Config
Definition:
U_S_module.cc:12
genie::units::ps
static const double ps
Definition:
Units.h:103
art::EDProducer::EDProducer
EDProducer()=default
art::ProducerTable
Definition:
ProducerTable.h:19
arttest::U_S
Definition:
U_S_module.cc:10
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
ToyProducts.h
arttest
Definition:
GroupSelector_t.h:4
ModuleMacros.h
arttest::U_S::produce
void produce(art::Event &e) override
Definition:
U_S_module.cc:22
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
Event.h
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition:
DataViewImpl.h:692
arttest::U_S::U_S
U_S(Parameters const &ps)
Definition:
U_S_module.cc:15
Generated by
1.8.11