CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public 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 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
LocalVector driftDirection (const StripGeomDetUnit *det) 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
 
float templateProbability () const
 
void templateProbability (float stp)
 
int templateQbin () const
 
void templateQbin (int stqb)
 
- 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 TrajectoryStateOnSurface &tsos) const
 
virtual ~ClusterParameterEstimator ()
 

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
 
- Public Attributes inherited from StripClusterParameterEstimator
float stripCPEtemplateProbability_
 
int stripCPEtemplateQbin_
 
- Protected Member Functions inherited from StripCPE
Param const & param (const GeomDetUnit &det) 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 13 of file StripCPEfromTrackAngle.h.

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

Member Function Documentation

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

Reimplemented from ClusterParameterEstimator< SiStripCluster >.

Definition at line 21 of file StripCPEfromTrackAngle.cc.

References abs, SiStripCluster::amplitudes(), SiStripCluster::barycenter(), StripCPE::Param::coveredStrips(), StripCPE::Param::drift, f, StripTopology::localError(), StripTopology::localPosition(), PV3DBase< T, PVType, FrameType >::mag(), StripCPE::Param::maxLength, StripCPE::Param::moduleGeom, LocalTrajectoryParameters::momentum(), AlCaHLTBitMon_ParallelJobs::p, StripCPE::param(), LocalTrajectoryParameters::position(), StripCPE::shift, strip(), StripCPE::Param::thickness, StripCPE::Param::topology, LocalTrajectoryParameters::vector(), and PV3DBase< T, PVType, FrameType >::z().

21  {
22 
23  StripCPE::Param const & p = param(det);
24 
25  LocalVector track = ltp.momentum();
26  track *=
27  (track.z()<0) ? std::abs(p.thickness/track.z()) :
28  (track.z()>0) ? -std::abs(p.thickness/track.z()) :
29  p.maxLength/track.mag() ;
30 
31  const unsigned N = cluster.amplitudes().size();
32  const float fullProjection = p.coveredStrips( track+p.drift, ltp.position());
33  const float uerr2 = stripErrorSquared( N, std::abs(fullProjection) );
34  const float strip = cluster.barycenter() - 0.5f*(1.f-shift[p.moduleGeom]) * fullProjection
35  + 0.5f*p.coveredStrips(track, ltp.position());
36 
37  return std::make_pair( p.topology->localPosition(strip, ltp.vector()),
38  p.topology->localError(strip, uerr2, ltp.vector()) );
39 }
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:43
StripTopology const * topology
Definition: StripCPE.h:41
#define abs(x)
Definition: mlp_lapack.h:159
AlgebraicVector5 vector() const
T mag() const
Definition: PV3DBase.h:66
SiStripDetId::ModuleGeometry moduleGeom
Definition: StripCPE.h:45
T z() const
Definition: PV3DBase.h:63
double f[11][100]
float barycenter() const
std::vector< double > shift
Definition: StripCPE.h:35
LocalVector momentum() const
Momentum vector in the local frame.
float coveredStrips(const LocalVector &, const LocalPoint &) const
Definition: StripCPE.cc:78
#define N
Definition: blowfish.cc:9
virtual LocalError localError(float strip, float stripErr2) const =0
float maxLength
Definition: StripCPE.h:43
Param const & param(const GeomDetUnit &det) const
Definition: StripCPE.h:48
LocalVector drift
Definition: StripCPE.h:42
virtual LocalPoint localPosition(float strip) const =0
const std::vector< uint8_t > & amplitudes() const