Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
TestSimpleMemoryCheckProducer_module.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------
2
//
3
// SimpleMemoryCheckProducer module
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 "
fhiclcpp/ParameterSet.h
"
11
12
#include <memory>
13
#include <vector>
14
15
namespace
arttest
{
16
17
class
TestSimpleMemoryCheckProducer
:
public
art::EDProducer
{
18
public
:
19
struct
Config
{
20
};
21
using
Parameters
=
art::EDProducer::Table<Config>
;
22
explicit
TestSimpleMemoryCheckProducer
(
Parameters
const
&
ps
)
23
:
EDProducer
{ps}
24
{}
25
26
private
:
27
void
produce
(
art::Event
&)
override
;
28
std::vector<std::vector<int>>
int_ptr_vec_
;
29
};
30
31
void
32
TestSimpleMemoryCheckProducer::produce
(
art::Event
&)
33
{
34
int_ptr_vec_
.emplace_back(100000, 0.);
35
}
36
37
}
// namespace arttest
38
39
DEFINE_ART_MODULE
(
arttest::TestSimpleMemoryCheckProducer
)
arttest::TestSimpleMemoryCheckProducer
Definition:
TestSimpleMemoryCheckProducer_module.cc:17
genie::units::ps
static const double ps
Definition:
Units.h:103
art::EDProducer::EDProducer
EDProducer()=default
art::ProducerTable
Definition:
ProducerTable.h:19
arttest::TestSimpleMemoryCheckProducer::produce
void produce(art::Event &) override
Definition:
TestSimpleMemoryCheckProducer_module.cc:32
ParameterSet.h
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
arttest
Definition:
GroupSelector_t.h:4
arttest::TestSimpleMemoryCheckProducer::Config
Definition:
TestSimpleMemoryCheckProducer_module.cc:19
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
arttest::TestSimpleMemoryCheckProducer::TestSimpleMemoryCheckProducer
TestSimpleMemoryCheckProducer(Parameters const &ps)
Definition:
TestSimpleMemoryCheckProducer_module.cc:22
arttest::TestSimpleMemoryCheckProducer::int_ptr_vec_
std::vector< std::vector< int > > int_ptr_vec_
Definition:
TestSimpleMemoryCheckProducer_module.cc:28
Event.h
Generated by
1.8.11