Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
output-file-handling
BigProductProducer_module.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------
2
//
3
// Produces an BigProductsMaker 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
11
namespace
fhicl
{
12
class
ParameterSet;
13
}
14
15
namespace
arttest
{
16
17
class
BigProductsMaker
:
public
art::EDProducer
{
18
public
:
19
using
coll_t
= std::vector<double>;
20
21
explicit
BigProductsMaker
(
fhicl::ParameterSet
const
&
ps
) : EDProducer{ps}
22
{
23
produces<coll_t>();
24
}
25
26
private
:
27
void
28
produce
(
art::Event
&
e
)
override
29
{
30
e.
put
(std::make_unique<coll_t>(10000, 34.));
31
}
32
};
33
34
}
// namespace arttest
35
36
DEFINE_ART_MODULE
(
arttest::BigProductsMaker
)
genie::units::ps
static const double ps
Definition:
Units.h:103
arttest::BigProductsMaker::coll_t
std::vector< double > coll_t
Definition:
BigProductProducer_module.cc:19
arttest::BigProductsMaker::produce
void produce(art::Event &e) override
Definition:
BigProductProducer_module.cc:28
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
arttest::BigProductsMaker
Definition:
BigProductProducer_module.cc:17
fhicl
parameter set interface
Definition:
prune_configuration.h:9
arttest
Definition:
GroupSelector_t.h:4
arttest::BigProductsMaker::BigProductsMaker
BigProductsMaker(fhicl::ParameterSet const &ps)
Definition:
BigProductProducer_module.cc:21
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
Event.h
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition:
DataViewImpl.h:692
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11