Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpSvtxPHG4ParticleMap.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpSvtxPHG4ParticleMap.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  SvtxPHG4ParticleMap *svtxphg4particlemap = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  svtxphg4particlemap = thisNode->getData();
28  }
29  if (svtxphg4particlemap)
30  {
31  *fout << "size " << svtxphg4particlemap->size() << std::endl;
32  for (auto const &iter : *svtxphg4particlemap)
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 (int iter3 : iter2.second)
40  {
41  *fout << "track id " << iter3 << std::endl;
42  }
43  }
44  }
45  }
46  return 0;
47 }