CMS 3D CMS Logo

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

#include <StripCPEfromTrackAngle.h>

Inheritance diagram for StripCPEfromTrackAngle:
StripCPE StripClusterParameterEstimator ClusterParameterEstimator< SiStripCluster >

Public Member Functions

StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &, const LocalTrajectoryParameters &) const
 
StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &, const GeomDetUnit &, const LocalTrajectoryParameters &) const
 
 StripCPEfromTrackAngle (edm::ParameterSet &conf, const MagneticField &mag, const TrackerGeometry &geom, const SiStripLorentzAngle &lorentz, const SiStripConfObject &confObj, const SiStripLatency &latency)
 
- Public Member Functions inherited from StripCPE
void clearCache ()
 
LocalVector driftDirection (const StripGeomDetUnit *det) const
 
StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &) const
 
StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &cl, const GeomDetUnit &) const
 
 StripCPE (edm::ParameterSet &conf, const MagneticField &, const TrackerGeometry &, const SiStripLorentzAngle &, const SiStripConfObject &, const SiStripLatency &)
 
- Public Member Functions inherited from StripClusterParameterEstimator
virtual MeasurementValues measurementParameters (const SiStripCluster &, const GeomDetUnit &) const
 
virtual MeasurementValues measurementParameters (const SiStripCluster &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &ltp) const
 
- Public Member Functions inherited from ClusterParameterEstimator< SiStripCluster >
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 SiStripCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual VLocalValues localParametersV (const SiStripCluster &cluster, const GeomDetUnit &gd) const
 
virtual VLocalValues localParametersV (const SiStripCluster &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &ltp) const
 
virtual VLocalValues localParametersV (const SiStripCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual ~ClusterParameterEstimator ()
 

Private Member Functions

float stripErrorSquared (const unsigned, const float) const
 

Additional Inherited Members

- Public Types inherited from StripClusterParameterEstimator
typedef std::pair
< MeasurementPoint,
MeasurementError
MeasurementValues
 
- Public Types inherited from ClusterParameterEstimator< SiStripCluster >
typedef std::pair< LocalPoint,
LocalError
LocalValues
 
typedef std::vector< LocalValuesVLocalValues
 
- Protected Member Functions inherited from StripCPE
Param const & param (const uint32_t detid) const
 
- Protected Attributes inherited from StripCPE
const TrackerGeometrygeom_
 
const SiStripLorentzAngleLorentzAngleMap_
 
const MagneticFieldmagfield_
 
const bool peakMode_
 
std::vector< double > shift
 
std::vector< double > xtalk1
 
std::vector< double > xtalk2
 

Detailed Description

Definition at line 6 of file StripCPEfromTrackAngle.h.

Constructor & Destructor Documentation

StripCPEfromTrackAngle::StripCPEfromTrackAngle ( edm::ParameterSet conf,
const MagneticField mag,
const TrackerGeometry geom,
const SiStripLorentzAngle lorentz,
const SiStripConfObject confObj,
const SiStripLatency latency 
)
inline

Definition at line 17 of file StripCPEfromTrackAngle.h.

23  : StripCPE(conf, mag, geom, lorentz, confObj, latency ) {}
StripCPE(edm::ParameterSet &conf, const MagneticField &, const TrackerGeometry &, const SiStripLorentzAngle &, const SiStripConfObject &, const SiStripLatency &)
Definition: StripCPE.cc:10

Member Function Documentation

StripClusterParameterEstimator::LocalValues StripCPEfromTrackAngle::localParameters ( const SiStripCluster cluster,
const LocalTrajectoryParameters ltp 
) const

Definition at line 11 of file StripCPEfromTrackAngle.cc.

References abs, SiStripCluster::amplitudes(), SiStripCluster::barycenter(), StripCPE::Param::coveredStrips(), StripCPE::Param::drift, f, SiStripCluster::geographicalId(), StripTopology::localError(), StripTopology::localPosition(), StripCPE::Param::maxLength, StripCPE::Param::moduleGeom, LocalTrajectoryParameters::momentum(), MultiGaussianStateTransform::N, L1TEmulatorMonitor_cff::p, StripCPE::param(), LocalTrajectoryParameters::position(), StripCPE::shift, strip(), stripErrorSquared(), StripCPE::Param::thickness, StripCPE::Param::topology, and LocalTrajectoryParameters::vector().

Referenced by localParameters().

11  {
12  StripCPE::Param const & p = param(cluster.geographicalId());
13 
14  LocalVector track = ltp.momentum();
15  track *=
16  (track.z()<0) ? std::abs(p.thickness/track.z()) :
17  (track.z()>0) ? -std::abs(p.thickness/track.z()) :
18  p.maxLength/track.mag() ;
19 
20  const unsigned N = cluster.amplitudes().size();
21  const float fullProjection = p.coveredStrips( track+p.drift, ltp.position());
22  const float uerr2 = stripErrorSquared( N, std::abs(fullProjection) );
23  const float strip = cluster.barycenter() - 0.5f*(1.f-shift[p.moduleGeom]) * fullProjection
24  + 0.5f*p.coveredStrips(track, ltp.position());
25 
26  return std::make_pair( p.topology->localPosition(strip, ltp.vector()),
27  p.topology->localError(strip, uerr2, ltp.vector()) );
28 }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
LocalPoint position() const
Local x and y position coordinates.
float thickness
Definition: StripCPE.h:45
StripTopology const * topology
Definition: StripCPE.h:43
#define abs(x)
Definition: mlp_lapack.h:159
uint32_t geographicalId() const
AlgebraicVector5 vector() const
SiStripDetId::ModuleGeometry moduleGeom
Definition: StripCPE.h:47
float stripErrorSquared(const unsigned, const float) const
double f[11][100]
float barycenter() const
std::vector< double > shift
Definition: StripCPE.h:37
LocalVector momentum() const
Momentum vector in the local frame.
float coveredStrips(const LocalVector &, const LocalPoint &) const
Definition: StripCPE.cc:74
virtual LocalError localError(float strip, float stripErr2) const =0
float maxLength
Definition: StripCPE.h:45
LocalVector drift
Definition: StripCPE.h:44
virtual LocalPoint localPosition(float strip) const =0
Param const & param(const uint32_t detid) const
Definition: StripCPE.cc:94
const std::vector< uint8_t > & amplitudes() const
StripClusterParameterEstimator::LocalValues StripCPEfromTrackAngle::localParameters ( const SiStripCluster cluster,
const GeomDetUnit det,
const LocalTrajectoryParameters ltp 
) const
virtual

Reimplemented from ClusterParameterEstimator< SiStripCluster >.

Definition at line 6 of file StripCPEfromTrackAngle.cc.

References localParameters().

6  {
7  return localParameters(cluster,ltp);
8 }
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &, const LocalTrajectoryParameters &) const
float StripCPEfromTrackAngle::stripErrorSquared ( const unsigned  N,
const float  uProj 
) const
inlineprivate

Definition at line 32 of file StripCPEfromTrackAngle.cc.

References funct::exp(), and f.

Referenced by localParameters().

33 {
34  if( (float(N)-uProj) > 3.5f )
35  return float(N*N)/12.f;
36  else {
37  const float P1=-0.339f;
38  const float P2=0.90f;
39  const float P3=0.279f;
40  const float uerr = P1*uProj*std::exp(-uProj*P2)+P3;
41  return uerr*uerr;
42  }
43 }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
double f[11][100]