Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:57

0001 #include "PHG4CylinderGeomv1.h"
0002 
0003 #include <phparameter/PHParameters.h>
0004 
0005 void PHG4CylinderGeomv1::identify(std::ostream& os) const
0006 {
0007   os << "PHG4CylinderGeomv1: layer: " << layer
0008      << ", radius: " << radius
0009      << ", thickness: " << thickness
0010      << ", zmin: " << zmin
0011      << ", zmax: " << zmax
0012      << std::endl;
0013   return;
0014 }
0015 
0016 void PHG4CylinderGeomv1::ImportParameters(const PHParameters& param)
0017 {
0018   PHG4CylinderGeom::ImportParameters(param);
0019 
0020   if (param.exist_int_param("layer"))
0021   {
0022     layer = param.get_int_param("layer");
0023   }
0024   if (param.exist_double_param("radius"))
0025   {
0026     radius = param.get_double_param("radius");
0027   }
0028   if (param.exist_double_param("zmin"))
0029   {
0030     zmin = param.get_double_param("zmin");
0031   }
0032   if (param.exist_double_param("zmax"))
0033   {
0034     zmax = param.get_double_param("zmax");
0035   }
0036   if (param.exist_double_param("thickness"))
0037   {
0038     thickness = param.get_double_param("thickness");
0039   }
0040 
0041   return;
0042 }