CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Static Private Attributes

RecHit1D Class Reference

#include <RecHit1D.h>

Inheritance diagram for RecHit1D:
TrackingRecHit DTRecHit1D DTRecHit1DPair DTSLRecCluster SiStripRecHit1D

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.

: 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]

Destructor.

Definition at line 29 of file RecHit1D.h.

{}

Member Function Documentation

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

Return the RecHit dimension.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 48 of file RecHit1D.h.

Referenced by TSiStripRecHit1D::dimension().

                                {
    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().

virtual LocalPoint RecHit1D::localPosition ( ) const [pure virtual]

Local position.

Implements TrackingRecHit.

Implemented in DTRecHit1D, DTRecHit1DPair, DTSLRecCluster, and SiStripRecHit1D.

Referenced by parameters().

virtual LocalError RecHit1D::localPositionError ( ) const [pure virtual]

Error on the local position.

Implements TrackingRecHit.

Implemented in DTRecHit1D, DTRecHit1DPair, DTSLRecCluster, and SiStripRecHit1D.

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().

Referenced by TSiStripRecHit1D::parameters().

                                           {
  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.

Referenced by TSiStripRecHit1D::projectionMatrix().


Member Data Documentation

bool RecHit1D::isInitialized [static, private]

Reimplemented in DTSLRecCluster.

Definition at line 63 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().

Reimplemented in DTSLRecCluster.

Definition at line 65 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().