Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
AssnsWrongPut_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Class: AssnsWrongPut
3
// Module Type: producer
4
// File: AssnsWrongPut_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
AssnsWrongPut;
15
}
16
}
// namespace art
17
18
class
art::test::AssnsWrongPut
:
public
EDProducer
{
19
public
:
20
struct
Config
{
21
};
22
using
Parameters
=
EDProducer::Table<Config>
;
23
explicit
AssnsWrongPut
(
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::AssnsWrongPut::AssnsWrongPut
(
Parameters
const
&
ps
) :
EDProducer
{ps}
33
{
34
produces<Assns<size_t, string>>();
35
}
36
37
void
38
art::test::AssnsWrongPut::produce
(
Event
&
e
)
39
{
40
// Put in an Assns with reversed template arguments
41
e.
put
(std::make_unique<
Assns<string, size_t>
>());
42
}
43
44
DEFINE_ART_MODULE
(
art::test::AssnsWrongPut
)
Assns.h
genie::units::ps
static const double ps
Definition:
Units.h:103
art::test::AssnsWrongPut::Config
Definition:
AssnsWrongPut_module.cc:20
string
std::string string
Definition:
nybbler.cc:12
art::Assns
Definition:
Assns.h:102
test
Definition:
test.py:1
art::ProducerTable
Definition:
ProducerTable.h:19
e
const double e
Definition:
gUpMuFluxGen.cxx:165
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::test::AssnsWrongPut
Definition:
AssnsWrongPut_module.cc:18
art::test::AssnsWrongPut::AssnsWrongPut
AssnsWrongPut(Parameters const &)
Definition:
AssnsWrongPut_module.cc:32
art
Definition:
BasicOptionsHandler.h:11
Event.h
art::test::AssnsWrongPut::produce
void produce(art::Event &) override
Definition:
AssnsWrongPut_module.cc:38
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition:
DataViewImpl.h:692
Generated by
1.8.11