Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpTrkrClusterContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpTrkrClusterContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
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  TrkrClusterContainer *trkrclustercontainer = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  trkrclustercontainer = thisNode->getData();
28  }
29  if (trkrclustercontainer)
30  {
32  *fout << "size: " << trkrclustercontainer->size() << std::endl;
33  trkrclustercontainer->identify(*fout);
35  for (unsigned int &iter : keylist)
36  {
37  TrkrClusterContainer::ConstRange begin_end = trkrclustercontainer->getClusters(iter);
38  for (hiter = begin_end.first; hiter != begin_end.second; ++hiter)
39  {
40  TrkrCluster *trkrcluster = hiter->second;
41  *fout << "getAdc: " << trkrcluster->getAdc() << std::endl;
42  *fout << "getRPhiError: " << trkrcluster->getRPhiError() << std::endl;
43  *fout << "getZError: " << trkrcluster->getZError() << std::endl;
44  }
45  }
46  }
47  return 0;
48 }