Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Framework
Services
Optional
ReplicatedRNG_module.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/ModuleMacros.h
"
2
#include "
art/Framework/Core/ReplicatedProducer.h
"
3
4
#include <cassert>
5
6
namespace
{
7
class
ReplicatedRNG :
public
art::ReplicatedProducer
{
8
public
:
9
struct
Config
{};
10
using
Parameters = Table<Config>;
11
explicit
ReplicatedRNG(Parameters
const
&
p
,
12
art::ProcessingFrame
const
& frame)
13
: ReplicatedProducer{
p
, frame}
14
{
15
auto
const
id
= frame.
scheduleID
().id();
16
assert(createEngine(
id
).getSeed() ==
id
);
17
}
18
19
private
:
20
void
21
produce(
art::Event
&,
art::ProcessingFrame
const
&)
override
22
{}
23
};
24
}
25
26
DEFINE_ART_MODULE
(ReplicatedRNG)
art::ProcessingFrame::scheduleID
auto scheduleID() const
Definition:
ProcessingFrame.h:20
art::detail::Config
typename config_impl< T >::type Config
Definition:
ModuleMacros.h:52
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:67
art::ProcessingFrame
Definition:
ProcessingFrame.h:8
test.p
p
Definition:
test.py:223
ModuleMacros.h
art::Event
Definition:
Event.h:22
art::ReplicatedProducer
Definition:
ReplicatedProducer.h:19
ReplicatedProducer.h
Generated by
1.8.11