CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
PlaneBuilderFromGeometricTimingDet Class Reference

#include <PlaneBuilderFromGeometricTimingDet.h>

Public Types

using ResultType = ReferenceCountingPointer< BoundPlane >
 

Public Member Functions

ResultType plane (const GeometricTimingDet *gd) const
 

Detailed Description

Converts DDFilteredView volumes to Bounds

Definition at line 11 of file PlaneBuilderFromGeometricTimingDet.h.

Member Typedef Documentation

◆ ResultType

Definition at line 13 of file PlaneBuilderFromGeometricTimingDet.h.

Member Function Documentation

◆ plane()

PlaneBuilderFromGeometricTimingDet::ResultType PlaneBuilderFromGeometricTimingDet::plane ( const GeometricTimingDet 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 23 of file PlaneBuilderFromGeometricTimingDet.cc.

24  {
25  // gd->bounds() returns a pointer owned by the caller!
26  return ResultType(new Plane(gd->positionBounds(), gd->rotationBounds(), gd->bounds().release()));
27 }

References GeometricTimingDet::bounds(), GeometricTimingDet::positionBounds(), and GeometricTimingDet::rotationBounds().

Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPlaneWithMaterial().

GeometricTimingDet::bounds
std::unique_ptr< Bounds > bounds() const
Definition: GeometricTimingDet.cc:253
GeometricTimingDet::positionBounds
Position positionBounds() const
Definition: GeometricTimingDet.cc:231
PlaneBuilderFromGeometricTimingDet::ResultType
ReferenceCountingPointer< BoundPlane > ResultType
Definition: PlaneBuilderFromGeometricTimingDet.h:13
Plane
Definition: Plane.h:16
GeometricTimingDet::rotationBounds
Rotation rotationBounds() const
Definition: GeometricTimingDet.cc:238