Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4CylinderCellGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4CylinderCellGeomContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
8 
9 #include <map>
10 #include <ostream>
11 #include <string>
12 #include <utility>
13 
15 
17  : DumpObject(NodeName)
18 {
19  return;
20 }
21 
23 {
24  PHG4CylinderCellGeomContainer *phg4geomcontainer = nullptr;
25  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
26  if (thisNode)
27  {
28  phg4geomcontainer = thisNode->getData();
29  }
30  if (phg4geomcontainer)
31  {
33  PHG4CylinderCellGeomContainer::ConstRange geom_begin_end = phg4geomcontainer->get_begin_end();
34  *fout << "num layers: " << phg4geomcontainer->get_NLayers() << std::endl;
35  for (hiter = geom_begin_end.first; hiter != geom_begin_end.second; hiter++)
36  {
37  *fout << "layer: " << hiter->second->get_layer() << std::endl;
38  *fout << "radius: " << hiter->second->get_radius() << std::endl;
39  *fout << "thickness: " << hiter->second->get_thickness() << std::endl;
40  int binning = hiter->second->get_binning();
41  *fout << "binning: " << binning << std::endl;
42  switch (binning)
43  {
45 
46  *fout << "zbins: " << hiter->second->get_zbins() << std::endl;
47  *fout << "zmin: " << hiter->second->get_zmin() << std::endl;
48  *fout << "zstep: " << hiter->second->get_zstep() << std::endl;
49  break;
51  *fout << "etabins: " << hiter->second->get_etabins() << std::endl;
52  *fout << "etastep: " << hiter->second->get_etastep() << std::endl;
53  *fout << "etamin: " << hiter->second->get_etamin() << std::endl;
54  break;
55  default:
56  break;
57  }
58  *fout << "phibins: " << hiter->second->get_phibins() << std::endl;
59  *fout << "phistep: " << hiter->second->get_phistep() << std::endl;
60  *fout << "phimin: " << hiter->second->get_phimin() << std::endl;
61  }
62  }
63  return 0;
64 }