CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/DataFormats/TrackingRecHit/src/RecHit1D.cc

Go to the documentation of this file.
00001 
00002 /*
00003  *  See header file for a description of this class.
00004  *
00005  *  $Date: 2007/08/10 22:24:54 $
00006  *  $Revision: 1.3 $
00007  *  \author S. Lacaprara, G. Cerminara
00008  */
00009 
00010 #include "DataFormats/TrackingRecHit/interface/RecHit1D.h"
00011 
00012 // #include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
00013 
00014 
00015 
00016 // Just the x
00017 AlgebraicVector RecHit1D::parameters() const {
00018   AlgebraicVector result(1);
00019   result[0] = localPosition().x();
00020   return result;
00021 }
00022 
00023 
00024 
00025 // local Error + AlignmentPositionError if this is set for the DetUnit
00026 AlgebraicSymMatrix RecHit1D::parametersError() const {
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 }
00040 
00041 
00042 
00043 // Initialize the projection matrix
00044 void RecHit1D::initialize() const {
00045   theProjectionMatrix = AlgebraicMatrix( 1, 5, 0);
00046   theProjectionMatrix[0][3] = 1;
00047   
00048   isInitialized = true;
00049 }
00050 
00051 
00052 
00053 bool RecHit1D::isInitialized(false);
00054 
00055 
00056 
00057 AlgebraicMatrix RecHit1D::theProjectionMatrix;
00058