Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4BlockCellGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4BlockCellGeomContainer.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  PHG4BlockCellGeomContainer *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  PHG4BlockCellGeomContainer::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  int binning = hiter->second->get_binning();
39  *fout << "binning: " << binning << std::endl;
40  switch (binning)
41  {
43 
44  *fout << "zbins: " << hiter->second->get_zbins() << std::endl;
45  *fout << "zmin: " << hiter->second->get_zmin() << std::endl;
46  *fout << "zstep: " << hiter->second->get_zstep() << std::endl;
47  *fout << "xbins: " << hiter->second->get_xbins() << std::endl;
48  *fout << "xmin: " << hiter->second->get_xmin() << std::endl;
49  *fout << "xstep: " << hiter->second->get_xstep() << std::endl;
50  break;
53  *fout << "etabins: " << hiter->second->get_etabins() << std::endl;
54  *fout << "etastep: " << hiter->second->get_etastep() << std::endl;
55  *fout << "etamin: " << hiter->second->get_etamin() << std::endl;
56  *fout << "xbins: " << hiter->second->get_xbins() << std::endl;
57  *fout << "xmin: " << hiter->second->get_xmin() << std::endl;
58  *fout << "xstep: " << hiter->second->get_xstep() << std::endl;
59  break;
60  default:
61  break;
62  }
63  }
64  }
65  return 0;
66 }