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
 
 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 11 of file Phase2StripCPEGeometric.h.

Constructor & Destructor Documentation

Phase2StripCPEGeometric::Phase2StripCPEGeometric ( )
inline

Definition at line 15 of file Phase2StripCPEGeometric.h.

References localParameters().

15 {};
Phase2StripCPEGeometric::Phase2StripCPEGeometric ( edm::ParameterSet conf)

Definition at line 12 of file Phase2StripCPEGeometric.cc.

13 {
14 }

Member Function Documentation

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

Implements ClusterParameterEstimator< Phase2TrackerCluster1D >.

Definition at line 17 of file Phase2StripCPEGeometric.cc.

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

Referenced by Phase2StripCPEGeometric().

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
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