Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Core
RPWorkerT.h
Go to the documentation of this file.
1
#ifndef art_Framework_Core_RPWorkerT_h
2
#define art_Framework_Core_RPWorkerT_h
3
// vim: set sw=2 expandtab :
4
5
#include "
art/Framework/Principal/RPWorker.h
"
6
7
#include <memory>
8
9
namespace
art
{
10
11
template
<
typename
RP>
12
class
RPWorkerT
:
public
RPWorker
{
13
14
public
:
15
using
RPType
= RP;
16
17
public
:
18
RPWorkerT
(
RPParams
const
&
p
,
fhicl::ParameterSet
const
&
ps
);
19
20
private
:
21
RP&
rp_
()
override
;
22
23
RP
const
&
rp_
()
const override
;
24
25
private
:
26
RP
rpPlugin_
;
27
};
28
29
template
<
typename
RP>
30
RPWorkerT<RP>::RPWorkerT
(
RPParams
const
&
p
,
fhicl::ParameterSet
const
&
ps
)
31
:
RPWorker
(p),
rpPlugin_
(ps)
32
{}
33
34
template
<
typename
RP>
35
inline
auto
36
RPWorkerT<RP>::rp_
() ->
RPType
&
37
{
38
return
rpPlugin_
;
39
}
40
41
template
<
typename
RP>
42
inline
auto
43
RPWorkerT<RP>::rp_
()
const
->
RPType
const
&
44
{
45
return
rpPlugin_
;
46
}
47
48
}
// namespace art
49
50
#endif
/* art_Framework_Core_RPWorkerT_h */
51
52
// Local Variables:
53
// mode: c++
54
// End:
freeze_graph.const
const
Definition:
freeze_graph.py:179
art::RPWorker
Definition:
RPWorker.h:21
art::RPWorkerT::RPType
RP RPType
Definition:
RPWorkerT.h:15
art::RPWorkerT::rpPlugin_
RP rpPlugin_
Definition:
RPWorkerT.h:26
art::RPWorkerT::RPWorkerT
RPWorkerT(RPParams const &p, fhicl::ParameterSet const &ps)
Definition:
RPWorkerT.h:30
test.p
p
Definition:
test.py:223
art::RPWorkerT
Definition:
RPWorkerT.h:12
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
art::RPParams
Definition:
RPParams.h:18
RPWorker.h
art
Definition:
BasicOptionsHandler.h:9
art::RPWorkerT::rp_
RP & rp_() override
Definition:
RPWorkerT.h:36
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11