Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpTpcSeedTrackMap.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpTpcSeedTrackMap.cc
1 #include "DumpTpcSeedTrackMap.h"
2 
3 #include <phool/PHIODataNode.h>
4 
6 
7 #include <map>
8 #include <ostream>
9 #include <string>
10 #include <utility>
11 
13 
15  : DumpObject(NodeName)
16 {
17  return;
18 }
19 
21 {
22  TpcSeedTrackMap *tpcseedtrackmap = nullptr;
23  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
24  if (thisNode)
25  {
26  tpcseedtrackmap = thisNode->getData();
27  }
28  if (tpcseedtrackmap)
29  {
30  TpcSeedTrackMap::ConstRange begin_end = tpcseedtrackmap->getAll();
31  *fout << "size " << tpcseedtrackmap->size() << std::endl;
32  for (auto iter = begin_end.first; iter != begin_end.second; ++iter)
33  {
34  *fout << "original id: " << iter->first << ", duplicate id: " << iter->second << std::endl;
35  }
36  }
37  return 0;
38 }