Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpTrkrClusterCrossingAssoc.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpTrkrClusterCrossingAssoc.cc
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  TrkrClusterCrossingAssoc *trkrclustercrossingassoc = nullptr;
23  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
24  if (thisNode)
25  {
26  trkrclustercrossingassoc = thisNode->getData();
27  }
28  if (trkrclustercrossingassoc)
29  {
30  TrkrClusterCrossingAssoc::ConstRange begin_end = trkrclustercrossingassoc->getAll();
31  *fout << "size " << trkrclustercrossingassoc->size() << std::endl;
32  for (auto iter = begin_end.first; iter != begin_end.second; ++iter)
33  {
34  *fout << "cluster: " << std::hex << iter->first << std::dec << ", crossing: " << iter->second << std::endl;
35  }
36  }
37  return 0;
38 }