CMS 3D CMS Logo

Functions
dtGeometryBuilder Namespace Reference

Functions

RectangularPlaneBoundsgetRecPlaneBounds (const std::vector< double >::const_iterator &shapeStart)
 

Function Documentation

◆ getRecPlaneBounds()

RectangularPlaneBounds * dtGeometryBuilder::getRecPlaneBounds ( const std::vector< double >::const_iterator &  shapeStart)

Definition at line 91 of file DTGeometryBuilderFromCondDB.cc.

References angle_units::operators::convertMmToCm(), Calorimetry_cff::thickness, and ApeEstimator_cff::width.

Referenced by DTGeometryBuilderFromDDD::buildChamber(), DTGeometryBuilderFromCondDB::buildChamber(), DTGeometryBuilderFromDDD::buildLayer(), DTGeometryBuilderFromCondDB::buildLayer(), DTGeometryBuilderFromDDD::buildSuperLayer(), and DTGeometryBuilderFromCondDB::buildSuperLayer().

91  {
92  float width = convertMmToCm(*(shapeStart)); // r-phi dimension - different in different chambers
93  float length = convertMmToCm(*(shapeStart + 1)); // z dimension - constant
94  float thickness = convertMmToCm(*(shapeStart + 2)); // radial thickness - almost constant
95  return new RectangularPlaneBounds(width, length, thickness);
96 }
constexpr NumType convertMmToCm(NumType millimeters)
Definition: angle_units.h:44