#include <GSSiTrackerRecHit2DLocalPos.h>
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_ |
Definition at line 8 of file GSSiTrackerRecHit2DLocalPos.h.
GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos | ( | ) | [inline] |
Definition at line 11 of file GSSiTrackerRecHit2DLocalPos.h.
: RecHit2DLocalPos(0) {}
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){}
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] |
Implements RecHit2DLocalPos.
Definition at line 20 of file GSSiTrackerRecHit2DLocalPos.h.
References pos_.
Referenced by TrackerRecHit::localPosition(), GSRecHitMatcher::match(), TrackerRecHit::operator!=(), and GSRecHitMatcher::projectOnly().
{return pos_;}
virtual LocalError GSSiTrackerRecHit2DLocalPos::localPositionError | ( | ) | const [inline, virtual] |
Implements RecHit2DLocalPos.
Definition at line 22 of file GSSiTrackerRecHit2DLocalPos.h.
References err_.
Referenced by TrackerRecHit::largerError(), TrackerRecHit::localError(), GSRecHitMatcher::match(), and GSRecHitMatcher::projectOnly().
{ return err_;}
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;}
LocalError GSSiTrackerRecHit2DLocalPos::err_ [private] |
Definition at line 30 of file GSSiTrackerRecHit2DLocalPos.h.
Referenced by getKfComponents(), and localPositionError().
LocalPoint GSSiTrackerRecHit2DLocalPos::pos_ [private] |
Definition at line 29 of file GSSiTrackerRecHit2DLocalPos.h.
Referenced by getKfComponents(), and localPosition().