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