File indexing completed on 2024-04-06 12:26:16
0001
0002 #include "RecoLocalTracker/Phase2TrackerRecHits/interface/Phase2StripCPEGeometric.h"
0003 #include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
0004 #include "Geometry/CommonTopologies/interface/PixelTopology.h"
0005
0006
0007 using Phase2TrackerGeomDetUnit = PixelGeomDetUnit;
0008 using Phase2TrackerTopology = PixelTopology;
0009
0010 Phase2StripCPEGeometric::Phase2StripCPEGeometric(edm::ParameterSet &conf) {}
0011
0012 Phase2StripCPEGeometric::LocalValues Phase2StripCPEGeometric::localParameters(const Phase2TrackerCluster1D &cluster,
0013 const GeomDetUnit &detunit) const {
0014 const Phase2TrackerGeomDetUnit &det = (const Phase2TrackerGeomDetUnit &)detunit;
0015 const Phase2TrackerTopology *topo = &det.specificTopology();
0016
0017 float pitch_x = topo->pitch().first;
0018 float pitch_y = topo->pitch().second;
0019 float ix = cluster.center();
0020 float iy = cluster.column() + 0.5;
0021
0022 LocalPoint lp(topo->localX(ix), topo->localY(iy), 0);
0023 LocalError le(pow(pitch_x, 2) / 12, 0, pow(pitch_y, 2) / 12);
0024 return std::make_pair(lp, le);
0025 }