#include <DataFormats/TrackerRecHit2D/interface/GSSiTrackerRecHit2DLocalPos.h>
Public Member Functions | |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
GSSiTrackerRecHit2DLocalPos (const LocalPoint &p, const LocalError &e, DetId id) | |
GSSiTrackerRecHit2DLocalPos () | |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. | |
~GSSiTrackerRecHit2DLocalPos () | |
Private Attributes | |
LocalError | err_ |
LocalPoint | pos_ |
Definition at line 8 of file GSSiTrackerRecHit2DLocalPos.h.
GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos | ( | ) | [inline] |
GSSiTrackerRecHit2DLocalPos::~GSSiTrackerRecHit2DLocalPos | ( | ) | [inline] |
GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos | ( | const LocalPoint & | p, | |
const LocalError & | e, | |||
DetId | id | |||
) | [inline] |
Definition at line 15 of file GSSiTrackerRecHit2DLocalPos.h.
00016 : 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(), pars, pos_, KfComponentsHolder::projection(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
00005 { 00006 //std::cout << "Call to KfComponentsHolder::genericFill should be optimized here " << std::endl; 00007 AlgebraicVector2 & pars = holder.params<2>(); 00008 pars[0] = pos_.x(); 00009 pars[1] = pos_.y(); 00010 00011 AlgebraicSymMatrix22 & errs = holder.errors<2>(); 00012 errs(0,0) = err_.xx(); 00013 errs(0,1) = err_.xy(); 00014 errs(1,1) = err_.yy(); 00015 00016 00017 AlgebraicMatrix25 & proj = holder.projection<2>(); 00018 proj(0,3) = 1; 00019 proj(1,4) = 1; 00020 00021 holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 ); 00022 holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 ); 00023 00024 //std::cout << "======== MYSELF ==========" << std::endl; 00025 //holder.dump<2>(); 00026 //std::cout << "======== GENERIC ==========" << std::endl; 00027 //holder.genericFill(*this); 00028 //holder.dump<2>(); 00029 }
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().
00020 {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().
00022 { 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.
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().