Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Utilities
tools
MultiplyNumber_tool.cc
Go to the documentation of this file.
1
#include "
art/Utilities/ToolMacros.h
"
2
#include "
art/test/Utilities/tools/OperationBase.h
"
3
4
namespace
fhicl
{
5
class
ParameterSet;
6
}
7
8
namespace
arttest
{
9
class
MultiplyNumber
:
public
OperationBase
{
10
public
:
11
explicit
MultiplyNumber
(
fhicl::ParameterSet
const
&) {}
12
13
private
:
14
void
15
do_adjustNumber
(
int
& i)
const override
16
{
17
i *= 2;
18
}
19
};
20
}
// namespace arttest
21
22
DEFINE_ART_CLASS_TOOL
(
arttest::MultiplyNumber
)
DEFINE_ART_CLASS_TOOL
#define DEFINE_ART_CLASS_TOOL(tool)
Definition:
ToolMacros.h:42
arttest::MultiplyNumber::MultiplyNumber
MultiplyNumber(fhicl::ParameterSet const &)
Definition:
MultiplyNumber_tool.cc:11
ToolMacros.h
arttest::MultiplyNumber::do_adjustNumber
void do_adjustNumber(int &i) const override
Definition:
MultiplyNumber_tool.cc:15
fhicl
Definition:
InputSourceFactory.h:7
arttest
Definition:
GroupSelector_t.h:4
OperationBase.h
arttest::OperationBase
Definition:
OperationBase.h:5
arttest::MultiplyNumber
Definition:
MultiplyNumber_tool.cc:9
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11