Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderGeomv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CylinderGeomv1.cc
1 #include "PHG4CylinderGeomv1.h"
2 
3 #include <phparameter/PHParameters.h>
4 
5 void PHG4CylinderGeomv1::identify(std::ostream& os) const
6 {
7  os << "PHG4CylinderGeomv1: layer: " << layer
8  << ", radius: " << radius
9  << ", thickness: " << thickness
10  << ", zmin: " << zmin
11  << ", zmax: " << zmax
12  << std::endl;
13  return;
14 }
15 
17 {
19 
20  if (param.exist_int_param("layer")) layer = param.get_int_param("layer");
21  if (param.exist_double_param("radius")) radius = param.get_double_param("radius");
22  if (param.exist_double_param("zmin")) zmin = param.get_double_param("zmin");
23  if (param.exist_double_param("zmax")) zmax = param.get_double_param("zmax");
24  if (param.exist_double_param("thickness")) thickness = param.get_double_param("thickness");
25 
26  return;
27 }