#include <DataFormats/TrackingRecHit/interface/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 |
local Error + AlignmentPositionError if this is set for the DetUnit | |
virtual AlgebraicMatrix | projectionMatrix () const |
RecHit2DLocalPos (TrackingRecHit::id_type id=0) | |
RecHit2DLocalPos (DetId id) | |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any). | |
virtual std::vector< const TrackingRecHit * > | recHits () 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] |
RecHit2DLocalPos::RecHit2DLocalPos | ( | TrackingRecHit::id_type | id = 0 |
) | [inline] |
virtual RecHit2DLocalPos::~RecHit2DLocalPos | ( | ) | [inline, virtual] |
virtual RecHit2DLocalPos* RecHit2DLocalPos::clone | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in CSCRecHit2D, RPCRecHit, ProjectedSiStripRecHit2D, SiPixelRecHit, SiStripMatchedRecHit2D, SiStripRecHit2D, SiTrackerGSMatchedRecHit2D, SiTrackerGSRecHit2D, and SiTrackerMultiRecHit.
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().
void RecHit2DLocalPos::initialize | ( | ) | const [private] |
Definition at line 3 of file RecHit2DLocalPos.cc.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
00004 { 00005 theProjectionMatrix = AlgebraicMatrix( 2, 5, 0); 00006 theProjectionMatrix[0][3] = 1; 00007 theProjectionMatrix[1][4] = 1; 00008 00009 isInitialized = true; 00010 }
virtual LocalPoint RecHit2DLocalPos::localPosition | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in CSCRecHit2D, RPCRecHit, BaseSiTrackerRecHit2DLocalPos, and GSSiTrackerRecHit2DLocalPos.
Referenced by parameters().
virtual LocalError RecHit2DLocalPos::localPositionError | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in 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(), lp, HLT_VtxMuL3::result, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by SiStripRecHitsValid::analyze(), TSiTrackerMultiRecHit::parameters(), TSiPixelRecHit::parameters(), and TSiStripRecHit2DLocalPos::parameters().
00013 { 00014 AlgebraicVector result(2); 00015 LocalPoint lp = localPosition(); 00016 result[0] = lp.x(); 00017 result[1] = lp.y(); 00018 return result; 00019 }
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().
00023 { 00024 AlgebraicSymMatrix m(2); 00025 LocalError le( localPositionError()); 00026 m[0][0] = le.xx(); 00027 m[0][1] = le.xy(); 00028 m[1][1] = le.yy(); 00029 return m; 00030 }
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().
00023 { 00024 if ( !isInitialized) initialize(); 00025 return theProjectionMatrix; 00026 }
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< 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().
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().