ECCE @ EIC 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 
13 using namespace std;
14 
16 
18  : DumpObject(NodeName)
19 {
20  return;
21 }
22 
24 {
25  TrkrClusterContainer *trkrclustercontainer = nullptr;
26  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
27  if (thisNode)
28  {
29  trkrclustercontainer = thisNode->getData();
30  }
31  if (trkrclustercontainer)
32  {
34  TrkrClusterContainer::ConstRange begin_end = trkrclustercontainer->getClusters();
35  *fout << "size: " << trkrclustercontainer->size() << endl;
36  for (hiter = begin_end.first; hiter != begin_end.second; ++hiter)
37  {
38  TrkrCluster *trkrcluster = hiter->second;
39  *fout << "getX: " << trkrcluster->getX() << endl;
40  *fout << "getY: " << trkrcluster->getY() << endl;
41  *fout << "getZ: " << trkrcluster->getZ() << endl;
42  *fout << "getAdc: " << trkrcluster->getAdc() << endl;
43  *fout << "getPhiSize: " << trkrcluster->getPhiSize() << endl;
44  *fout << "getPhiError: " << trkrcluster->getPhiError() << endl;
45  *fout << "getRPhiError: " << trkrcluster->getRPhiError() << endl;
46  *fout << "getZError: " << trkrcluster->getZError() << endl;
47  }
48  }
49  return 0;
50 }