RecoLocalTracker
Phase2TrackerRecHits
src
Phase2StripCPEGeometric.cc
Go to the documentation of this file.
1
2
#include "
RecoLocalTracker/Phase2TrackerRecHits/interface/Phase2StripCPEGeometric.h
"
3
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h
"
4
#include "
Geometry/CommonTopologies/interface/PixelTopology.h
"
5
6
// currently (?) use Pixel classes for GeomDetUnit and Topology
7
using
Phase2TrackerGeomDetUnit
=
PixelGeomDetUnit
;
8
using
Phase2TrackerTopology
=
PixelTopology
;
9
10
Phase2StripCPEGeometric::Phase2StripCPEGeometric
(
edm::ParameterSet
&conf) {}
11
12
Phase2StripCPEGeometric::LocalValues
Phase2StripCPEGeometric::localParameters
(
const
Phase2TrackerCluster1D
&cluster,
13
const
GeomDetUnit
&detunit)
const
{
14
const
Phase2TrackerGeomDetUnit
&det = (
const
Phase2TrackerGeomDetUnit
&)detunit;
15
const
Phase2TrackerTopology
*topo = &det.
specificTopology
();
16
17
float
pitch_x = topo->
pitch
().first;
18
float
pitch_y = topo->
pitch
().second;
19
float
ix = cluster.
center
();
20
float
iy = cluster.
column
() + 0.5;
// halfway the column
21
22
LocalPoint
lp(topo->
localX
(ix), topo->
localY
(iy), 0);
// x, y, z
23
LocalError
le(
pow
(pitch_x, 2) / 12, 0,
pow
(pitch_y, 2) / 12);
// e2_xx, e2_xy, e2_yy
24
return
std::make_pair(lp, le);
25
}
Phase2StripCPEGeometric::localParameters
LocalValues localParameters(const Phase2TrackerCluster1D &cluster, const GeomDetUnit &det) const override
Definition:
Phase2StripCPEGeometric.cc:12
GeomDet
Definition:
GeomDet.h:27
PixelTopology.h
Phase2TrackerCluster1D
Definition:
Phase2TrackerCluster1D.h:10
Phase2TrackerCluster1D::column
unsigned int column() const
Definition:
Phase2TrackerCluster1D.h:26
ClusterParameterEstimator< Phase2TrackerCluster1D >::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition:
ClusterParameterEstimator.h:14
PixelTopology::pitch
virtual std::pair< float, float > pitch() const =0
Phase2TrackerCluster1D::center
float center() const
Definition:
Phase2TrackerCluster1D.h:29
PixelGeomDetUnit
Definition:
PixelGeomDetUnit.h:15
Phase2StripCPEGeometric.h
Point3DBase< float, LocalTag >
PixelTopology
Definition:
PixelTopology.h:10
edm::ParameterSet
Definition:
ParameterSet.h:36
LocalError
Definition:
LocalError.h:12
PixelGeomDetUnit::specificTopology
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
Definition:
PixelGeomDetUnit.cc:17
PixelTopology::localY
virtual float localY(float mpY) const =0
PixelGeomDetUnit.h
PixelTopology::localX
virtual float localX(float mpX) const =0
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition:
Power.h:30
Phase2StripCPEGeometric::Phase2StripCPEGeometric
Phase2StripCPEGeometric()
Definition:
Phase2StripCPEGeometric.h:12
Generated for CMSSW Reference Manual by
1.8.16