CMS 3D CMS Logo

CSCLayer.cc
Go to the documentation of this file.
1 
3 
5  float stripX = geometry()->xOfStrip(strip);
6  GlobalPoint globalPoint = surface().toGlobal(LocalPoint(stripX, 0., 0.));
7  return globalPoint;
8 }
9 
11  // float y = yOfWireGroup(wireGroup);
12  // GlobalPoint globalPoint = toGlobal(LocalPoint(0., y, 0.));
13  GlobalPoint globalPoint = surface().toGlobal(geometry()->localCenterOfWireGroup(wireGroup));
14  return globalPoint;
15 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:44
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
float xOfStrip(int strip, float y=0.) const
GlobalPoint centerOfStrip(int strip) const
Definition: CSCLayer.cc:4
GlobalPoint centerOfWireGroup(int wireGroup) const
Definition: CSCLayer.cc:10