CMS 3D CMS Logo

List of all members | Public Member Functions
Phase2StripCPEGeometric Class Reference

#include <Phase2StripCPEGeometric.h>

Inheritance diagram for Phase2StripCPEGeometric:
ClusterParameterEstimator< Phase2TrackerCluster1D >

Public Member Functions

LocalValues localParameters (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &det) const override
 
 Phase2StripCPEGeometric ()
 
 Phase2StripCPEGeometric (edm::ParameterSet &conf)
 
- Public Member Functions inherited from ClusterParameterEstimator< Phase2TrackerCluster1D >
virtual void clearParameters () const
 
virtual void enterLocalParameters (unsigned int id, std::pair< int, int > &row_col, LocalValues pos_err_info) const
 
virtual void enterLocalParameters (uint32_t id, uint16_t firstStrip, LocalValues pos_err_info) const
 
virtual LocalValues localParameters (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &) const
 
virtual LocalValues localParameters (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual VLocalValues localParametersV (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &gd) const
 
virtual VLocalValues localParametersV (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual ~ClusterParameterEstimator ()
 

Additional Inherited Members

- Public Types inherited from ClusterParameterEstimator< Phase2TrackerCluster1D >
typedef std::pair< LocalPoint, LocalErrorLocalValues
 
typedef std::vector< LocalValuesVLocalValues
 

Detailed Description

Definition at line 10 of file Phase2StripCPEGeometric.h.

Constructor & Destructor Documentation

◆ Phase2StripCPEGeometric() [1/2]

Phase2StripCPEGeometric::Phase2StripCPEGeometric ( )
inline

Definition at line 12 of file Phase2StripCPEGeometric.h.

12 {};

◆ Phase2StripCPEGeometric() [2/2]

Phase2StripCPEGeometric::Phase2StripCPEGeometric ( edm::ParameterSet conf)

Definition at line 10 of file Phase2StripCPEGeometric.cc.

10 {}

Member Function Documentation

◆ localParameters()

Phase2StripCPEGeometric::LocalValues Phase2StripCPEGeometric::localParameters ( const Phase2TrackerCluster1D cluster,
const GeomDetUnit det 
) const
overridevirtual

Implements ClusterParameterEstimator< Phase2TrackerCluster1D >.

Definition at line 12 of file Phase2StripCPEGeometric.cc.

References Phase2TrackerCluster1D::center(), Phase2TrackerCluster1D::column(), PixelTopology::localX(), PixelTopology::localY(), PixelTopology::pitch(), funct::pow(), and PixelGeomDetUnit::specificTopology().

13  {
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 }
virtual float localX(float mpX) const =0
unsigned int column() const
virtual float localY(float mpY) const =0
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual std::pair< float, float > pitch() const =0
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29