EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4CylinderGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4CylinderGeomContainer.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  PHG4CylinderGeomContainer *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  PHG4CylinderGeomContainer::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 << "radius: " << hiter->second->get_radius() << endl;
40  *fout << "thickness: " << hiter->second->get_thickness() << endl;
41  *fout << "zmin: " << hiter->second->get_zmin() << endl;
42  *fout << "zmax: " << hiter->second->get_zmax() << endl;
43  *fout << "nscint: " << hiter->second->get_nscint() << endl;
44  *fout << "tiltangle: " << hiter->second->get_tiltangle() << endl;
45  *fout << "strip_y_spacing: " << hiter->second->get_strip_y_spacing() << endl;
46  *fout << "strip_z_spacing: " << hiter->second->get_strip_z_spacing() << endl;
47  *fout << "strip_tilt: " << hiter->second->get_strip_tilt() << endl;
48  *fout << "N_strip_columns: " << hiter->second->get_N_strip_columns() << endl;
49  *fout << "N_strips_per_column: " << hiter->second->get_N_strips_per_column() << endl;
50  *fout << "N_sensors_in_layer: " << hiter->second->get_N_sensors_in_layer() << endl;
51  *fout << "pixel_z: " << hiter->second->get_pixel_z() << endl;
52  *fout << "pixel_x: " << hiter->second->get_pixel_x() << endl;
53  *fout << "pixel_thickness: " << hiter->second->get_pixel_thickness() << endl;
54  }
55  }
56  return 0;
57 }