VarDictBuilder.cxx
Go to the documentation of this file.
2 
3 namespace SliceLID
4 {
5 
7  const art::Event &evt,
8  const art::Handle<std::vector<rb::Cluster>> &slices_h,
9  size_t sliceIdx,
10  const std::vector<art::Ptr<rb::Vertex>> &elastics,
11  const Config &config
12 ) : png3dVars(evt, elastics, config),
13  sliceVars(evt, slices_h, sliceIdx)
14 { }
15 
17 {
19 
20  sliceVars.saveToDict(result.scalarVarMap, "");
21  png3dVars.saveToDict(result.vectorVarMap, "png.");
22 
23  return result;
24 }
25 
26 }
std::unordered_map< std::string, std::vector< double > > vectorVarMap
Definition: VarDict.h:11
void saveToDict(std::unordered_map< std::string, double > &dict, const std::string &prefix) const
Definition: SliceVars.cxx:17
Definition: config.py:1
int evt
void saveToDict(std::unordered_map< std::string, std::vector< double >> &dict, const std::string &prefix) const
Definition: Png3dVars.cxx:43
Definition: VarDict.h:7
Definition: fwd.h:29
std::unordered_map< std::string, double > scalarVarMap
Definition: VarDict.h:10
VarDictBuilder(const art::Event &evt, const art::Handle< std::vector< rb::Cluster >> &slices_h, size_t sliceIdx, const std::vector< art::Ptr< rb::Vertex >> &elastics, const Config &config)