Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4ParticleSvtxMap.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4ParticleSvtxMap.cc
2 
3 #include <phool/PHIODataNode.h>
4 
6 
7 #include <map>
8 #include <ostream>
9 #include <set>
10 #include <string>
11 #include <utility>
12 
14 
16  : DumpObject(NodeName)
17 {
18  return;
19 }
20 
22 {
23  PHG4ParticleSvtxMap *phg4particlesvtxmap = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  phg4particlesvtxmap = thisNode->getData();
28  }
29  if (phg4particlesvtxmap)
30  {
31  *fout << "size " << phg4particlesvtxmap->size() << std::endl;
32  for (auto const &iter : *phg4particlesvtxmap)
33  {
34  *fout << "Cluster: " << std::hex << iter.first << std::dec << std::endl;
35 
36  for (auto const &iter2 : iter.second)
37  {
38  *fout << "weight: " << iter2.first << std::endl;
39  for (unsigned int iter3 : iter2.second)
40  {
41  *fout << "track id " << iter3 << std::endl;
42  }
43  }
44  }
45  }
46  return 0;
47 }