CMS 3D CMS Logo

RecHit1D Class Reference

Base class for 1-dimensional recHits. More...

#include <DataFormats/TrackingRecHit/interface/RecHit1D.h>

Inheritance diagram for RecHit1D:

TrackingRecHit DTRecHit1D DTRecHit1DPair

List of all members.

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


Detailed Description

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"

Date
2007/07/25 10:35:48
Revision
1.5
Author:
S. Lacaprara, G. Cerminara

Definition at line 22 of file RecHit1D.h.


Constructor & Destructor Documentation

RecHit1D::RecHit1D ( DetId  id  )  [inline]

Definition at line 25 of file RecHit1D.h.

00025 : TrackingRecHit(id) {}

RecHit1D::RecHit1D ( TrackingRecHit::id_type  id = 0  )  [inline]

Definition at line 26 of file RecHit1D.h.

00026 : TrackingRecHit(id) {}

virtual RecHit1D::~RecHit1D (  )  [inline, virtual]

Destructor.

Definition at line 29 of file RecHit1D.h.

00029 {}


Member Function Documentation

virtual int RecHit1D::dimension (  )  const [inline, virtual]

Return the RecHit dimension.

Implements TrackingRecHit.

Definition at line 48 of file RecHit1D.h.

00048                                 {
00049     return 1;
00050   }

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   }


Member Data Documentation

bool RecHit1D::isInitialized [static, private]

Definition at line 63 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().

AlgebraicMatrix RecHit1D::theProjectionMatrix [static, private]

Definition at line 65 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:40 2009 for CMSSW by  doxygen 1.5.4