CMS 3D CMS Logo

RecHit2DLocalPos Class Reference

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

Inheritance diagram for RecHit2DLocalPos:

TrackingRecHit BaseSiTrackerRecHit2DLocalPos CSCRecHit2D GSSiTrackerRecHit2DLocalPos RPCRecHit ProjectedSiStripRecHit2D SiPixelRecHit SiStripMatchedRecHit2D SiStripRecHit2D SiTrackerMultiRecHit SiTrackerGSMatchedRecHit2D SiTrackerGSRecHit2D

List of all members.

Public Types

typedef Surface::LocalPoint LocalPoint

Public Member Functions

virtual RecHit2DLocalPosclone () 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


Detailed Description

Definition at line 8 of file RecHit2DLocalPos.h.


Member Typedef Documentation

typedef Surface::LocalPoint RecHit2DLocalPos::LocalPoint

Definition at line 11 of file RecHit2DLocalPos.h.


Constructor & Destructor Documentation

RecHit2DLocalPos::RecHit2DLocalPos ( DetId  id  )  [inline]

Definition at line 13 of file RecHit2DLocalPos.h.

00013 : TrackingRecHit(id) {}

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

Definition at line 14 of file RecHit2DLocalPos.h.

00014 : TrackingRecHit(id) {}

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

Definition at line 15 of file RecHit2DLocalPos.h.

00015 {}


Member Function Documentation

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

00028 { return 2;}

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.

00036                                                      {
00037   std::vector<TrackingRecHit*> nullvector;
00038   return nullvector; 
00039 }

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

00032                                                                  {
00033   std::vector<const TrackingRecHit*> nullvector;
00034   return nullvector; 
00035 }


Member Data Documentation

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


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