#include <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 |
Base class for 1-dimensional recHits
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] |
Definition at line 25 of file RecHit1D.h.
: TrackingRecHit(id) {}
RecHit1D::RecHit1D | ( | TrackingRecHit::id_type | id = 0 | ) | [inline] |
Definition at line 26 of file RecHit1D.h.
: TrackingRecHit(id) {}
virtual RecHit1D::~RecHit1D | ( | ) | [inline, virtual] |
virtual int RecHit1D::dimension | ( | ) | const [inline, virtual] |
Return the RecHit dimension.
Implements TrackingRecHit.
Reimplemented in DTSLRecCluster.
Definition at line 48 of file RecHit1D.h.
{
return 1;
}
void RecHit1D::initialize | ( | ) | const [private] |
Reimplemented in DTSLRecCluster.
Definition at line 44 of file RecHit1D.cc.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
{ theProjectionMatrix = AlgebraicMatrix( 1, 5, 0); theProjectionMatrix[0][3] = 1; isInitialized = true; }
virtual LocalPoint RecHit1D::localPosition | ( | ) | const [pure virtual] |
Local position.
Implements TrackingRecHit.
Implemented in DTRecHit1D, DTRecHit1DPair, and DTSLRecCluster.
Referenced by parameters().
virtual LocalError RecHit1D::localPositionError | ( | ) | const [pure virtual] |
Error on the local position.
Implements TrackingRecHit.
Implemented in DTRecHit1D, DTRecHit1DPair, and DTSLRecCluster.
Referenced by parametersError().
AlgebraicVector RecHit1D::parameters | ( | void | ) | const [virtual] |
Return just the x.
Implements TrackingRecHit.
Reimplemented in DTSLRecCluster.
Definition at line 17 of file RecHit1D.cc.
References localPosition(), query::result, and PV3DBase< T, PVType, FrameType >::x().
{ AlgebraicVector result(1); result[0] = localPosition().x(); return result; }
AlgebraicSymMatrix RecHit1D::parametersError | ( | ) | const [virtual] |
Return just "(sigma_x)^2".
Implements TrackingRecHit.
Reimplemented in DTSLRecCluster.
Definition at line 26 of file RecHit1D.cc.
References asciidump::le, localPositionError(), m, and LocalError::xx().
{ LocalError le = localPositionError(); AlgebraicSymMatrix m(1); // FIXME: Remove this dependence from Geometry // if ( det().alignmentPositionError()) { // LocalError lape = // ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(), // det().surface()); // m[0][0] = le.xx()+lape.xx(); // } else { m[0][0] = le.xx(); // } return m; }
virtual AlgebraicMatrix RecHit1D::projectionMatrix | ( | ) | const [inline, virtual] |
Return the projection matrix.
Implements TrackingRecHit.
Reimplemented in DTSLRecCluster.
Definition at line 41 of file RecHit1D.h.
References initialize(), isInitialized, and theProjectionMatrix.
{ if ( !isInitialized) initialize(); return theProjectionMatrix; }
bool RecHit1D::isInitialized [static, private] |
Reimplemented in DTSLRecCluster.
Definition at line 63 of file RecHit1D.h.
Referenced by initialize(), and projectionMatrix().
AlgebraicMatrix RecHit1D::theProjectionMatrix [static, private] |
Reimplemented in DTSLRecCluster.
Definition at line 65 of file RecHit1D.h.
Referenced by initialize(), and projectionMatrix().