CMS 3D CMS Logo

Public Member Functions | Private Attributes

GSSiTrackerRecHit2DLocalPos Class Reference

#include <GSSiTrackerRecHit2DLocalPos.h>

Inheritance diagram for GSSiTrackerRecHit2DLocalPos:
RecHit2DLocalPos TrackingRecHit SiTrackerGSMatchedRecHit2D SiTrackerGSRecHit2D

List of all members.

Public Member Functions

virtual void getKfComponents (KfComponentsHolder &holder) const
 GSSiTrackerRecHit2DLocalPos ()
 GSSiTrackerRecHit2DLocalPos (const LocalPoint &p, const LocalError &e, DetId id)
virtual LocalPoint localPosition () const
virtual LocalError localPositionError () const
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 ~GSSiTrackerRecHit2DLocalPos ()

Private Attributes

LocalError err_
LocalPoint pos_

Detailed Description

Definition at line 8 of file GSSiTrackerRecHit2DLocalPos.h.


Constructor & Destructor Documentation

GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos ( ) [inline]

Definition at line 11 of file GSSiTrackerRecHit2DLocalPos.h.

GSSiTrackerRecHit2DLocalPos::~GSSiTrackerRecHit2DLocalPos ( ) [inline]

Definition at line 13 of file GSSiTrackerRecHit2DLocalPos.h.

{}
GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos ( const LocalPoint p,
const LocalError e,
DetId  id 
) [inline]

Definition at line 15 of file GSSiTrackerRecHit2DLocalPos.h.

                                           :  RecHit2DLocalPos(id), pos_(p), err_(e){}

Member Function Documentation

void GSSiTrackerRecHit2DLocalPos::getKfComponents ( KfComponentsHolder holder) const [virtual]

Reimplemented from TrackingRecHit.

Definition at line 4 of file GSSiTrackerRecHit2DLocalPos.cc.

References err_, KfComponentsHolder::errors(), KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, KfComponentsHolder::projection(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().

{
   //std::cout << "Call to KfComponentsHolder::genericFill should be optimized here " << std::endl;
   AlgebraicVector2 & pars = holder.params<2>();
   pars[0] = pos_.x(); 
   pars[1] = pos_.y();

   AlgebraicSymMatrix22 & errs = holder.errors<2>();
   errs(0,0) = err_.xx();
   errs(0,1) = err_.xy();
   errs(1,1) = err_.yy();

   
   AlgebraicMatrix25 & proj = holder.projection<2>();
   proj(0,3) = 1;
   proj(1,4) = 1;

   holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 );
   holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 );

   //std::cout << "======== MYSELF ==========" << std::endl;
   //holder.dump<2>();
   //std::cout << "======== GENERIC ==========" << std::endl;
   //holder.genericFill(*this);
   //holder.dump<2>();
}
virtual LocalPoint GSSiTrackerRecHit2DLocalPos::localPosition ( ) const [inline, virtual]
virtual LocalError GSSiTrackerRecHit2DLocalPos::localPositionError ( ) const [inline, virtual]
virtual bool GSSiTrackerRecHit2DLocalPos::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const [inline, virtual]

Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.

Reimplemented from TrackingRecHit.

Reimplemented in SiTrackerGSMatchedRecHit2D, and SiTrackerGSRecHit2D.

Definition at line 26 of file GSSiTrackerRecHit2DLocalPos.h.

{return false;}

Member Data Documentation

Definition at line 30 of file GSSiTrackerRecHit2DLocalPos.h.

Referenced by getKfComponents(), and localPositionError().

Definition at line 29 of file GSSiTrackerRecHit2DLocalPos.h.

Referenced by getKfComponents(), and localPosition().