#include <DataFormats/TrackingRecHit/interface/RecHit1D.h>
Public Member Functions | |
virtual int | dimension () const |
Return the RecHit dimension. | |
virtual LocalPoint | localPosition () const =0 |
Local position. | |
virtual LocalError | localPositionError () const =0 |
Error on the local position. | |
virtual AlgebraicVector | parameters () const |
Return just the x. | |
virtual AlgebraicSymMatrix | parametersError () const |
Return just "(sigma_x)^2". | |
virtual AlgebraicMatrix | projectionMatrix () const |
Return the projection matrix. | |
RecHit1D (TrackingRecHit::id_type id=0) | |
RecHit1D (DetId id) | |
virtual | ~RecHit1D () |
Destructor. | |
Private Member Functions | |
void | initialize () const |
Static Private Attributes | |
static bool | isInitialized |
static AlgebraicMatrix | theProjectionMatrix |
To be used as base class for all 1D positional TrackingRecHits. The coordinate measured is assumend to be the local "x"
Definition at line 22 of file RecHit1D.h.
RecHit1D::RecHit1D | ( | DetId | id | ) | [inline] |
RecHit1D::RecHit1D | ( | TrackingRecHit::id_type | id = 0 |
) | [inline] |
virtual RecHit1D::~RecHit1D | ( | ) | [inline, virtual] |
virtual int RecHit1D::dimension | ( | ) | const [inline, virtual] |
void RecHit1D::initialize | ( | ) | const [private] |
Definition at line 44 of file RecHit1D.cc.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
00044 { 00045 theProjectionMatrix = AlgebraicMatrix( 1, 5, 0); 00046 theProjectionMatrix[0][3] = 1; 00047 00048 isInitialized = true; 00049 }
virtual LocalPoint RecHit1D::localPosition | ( | ) | const [pure virtual] |
Local position.
Implements TrackingRecHit.
Implemented in DTRecHit1D, and DTRecHit1DPair.
Referenced by parameters().
virtual LocalError RecHit1D::localPositionError | ( | ) | const [pure virtual] |
Error on the local position.
Implements TrackingRecHit.
Implemented in DTRecHit1D, and DTRecHit1DPair.
Referenced by parametersError().
AlgebraicVector RecHit1D::parameters | ( | void | ) | const [virtual] |
Return just the x.
Implements TrackingRecHit.
Definition at line 17 of file RecHit1D.cc.
References localPosition(), HLT_VtxMuL3::result, and PV3DBase< T, PVType, FrameType >::x().
00017 { 00018 AlgebraicVector result(1); 00019 result[0] = localPosition().x(); 00020 return result; 00021 }
AlgebraicSymMatrix RecHit1D::parametersError | ( | ) | const [virtual] |
Return just "(sigma_x)^2".
Implements TrackingRecHit.
Definition at line 26 of file RecHit1D.cc.
References asciidump::le, localPositionError(), m, and LocalError::xx().
00026 { 00027 LocalError le = localPositionError(); 00028 AlgebraicSymMatrix m(1); 00029 // FIXME: Remove this dependence from Geometry 00030 // if ( det().alignmentPositionError()) { 00031 // LocalError lape = 00032 // ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(), 00033 // det().surface()); 00034 // m[0][0] = le.xx()+lape.xx(); 00035 // } else { 00036 m[0][0] = le.xx(); 00037 // } 00038 return m; 00039 }
virtual AlgebraicMatrix RecHit1D::projectionMatrix | ( | ) | const [inline, virtual] |
Return the projection matrix.
Implements TrackingRecHit.
Definition at line 41 of file RecHit1D.h.
References initialize(), isInitialized, and theProjectionMatrix.
00041 { 00042 if ( !isInitialized) initialize(); 00043 return theProjectionMatrix; 00044 }
bool RecHit1D::isInitialized [static, private] |
AlgebraicMatrix RecHit1D::theProjectionMatrix [static, private] |