Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
BadAssns
BadAssnsProducer_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Class: BadAssnsProducer
3
// Plugin Type: producer (art v1_19_00_rc3)
4
// File: BadAssnsProducer_module.cc
5
//
6
// Generated at Thu Apr 14 08:54:19 2016 by Christopher Green using cetskelgen
7
// from cetlib version v1_17_04.
8
////////////////////////////////////////////////////////////////////////
9
10
#include "
art/Framework/Core/EDProducer.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
#include "
art/Framework/Principal/Event.h
"
13
#include "
art/Framework/Principal/Handle.h
"
14
#include "
art/Framework/Principal/Run.h
"
15
#include "
art/Framework/Principal/SubRun.h
"
16
#include "
art/test/TestObjects/ToyProducts.h
"
17
#include "
canvas/Utilities/InputTag.h
"
18
#include "
fhiclcpp/ParameterSet.h
"
19
#include "
messagefacility/MessageLogger/MessageLogger.h
"
20
21
#include <memory>
22
23
namespace
arttest
{
24
class
BadAssnsProducer;
25
}
26
27
class
arttest::BadAssnsProducer
:
public
art::EDProducer
{
28
public
:
29
explicit
BadAssnsProducer
(
fhicl::ParameterSet
const
&
p
);
30
// The compiler-generated destructor is fine for non-base
31
// classes without bare pointers or other resource use.
32
33
// Plugins should not be copied or assigned.
34
BadAssnsProducer
(
BadAssnsProducer
const
&) =
delete
;
35
BadAssnsProducer
(
BadAssnsProducer
&&) =
delete
;
36
BadAssnsProducer
&
operator=
(
BadAssnsProducer
const
&) =
delete
;
37
BadAssnsProducer
&
operator=
(
BadAssnsProducer
&&) =
delete
;
38
39
// Required functions.
40
void
produce
(
art::Event
&
e
)
override
;
41
42
private
:
43
};
44
45
arttest::BadAssnsProducer::BadAssnsProducer
(
fhicl::ParameterSet
const
&
ps
)
46
:
EDProducer
{ps}
47
{
48
produces<art::Assns<StringProduct, DummyProduct>>();
49
}
50
51
void
52
arttest::BadAssnsProducer::produce
(
art::Event
&
e
)
53
{
54
e.
put
(std::make_unique<
art::Assns<StringProduct, DummyProduct>
>());
55
}
56
57
DEFINE_ART_MODULE
(
arttest::BadAssnsProducer
)
arttest::BadAssnsProducer
Definition:
BadAssnsProducer_module.cc:27
Handle.h
genie::units::ps
static const double ps
Definition:
Units.h:103
art::EDProducer::EDProducer
EDProducer()=default
art::Assns
Definition:
Assns.h:102
MessageLogger.h
ParameterSet.h
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
ToyProducts.h
arttest::BadAssnsProducer::operator=
BadAssnsProducer & operator=(BadAssnsProducer const &)=delete
arttest
Definition:
GroupSelector_t.h:4
SubRun.h
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
test.p
p
Definition:
test.py:228
arttest::BadAssnsProducer::produce
void produce(art::Event &e) override
Definition:
BadAssnsProducer_module.cc:52
art::Event
Definition:
Event.h:40
arttest::BadAssnsProducer::BadAssnsProducer
BadAssnsProducer(fhicl::ParameterSet const &p)
Definition:
BadAssnsProducer_module.cc:45
InputTag.h
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