Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Tool
FclRunDataTool.h
Go to the documentation of this file.
1
// FclRunDataTool.h
2
//
3
// David Adams
4
// May 2018
5
//
6
// Fcl-based tool to find conditions data for a run.
7
//
8
// A search is done along the usual fcl path for each of the files in FileNames
9
// afer making the following substitions in those names:
10
// %RUN% --> run number
11
// %SUBRUN% --> run number
12
// with the run and subrun sustitutions padded with leading zeros to attain
13
// a length of (at least) six.
14
//
15
// Parameters:
16
// LogLevel - Message logging level (0=none, 1=ctor, 2=each call, ...)
17
// FileNames - Vector of file name patterns
18
19
#ifndef FclRunDataTool_H
20
#define FclRunDataTool_H
21
22
#include "
art/Utilities/ToolMacros.h
"
23
#include "
fhiclcpp/ParameterSet.h
"
24
#include "
dunecore/DuneInterface/Tool/RunDataTool.h
"
25
#include <vector>
26
27
class
FclRunDataTool
:
public
RunDataTool
{
28
29
public
:
30
31
using
Name
=
std::string
;
32
using
NameVector
= std::vector<Name>;
33
34
// Ctor.
35
FclRunDataTool
(
fhicl::ParameterSet
const
&
ps
);
36
37
// Dtor.
38
~FclRunDataTool
()
override
=
default
;
39
40
// Return run data.
41
RunData
runData
(
Index
run
,
Index
subRun)
const override
;
42
43
private
:
44
45
// Parameters.
46
Index
m_LogLevel
;
47
NameVector
m_FileNames
;
48
49
Name
m_fclPath
;
50
51
};
52
53
54
#endif
FclRunDataTool::runData
RunData runData(Index run, Index subRun) const override
Definition:
FclRunDataTool_tool.cc:71
string
std::string string
Definition:
nybbler.cc:12
FclRunDataTool::m_fclPath
Name m_fclPath
Definition:
FclRunDataTool.h:49
RunData
Definition:
RunData.h:21
FclRunDataTool
Definition:
FclRunDataTool.h:27
FclRunDataTool::m_FileNames
NameVector m_FileNames
Definition:
FclRunDataTool.h:47
FclRunDataTool::m_LogLevel
Index m_LogLevel
Definition:
FclRunDataTool.h:46
FclRunDataTool::FclRunDataTool
FclRunDataTool(fhicl::ParameterSet const &ps)
Definition:
FclRunDataTool_tool.cc:50
filelisting.run
int run
Definition:
filelisting.py:13
ParameterSet.h
ToolMacros.h
FclRunDataTool::NameVector
std::vector< Name > NameVector
Definition:
FclRunDataTool.h:32
FclRunDataTool::~FclRunDataTool
~FclRunDataTool() override=default
RunDataTool::Index
unsigned int Index
Definition:
RunDataTool.h:14
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
FclRunDataTool::Name
std::string Name
Definition:
FclRunDataTool.h:31
RunDataTool
Definition:
RunDataTool.h:10
RunDataTool.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11