CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Phase2StripCPETrivial Class Reference

#include <Phase2StripCPETrivial.h>

Inheritance diagram for Phase2StripCPETrivial:
ClusterParameterEstimator< Phase2TrackerCluster1D >

Public Member Functions

LocalValues localParameters (const Phase2TrackerCluster1D &cluster, const GeomDetUnit &det) const
 
- 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,
LocalError
LocalValues
 
typedef std::vector< LocalValuesVLocalValues
 

Detailed Description

Definition at line 11 of file Phase2StripCPETrivial.h.

Member Function Documentation

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

Implements ClusterParameterEstimator< Phase2TrackerCluster1D >.

Definition at line 5 of file Phase2StripCPETrivial.cc.

References Phase2TrackerCluster1D::barycenter().

5  {
6  float strippitch = 0.0090; // hardcoded dummy, a la 2S
7  float striplength = 5.; // hardcoded dummy, a la 2S
8  std::pair<float, float> barycenter = cluster.barycenter();
9  LocalPoint lp( barycenter.second * strippitch, striplength * (barycenter.first + 1/2), 0 );
10  LocalError le( strippitch / 12, 0, striplength / 12 );
11  return std::make_pair( lp, le );
12 }
std::pair< float, float > barycenter() const