ECCE @ EIC 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 
13 using namespace std;
14 
16 
18  : DumpObject(NodeName)
19 {
20  return;
21 }
22 
24 {
25  PdbParameterMapContainer *pdbparams = nullptr;
26  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
27  if (thisNode)
28  {
29  pdbparams = thisNode->getData();
30  }
31  if (pdbparams)
32  {
35  for (piter = pbegin_end.first; piter != pbegin_end.second; ++piter)
36  {
37  *fout << "PdbParameterMap # " << piter->first << endl;
39  PdbParameterMap::dConstRange dbegin_end = piter->second->get_dparam_iters();
40  for (diter = dbegin_end.first; diter != dbegin_end.second; ++diter)
41  {
42  *fout << "name: " << diter->first << ": value " << diter->second << endl;
43  }
45  PdbParameterMap::iConstRange ibegin_end = piter->second->get_iparam_iters();
46  for (iiter = ibegin_end.first; iiter != ibegin_end.second; ++iiter)
47  {
48  *fout << "name: " << iiter->first << ": value " << iiter->second << endl;
49  }
51  PdbParameterMap::strConstRange strbegin_end = piter->second->get_cparam_iters();
52  for (striter = strbegin_end.first; striter != strbegin_end.second; ++striter)
53  {
54  *fout << "name: " << striter->first << ": value " << striter->second << endl;
55  }
56  }
57  }
58  return 0;
59 }