Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
ArtSupport
Tool
TestTool.h
Go to the documentation of this file.
1
// TestTool.h
2
3
// David Adams
4
// August 2017
5
//
6
// Example tool for testing.
7
//
8
// Configuration:
9
// Label: String associated with tool.
10
11
#ifndef TestTool_H
12
#define TestTool_H
13
14
#include "
ITestTool.h
"
15
#include "
art/Utilities/ToolMacros.h
"
16
#include "
fhiclcpp/ParameterSet.h
"
17
#include <iostream>
18
19
class
TestTool
:
public
ITestTool
{
20
21
public
:
22
23
TestTool
(
fhicl::ParameterSet
const
&
ps
);
24
25
~TestTool
()
override
;
26
27
std::string
mytype
()
const override
{
return
"TestTool"
; }
28
29
std::string
label
()
override
{ ++
m_count
;
return
m_Label
; }
30
31
private
:
32
33
// Configuration data.
34
std::string
m_Label
;
35
36
// Call count.
37
int
m_count
;
38
39
};
40
41
42
#endif
string
std::string string
Definition:
nybbler.cc:12
TestTool::m_count
int m_count
Definition:
TestTool.h:37
TestTool::label
std::string label() override
Definition:
TestTool.h:29
ParameterSet.h
ToolMacros.h
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
TestTool::mytype
std::string mytype() const override
Definition:
TestTool.h:27
ITestTool
Definition:
ITestTool.h:13
TestTool::~TestTool
~TestTool() override
Definition:
TestTool_tool.cc:34
TestTool::TestTool
TestTool(fhicl::ParameterSet const &ps)
Definition:
TestTool_tool.cc:25
ITestTool.h
TestTool::m_Label
std::string m_Label
Definition:
TestTool.h:34
TestTool
Definition:
TestTool.h:19
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11