Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:07

0001 
0002 #include "Geometry/TrackerGeometryBuilder/interface/PlaneBuilderFromGeometricDet.h"
0003 #include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
0004 
0005 #include <algorithm>
0006 
0007 //#define DEBUG
0008 
0009 /**
0010    given a current detector node in the DDFilteredView,
0011    extract the global translation and rotation.
0012    Further apply ORCA semantics for the local reference frame in which each
0013    solid of a detector is defined, in order to get the 'correct' GlobalToLocal
0014    transforms.
0015    Further determine the boundaries of the current detector.
0016   
0017    TODO:
0018    . The function currently only knows how to handle BarrelPixel detectors - 
0019    should also know about other det-types. Maybe several classes, one per
0020    detector element?  
0021 */
0022 
0023 PlaneBuilderFromGeometricDet::ResultType PlaneBuilderFromGeometricDet::plane(const GeometricDet* gd) const {
0024   // gd->bounds() returns a pointer owned by the caller!
0025   return ResultType(new Plane(gd->positionBounds(), gd->rotationBounds(), gd->bounds().release()));
0026 }