Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
fastclonefail
v10
ClonedProdProducer_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/Integration/fastclonefail/v10/ClonedProd.h
"
5
#include "
fhiclcpp/ParameterSet.h
"
6
7
#include <memory>
8
#include <vector>
9
10
using namespace
art
;
11
using namespace
fhicl
;
12
using namespace
std
;
13
14
namespace
arttest
{
15
16
class
ClonedProdProducer
:
public
EDProducer
{
17
public
:
18
struct
Config
{
19
};
20
using
Parameters
=
Table<Config>
;
21
explicit
ClonedProdProducer
(
Parameters
const
&);
22
23
private
:
24
void
produce(
Event
&)
override
;
25
};
26
27
ClonedProdProducer::ClonedProdProducer(
Parameters
const
&
ps
) :
EDProducer
{ps}
28
{
29
produces<ClonedProd>();
30
}
31
32
void
33
ClonedProdProducer::produce
(
art::Event
&
e
)
34
{
35
e.
put
(std::make_unique<ClonedProd>());
36
}
37
38
}
// namespace arttest
39
40
DEFINE_ART_MODULE
(
arttest::ClonedProdProducer
)
arttest::ClonedProdProducer::produce
void produce(Event &) override
Definition:
ClonedProdProducer_module.cc:33
fhicl::Table< Config >
genie::units::ps
static const double ps
Definition:
Units.h:103
std
STL namespace.
arttest::ClonedProdProducer::Config
Definition:
ClonedProdProducer_module.cc:18
ParameterSet.h
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
fhicl
parameter set interface
Definition:
prune_configuration.h:9
arttest
Definition:
GroupSelector_t.h:4
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
ClonedProd.h
art
Definition:
BasicOptionsHandler.h:11
arttest::ClonedProdProducer
Definition:
ClonedProdProducer_module.cc:16
Event.h
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition:
DataViewImpl.h:692
Generated by
1.8.11