ECCE @ EIC 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 
14 using namespace std;
15 
17 
19  : DumpObject(NodeName)
20 {
21  return;
22 }
23 
25 {
26  PHG4BlockCellGeomContainer *phg4geomcontainer = nullptr;
27  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
28  if (thisNode)
29  {
30  phg4geomcontainer = thisNode->getData();
31  }
32  if (phg4geomcontainer)
33  {
35  PHG4BlockCellGeomContainer::ConstRange geom_begin_end = phg4geomcontainer->get_begin_end();
36  *fout << "num layers: " << phg4geomcontainer->get_NLayers() << endl;
37  for (hiter = geom_begin_end.first; hiter != geom_begin_end.second; hiter++)
38  {
39  *fout << "layer: " << hiter->second->get_layer() << endl;
40  int binning = hiter->second->get_binning();
41  *fout << "binning: " << binning << endl;
42  switch (binning)
43  {
45 
46  *fout << "zbins: " << hiter->second->get_zbins() << endl;
47  *fout << "zmin: " << hiter->second->get_zmin() << endl;
48  *fout << "zstep: " << hiter->second->get_zstep() << endl;
49  *fout << "xbins: " << hiter->second->get_xbins() << endl;
50  *fout << "xmin: " << hiter->second->get_xmin() << endl;
51  *fout << "xstep: " << hiter->second->get_xstep() << endl;
52  break;
54  *fout << "etabins: " << hiter->second->get_etabins() << endl;
55  *fout << "etastep: " << hiter->second->get_etastep() << endl;
56  *fout << "etamin: " << hiter->second->get_etamin() << endl;
57  *fout << "xbins: " << hiter->second->get_xbins() << endl;
58  *fout << "xmin: " << hiter->second->get_xmin() << endl;
59  *fout << "xstep: " << hiter->second->get_xstep() << endl;
60  break;
62  *fout << "etabins: " << hiter->second->get_etabins() << endl;
63  *fout << "etastep: " << hiter->second->get_etastep() << endl;
64  *fout << "etamin: " << hiter->second->get_etamin() << endl;
65  *fout << "xbins: " << hiter->second->get_xbins() << endl;
66  *fout << "xmin: " << hiter->second->get_xmin() << endl;
67  *fout << "xstep: " << hiter->second->get_xstep() << endl;
68  break;
69  default:
70  break;
71  }
72  }
73  }
74  return 0;
75 }