LArSoft  v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
LoaderToolBase.h
Go to the documentation of this file.
1 #ifndef LOADERTOOLBASE_H
2 #define LOADERTOOLBASE_H
3 
6 
8 
9 #include <string>
10 #include <utility>
11 #include <vector>
12 
13 using std::string;
14 using std::vector;
15 
16 struct NuGraphInput {
17  NuGraphInput(string s, vector<int32_t> vi)
18  : input_name(s), isInt(true), input_int32_vec(std::move(vi))
19  {}
20  NuGraphInput(string s, vector<float> vf)
21  : input_name(s), isInt(false), input_float_vec(std::move(vf))
22  {}
23  string input_name;
24  bool isInt;
25  vector<int32_t> input_int32_vec;
26  vector<float> input_float_vec;
27 };
28 
30 
31 public:
35  virtual ~LoaderToolBase() noexcept = default;
36 
42  virtual void loadData(art::Event& e,
43  vector<art::Ptr<recob::Hit>>& hitlist,
44  vector<NuGraphInput>& inputs,
45  vector<vector<size_t>>& idsmap) = 0;
46 
47  void setDebugAndPlanes(bool d, vector<std::string>& p)
48  {
49  debug = d;
50  planes = p;
51  }
52 
53 protected:
54  bool debug;
55  vector<std::string> planes;
56 };
57 
58 #endif
NuGraphInput(string s, vector< int32_t > vi)
Declaration of signal hit object.
vector< float > input_float_vec
vector< std::string > planes
STL namespace.
vector< int32_t > input_int32_vec
string input_name
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
NuGraphInput(string s, vector< float > vf)
void setDebugAndPlanes(bool d, vector< std::string > &p)
DebugStuff debug
Definition: DebugStruct.cxx:4
Float_t d
Definition: plot.C:235
Float_t e
Definition: plot.C:35