#include <RecHit2DLocalPos.h>
Public Types | |
typedef Surface::LocalPoint | LocalPoint |
Public Member Functions | |
virtual RecHit2DLocalPos * | clone () const =0 |
virtual int | dimension () const |
virtual LocalPoint | localPosition () const =0 |
virtual LocalError | localPositionError () const =0 |
virtual AlgebraicVector | parameters () const |
virtual AlgebraicSymMatrix | parametersError () const |
virtual AlgebraicMatrix | projectionMatrix () const |
RecHit2DLocalPos (TrackingRecHit::id_type id=0) | |
RecHit2DLocalPos (DetId id) | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
Access to component RecHits (if any) | |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) | |
virtual | ~RecHit2DLocalPos () |
Private Member Functions | |
void | initialize () const |
Static Private Attributes | |
static bool | isInitialized |
static AlgebraicMatrix | theProjectionMatrix |
Definition at line 8 of file RecHit2DLocalPos.h.
Definition at line 11 of file RecHit2DLocalPos.h.
RecHit2DLocalPos::RecHit2DLocalPos | ( | DetId | id | ) | [inline] |
Definition at line 13 of file RecHit2DLocalPos.h.
: TrackingRecHit(id) {}
RecHit2DLocalPos::RecHit2DLocalPos | ( | TrackingRecHit::id_type | id = 0 | ) | [inline] |
Definition at line 14 of file RecHit2DLocalPos.h.
: TrackingRecHit(id) {}
virtual RecHit2DLocalPos::~RecHit2DLocalPos | ( | ) | [inline, virtual] |
Definition at line 15 of file RecHit2DLocalPos.h.
{}
virtual RecHit2DLocalPos* RecHit2DLocalPos::clone | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in SiStripLaserRecHit2D, CSCRecHit2D, RPCRecHit, ProjectedSiStripRecHit2D, SiPixelRecHit, SiStripMatchedRecHit2D, SiStripRecHit2D, SiTrackerGSMatchedRecHit2D, SiTrackerGSRecHit2D, and SiTrackerMultiRecHit.
Referenced by FastTSGFromPropagation::trackerSeeds().
virtual int RecHit2DLocalPos::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 28 of file RecHit2DLocalPos.h.
Referenced by TSiTrackerMultiRecHit::dimension(), TSiStripRecHit2DLocalPos::dimension(), and TSiPixelRecHit::dimension().
{ return 2;}
void RecHit2DLocalPos::initialize | ( | ) | const [private] |
Definition at line 3 of file RecHit2DLocalPos.cc.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
{ theProjectionMatrix = AlgebraicMatrix( 2, 5, 0); theProjectionMatrix[0][3] = 1; theProjectionMatrix[1][4] = 1; isInitialized = true; }
virtual LocalPoint RecHit2DLocalPos::localPosition | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in SiStripLaserRecHit2D, CSCRecHit2D, RPCRecHit, BaseSiTrackerRecHit2DLocalPos, and GSSiTrackerRecHit2DLocalPos.
Referenced by parameters().
virtual LocalError RecHit2DLocalPos::localPositionError | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in SiStripLaserRecHit2D, CSCRecHit2D, RPCRecHit, BaseSiTrackerRecHit2DLocalPos, and GSSiTrackerRecHit2DLocalPos.
Referenced by parametersError().
AlgebraicVector RecHit2DLocalPos::parameters | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 12 of file RecHit2DLocalPos.cc.
References localPosition(), query::result, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by SiStripRecHitsValid::analyze(), TSiTrackerMultiRecHit::parameters(), TSiPixelRecHit::parameters(), and TSiStripRecHit2DLocalPos::parameters().
{ AlgebraicVector result(2); LocalPoint lp = localPosition(); result[0] = lp.x(); result[1] = lp.y(); return result; }
AlgebraicSymMatrix RecHit2DLocalPos::parametersError | ( | ) | const [virtual] |
local Error + AlignmentPositionError if this is set for the DetUnit
Implements TrackingRecHit.
Definition at line 23 of file RecHit2DLocalPos.cc.
References asciidump::le, localPositionError(), m, LocalError::xx(), LocalError::xy(), and LocalError::yy().
Referenced by SiStripRecHitsValid::analyze().
{ AlgebraicSymMatrix m(2); LocalError le( localPositionError()); m[0][0] = le.xx(); m[0][1] = le.xy(); m[1][1] = le.yy(); return m; }
virtual AlgebraicMatrix RecHit2DLocalPos::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 23 of file RecHit2DLocalPos.h.
References initialize(), isInitialized, and theProjectionMatrix.
Referenced by TSiTrackerMultiRecHit::projectionMatrix(), TSiPixelRecHit::projectionMatrix(), and TSiStripRecHit2DLocalPos::projectionMatrix().
{ if ( !isInitialized) initialize(); return theProjectionMatrix; }
std::vector< TrackingRecHit * > RecHit2DLocalPos::recHits | ( | ) | [virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Reimplemented in RPCRecHit, ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, and SiTrackerMultiRecHit.
Definition at line 36 of file RecHit2DLocalPos.cc.
{
std::vector<TrackingRecHit*> nullvector;
return nullvector;
}
std::vector< const TrackingRecHit * > RecHit2DLocalPos::recHits | ( | ) | const [virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Reimplemented in RPCRecHit, ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, and SiTrackerMultiRecHit.
Definition at line 32 of file RecHit2DLocalPos.cc.
Referenced by TSiStripRecHit2DLocalPos::recHits(), and TSiPixelRecHit::recHits().
{
std::vector<const TrackingRecHit*> nullvector;
return nullvector;
}
bool RecHit2DLocalPos::isInitialized [static, private] |
Definition at line 40 of file RecHit2DLocalPos.h.
Referenced by initialize(), and projectionMatrix().
AlgebraicMatrix RecHit2DLocalPos::theProjectionMatrix [static, private] |
Definition at line 42 of file RecHit2DLocalPos.h.
Referenced by initialize(), and projectionMatrix().