CMS 3D CMS Logo

Phase2StripCPEGeometric.cc
Go to the documentation of this file.
1 
5 
6 
7 // currently (?) use Pixel classes for GeomDetUnit and Topology
10 
11 
13 {
14 }
15 
16 
18  const Phase2TrackerCluster1D & cluster,
19  const GeomDetUnit & detunit) const
20 {
21  const Phase2TrackerGeomDetUnit & det = (const Phase2TrackerGeomDetUnit &) detunit;
22  const Phase2TrackerTopology * topo = &det.specificTopology();
23 
24  float pitch_x = topo->pitch().first;
25  float pitch_y = topo->pitch().second;
26  float ix = cluster.center();
27  float iy = cluster.column()+0.5; // halfway the column
28 
29  LocalPoint lp( topo->localX(ix), topo->localY(iy), 0 ); // x, y, z
30  LocalError le( pow(pitch_x, 2) / 12, 0, pow(pitch_y, 2) / 12); // e2_xx, e2_xy, e2_yy
31  return std::make_pair( lp, le );
32 }
virtual std::pair< float, float > pitch() const =0
unsigned int column() const
virtual float localX(float mpX) const =0
LocalValues localParameters(const Phase2TrackerCluster1D &cluster, const GeomDetUnit &det) const override
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual float localY(float mpY) const =0
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40