CMS 3D CMS Logo

Functions
dtGeometryBuilder Namespace Reference

Functions

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

Function Documentation

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

Definition at line 84 of file DTGeometryBuilderFromCondDB.cc.

References geant_units::operators::convertMmToCm(), and ApeEstimator_cff::width.

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

84  {
85  float width = convertMmToCm( *(shapeStart) ); // r-phi dimension - different in different chambers
86  float length = convertMmToCm( *(shapeStart + 1) ); // z dimension - constant
87  float thickness = convertMmToCm( *(shapeStart + 2) ); // radial thickness - almost constant
88  return new RectangularPlaneBounds(width, length, thickness);
89 }
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:110