CMS 3D CMS Logo

Public Types | Public Member Functions

PlaneBuilderFromGeometricDet Class Reference

#include <PlaneBuilderFromGeometricDet.h>

List of all members.

Public Types

typedef
ReferenceCountingPointer
< BoundPlane
ResultType

Public Member Functions

ResultType plane (const GeometricDet *gd) const

Detailed Description

Converts DDFilteredView volumes to Bounds

Definition at line 11 of file PlaneBuilderFromGeometricDet.h.


Member Typedef Documentation

Definition at line 13 of file PlaneBuilderFromGeometricDet.h.


Member Function Documentation

PlaneBuilderFromGeometricDet::ResultType PlaneBuilderFromGeometricDet::plane ( const GeometricDet gd) const

given a current detector node in the DDFilteredView, extract the global translation and rotation. Further apply ORCA semantics for the local reference frame in which each solid of a detector is defined, in order to get the 'correct' GlobalToLocal transforms. Further determine the boundaries of the current detector.

TODO: . The function currently only knows how to handle BarrelPixel detectors - should also know about other det-types. Maybe several classes, one per detector element?

Definition at line 156 of file DTGeometryBuilderFromCondDB.cc.

Referenced by TrackerGeomBuilderFromGeometricDet::buildPlaneWithMaterial().

                                                          {
  // extract the position
  const Surface::PositionType posResult(*(tranStart), *(tranStart+1), *(tranStart+2));
  // now the rotation
  Surface::RotationType rotResult( *(rotStart+0), *(rotStart+1), *(rotStart+2), 
                                   *(rotStart+3), *(rotStart+4), *(rotStart+5),
                                   *(rotStart+6), *(rotStart+7), *(rotStart+8) );

  return RCPPlane( new Plane( posResult, rotResult, bounds));
}