Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Utilities
tools
SubtractNumber_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
SubtractNumber
:
public
OperationBase
{
10
public
:
11
explicit
SubtractNumber
(
fhicl::ParameterSet
const
&) {}
12
13
private
:
14
void
15
do_adjustNumber
(
int
& i)
const override
16
{
17
--i;
18
}
19
};
20
}
// namespace arttest
21
22
DEFINE_ART_CLASS_TOOL
(
arttest::SubtractNumber
)
DEFINE_ART_CLASS_TOOL
#define DEFINE_ART_CLASS_TOOL(tool)
Definition:
ToolMacros.h:42
arttest::SubtractNumber::do_adjustNumber
void do_adjustNumber(int &i) const override
Definition:
SubtractNumber_tool.cc:15
arttest::SubtractNumber::SubtractNumber
SubtractNumber(fhicl::ParameterSet const &)
Definition:
SubtractNumber_tool.cc:11
ToolMacros.h
arttest::SubtractNumber
Definition:
SubtractNumber_tool.cc:9
fhicl
Definition:
InputSourceFactory.h:7
arttest
Definition:
GroupSelector_t.h:4
OperationBase.h
arttest::OperationBase
Definition:
OperationBase.h:5
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11