Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpMbdVertexMap.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpMbdVertexMap.cc
1 #include "DumpMbdVertexMap.h"
2 
5 
6 #include <phool/PHIODataNode.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  MbdVertexMap *mbdvertexmap = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  mbdvertexmap = thisNode->getData();
28  }
29  if (mbdvertexmap)
30  {
31  MbdVertexMap::ConstIter biter_beg = mbdvertexmap->begin();
32  MbdVertexMap::ConstIter biter_end = mbdvertexmap->end();
33  *fout << "size: " << mbdvertexmap->size() << std::endl;
34  for (MbdVertexMap::ConstIter biter = biter_beg; biter != biter_end; ++biter)
35  {
36  *fout << "id: " << biter->second->get_id() << std::endl;
37  *fout << "t: " << biter->second->get_t() << std::endl;
38  *fout << "t_err: " << biter->second->get_t_err() << std::endl;
39  *fout << "z: " << biter->second->get_z() << std::endl;
40  *fout << "z_err: " << biter->second->get_z_err() << std::endl;
41  }
42  }
43  return 0;
44 }