Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
event-shape
InputProducerOnlyEvents_module.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------
2
//
3
// Produces an InputProducer instance.
4
//
5
//--------------------------------------------------------------------
6
7
#include "
art/Framework/Core/EDProducer.h
"
8
#include "
art/Framework/Core/ModuleMacros.h
"
9
#include "
art/Framework/Principal/Event.h
"
10
#include "
art/Framework/Principal/Run.h
"
11
#include "
art/Framework/Principal/SubRun.h
"
12
13
#include "
art/test/TestObjects/ToyProducts.h
"
14
15
namespace
fhicl
{
16
class
ParameterSet;
17
}
18
19
namespace
arttest
{
20
21
class
InputProducer :
public
art::EDProducer
{
22
public
:
23
explicit
InputProducer
(
fhicl::ParameterSet
const
&)
24
{
25
produces<StringProduct>();
26
}
27
28
virtual
void
29
produce
(
art::Event
&
e
)
override
30
{
31
e.
put
(std::make_unique<StringProduct>(
"event"
));
32
}
33
};
34
35
}
// namespace arttest
36
37
DEFINE_ART_MODULE
(
arttest::InputProducer
)
arttest::InputProducer::InputProducer
InputProducer(fhicl::ParameterSet const &)
Definition:
InputProducerOnlyEvents_module.cc:23
arttest::InputProducer::produce
virtual void produce(art::Event &e) override
Definition:
InputProducerOnlyEvents_module.cc:29
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
ToyProducts.h
fhicl
parameter set interface
Definition:
prune_configuration.h:9
arttest
Definition:
GroupSelector_t.h:4
SubRun.h
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
arttest::InputProducer
Definition:
InputProducer_module.cc:21
Event.h
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition:
DataViewImpl.h:692
Run.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11