ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4BlockGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4BlockGeomContainer.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  PHG4BlockGeomContainer *phg4geomcontainer = nullptr;
26  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
27  if (thisNode)
28  {
29  phg4geomcontainer = thisNode->getData();
30  }
31  if (phg4geomcontainer)
32  {
34  PHG4BlockGeomContainer::ConstRange geom_begin_end = phg4geomcontainer->get_begin_end();
35  *fout << "num layers: " << phg4geomcontainer->get_NLayers() << endl;
36  for (hiter = geom_begin_end.first; hiter != geom_begin_end.second; hiter++)
37  {
38  *fout << "layer: " << hiter->second->get_layer() << endl;
39  *fout << "size_x: " << hiter->second->get_size_x() << endl;
40  *fout << "size_y: " << hiter->second->get_size_y() << endl;
41  *fout << "size_z: " << hiter->second->get_size_z() << endl;
42  *fout << "center_x: " << hiter->second->get_center_x() << endl;
43  *fout << "center_y: " << hiter->second->get_center_y() << endl;
44  *fout << "center_z: " << hiter->second->get_center_z() << endl;
45  *fout << "z_rot: " << hiter->second->get_z_rot() << endl;
46  *fout << "width: " << hiter->second->get_width() << endl;
47  *fout << "length: " << hiter->second->get_length() << endl;
48  *fout << "thickness: " << hiter->second->get_thickness() << endl;
49  }
50  }
51  return 0;
52 }