Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPdbParameterMapContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPdbParameterMapContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
5 #include <pdbcalbase/PdbParameterMap.h>
6 #include <pdbcalbase/PdbParameterMapContainer.h>
7 
8 #include <map>
9 #include <ostream>
10 #include <string>
11 #include <utility>
12 
14 
16  : DumpObject(NodeName)
17 {
18  return;
19 }
20 
22 {
23  PdbParameterMapContainer *pdbparams = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  pdbparams = thisNode->getData();
28  }
29  if (pdbparams)
30  {
33  for (piter = pbegin_end.first; piter != pbegin_end.second; ++piter)
34  {
35  *fout << "PdbParameterMap # " << piter->first << std::endl;
37  PdbParameterMap::dConstRange dbegin_end = piter->second->get_dparam_iters();
38  for (diter = dbegin_end.first; diter != dbegin_end.second; ++diter)
39  {
40  *fout << "name: " << diter->first << ": value " << diter->second << std::endl;
41  }
43  PdbParameterMap::iConstRange ibegin_end = piter->second->get_iparam_iters();
44  for (iiter = ibegin_end.first; iiter != ibegin_end.second; ++iiter)
45  {
46  *fout << "name: " << iiter->first << ": value " << iiter->second << std::endl;
47  }
49  PdbParameterMap::strConstRange strbegin_end = piter->second->get_cparam_iters();
50  for (striter = strbegin_end.first; striter != strbegin_end.second; ++striter)
51  {
52  *fout << "name: " << striter->first << ": value " << striter->second << std::endl;
53  }
54  }
55  }
56  return 0;
57 }