ECCE @ EIC 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 
12 using namespace std;
13 
15 
17  : DumpObject(NodeName)
18 {
19  return;
20 }
21 
23 {
24  PdbParameterMap *pdbparams = nullptr;
25  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
26  if (thisNode)
27  {
28  pdbparams = thisNode->getData();
29  }
30  if (pdbparams)
31  {
33  PdbParameterMap::dConstRange dbegin_end = pdbparams->get_dparam_iters();
34  for (diter = dbegin_end.first; diter != dbegin_end.second; ++diter)
35  {
36  *fout << "name: " << diter->first << ": value " << diter->second << endl;
37  }
39  PdbParameterMap::iConstRange ibegin_end = pdbparams->get_iparam_iters();
40  for (iiter = ibegin_end.first; iiter != ibegin_end.second; ++iiter)
41  {
42  *fout << "name: " << iiter->first << ": value " << iiter->second << endl;
43  }
45  PdbParameterMap::strConstRange strbegin_end = pdbparams->get_cparam_iters();
46  for (striter = strbegin_end.first; striter != strbegin_end.second; ++striter)
47  {
48  *fout << "name: " << striter->first << ": value " << striter->second << endl;
49  }
50  }
51  return 0;
52 }