CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Alignment/CocoaModel/src/DeviationSensor2D.cc

Go to the documentation of this file.
00001 //   COCOA class implementation file
00002 //Id: DeviationSensor2D.cc
00003 //CAT: Model
00004 //
00005 //   History: v1.0 
00006 //   Pedro Arce
00007 
00008 #include "Alignment/CocoaModel/interface/DeviationSensor2D.h"
00009 #include "Alignment/CocoaUtilities/interface/ALIUtils.h"
00010 #include "Alignment/CocoaUtilities/interface/GlobalOptionMgr.h"
00011 
00012 DeviationSensor2D::DeviationSensor2D( ALIdouble posDimFactor, ALIdouble angDimFactor )
00013 { 
00014   thePosDimFactor = posDimFactor;
00015   theAngDimFactor = angDimFactor;
00016 }
00017 
00018 void DeviationSensor2D::fillData( const std::vector<ALIstring>& wl )
00019 {
00020   if( wl.size() != 8 ) {
00021     ALIUtils::dumpVS( wl,  "!!!! EXITING DeviationsSensor2D::fillData. Number of words <> 8 ", std::cerr );
00022   }
00023 
00024   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
00025   thePosDimFactor = gomgr->GlobalOptions()[ ALIstring("deviffValDimf") ];
00026   theAngDimFactor = gomgr->GlobalOptions()[ ALIstring("deviffAngDimf") ];
00027   thePosX = ALIUtils::getFloat( wl[0] )*thePosDimFactor;
00028   thePosErrX = ALIUtils::getFloat( wl[1] );
00029   thePosY = ALIUtils::getFloat( wl[2] )*thePosDimFactor;
00030   thePosErrY = ALIUtils::getFloat( wl[3] );
00031   theDevX = ALIUtils::getFloat( wl[4] )*theAngDimFactor;
00032   theDevErrX = ALIUtils::getFloat( wl[5] );
00033   theDevY = ALIUtils::getFloat( wl[6] )*theAngDimFactor;
00034   theDevErrY = ALIUtils::getFloat( wl[7] );
00035 
00036 }
00037 
00038 
00039 
00040