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