1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "Geometry/TrackerGeometryBuilder/interface/PlaneBuilderFromGeometricDet.h"
#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include <algorithm>
//#define DEBUG
/**
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?
*/
PlaneBuilderFromGeometricDet::ResultType PlaneBuilderFromGeometricDet::plane(const GeometricDet* gd) const {
// gd->bounds() returns a pointer owned by the caller!
return ResultType(new Plane(gd->positionBounds(), gd->rotationBounds(), gd->bounds().release()));
}
|