Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
AssnsMultipleProduces_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Class: AssnsMultipleProduces
3
// Module Type: producer
4
// File: AssnsMultipleProduces_module.cc
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 "
canvas/Persistency/Common/Assns.h
"
11
12
namespace
art
{
13
namespace
test
{
14
class
AssnsMultipleProduces;
15
}
16
}
// namespace art
17
18
class
art::test::AssnsMultipleProduces
:
public
EDProducer
{
19
public
:
20
struct
Config
{
21
};
22
using
Parameters
=
EDProducer::Table<Config>
;
23
explicit
AssnsMultipleProduces
(
Parameters
const
&);
24
25
private
:
26
void
produce
(
art::Event
&)
override
{};
27
};
28
29
using
std::size_t;
30
using
std::string
;
31
32
art::test::AssnsMultipleProduces::AssnsMultipleProduces
(
Parameters
const
&
ps
)
33
:
EDProducer
{ps}
34
{
35
produces<Assns<size_t, string>>();
36
produces<Assns<string, size_t>>();
37
}
38
39
DEFINE_ART_MODULE
(
art::test::AssnsMultipleProduces
)
Assns.h
art::test::AssnsMultipleProduces::produce
void produce(art::Event &) override
Definition:
AssnsMultipleProduces_module.cc:26
genie::units::ps
static const double ps
Definition:
Units.h:103
string
std::string string
Definition:
nybbler.cc:12
test
Definition:
test.py:1
art::ProducerTable
Definition:
ProducerTable.h:19
art::test::AssnsMultipleProduces
Definition:
AssnsMultipleProduces_module.cc:18
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
art
Definition:
BasicOptionsHandler.h:11
Event.h
art::test::AssnsMultipleProduces::AssnsMultipleProduces
AssnsMultipleProduces(Parameters const &)
Definition:
AssnsMultipleProduces_module.cc:32
art::test::AssnsMultipleProduces::Config
Definition:
AssnsMultipleProduces_module.cc:20
Generated by
1.8.11