Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4TpcCylinderGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4TpcCylinderGeomContainer.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  PHG4TpcCylinderGeomContainer *phg4geomcontainer = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  phg4geomcontainer = thisNode->getData();
28  }
29  if (phg4geomcontainer)
30  {
32  PHG4TpcCylinderGeomContainer::ConstRange geom_begin_end = phg4geomcontainer->get_begin_end();
33  *fout << "num layers: " << phg4geomcontainer->get_NLayers() << std::endl;
34  for (hiter = geom_begin_end.first; hiter != geom_begin_end.second; hiter++)
35  {
36  *fout << *(hiter->second) << std::endl;
37  }
38  }
39  return 0;
40 }