Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
RunSubRunProductProducerNoPut_module.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------
2
//
3
// Produces an RunSubRunProducerNoPut instance.
4
//
5
//--------------------------------------------------------------------
6
7
#include "
art/Framework/Core/EDProducer.h
"
8
#include "
art/Framework/Core/ModuleMacros.h
"
9
#include "
art/Framework/Principal/Run.h
"
10
#include "
art/Framework/Principal/SubRun.h
"
11
12
namespace
art
{
13
class
Event
;
14
}
15
namespace
fhicl
{
16
class
ParameterSet;
17
}
18
19
namespace
arttest
{
20
21
class
RunSubRunProducerNoPut
:
public
art::EDProducer
{
22
public
:
23
explicit
RunSubRunProducerNoPut
(
fhicl::ParameterSet
const
&
ps
)
24
: EDProducer{ps}
25
{
26
produces<int, art::InRun>(
"bgnRun"
);
27
produces<int, art::InSubRun>(
"bgnSubRun"
);
28
}
29
30
private
:
31
// We are not putting the products on the Run or SubRun -- i.e. no
32
// overrides for beginRun and beginSubRun.
33
void
34
produce
(
art::Event
&)
override
35
{}
36
};
37
38
}
// namespace arttest
39
40
DEFINE_ART_MODULE
(
arttest::RunSubRunProducerNoPut
)
genie::units::ps
static const double ps
Definition:
Units.h:103
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
fhicl
parameter set interface
Definition:
prune_configuration.h:9
arttest::RunSubRunProducerNoPut::produce
void produce(art::Event &) override
Definition:
RunSubRunProductProducerNoPut_module.cc:34
arttest::RunSubRunProducerNoPut
Definition:
RunSubRunProductProducerNoPut_module.cc:21
arttest
Definition:
GroupSelector_t.h:4
SubRun.h
arttest::RunSubRunProducerNoPut::RunSubRunProducerNoPut
RunSubRunProducerNoPut(fhicl::ParameterSet const &ps)
Definition:
RunSubRunProductProducerNoPut_module.cc:23
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:40
art
Definition:
BasicOptionsHandler.h:11
art::Level::Event
Run.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11