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 
23 #include "fhiclcpp/ParameterSet.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.
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.
48 
50 
51 };
52 
53 
54 #endif
RunData runData(Index run, Index subRun) const override
std::string string
Definition: nybbler.cc:12
NameVector m_FileNames
FclRunDataTool(fhicl::ParameterSet const &ps)
std::vector< Name > NameVector
~FclRunDataTool() override=default
unsigned int Index
Definition: RunDataTool.h:14
static constexpr double ps
Definition: Units.h:99
std::string Name