Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:28

0001 //   COCOA class implementation file

0002 //Id: DeviationSensor2D.cc

0003 //CAT: Model

0004 //

0005 //   History: v1.0

0006 //   Pedro Arce

0007 
0008 #include "Alignment/CocoaModel/interface/DeviationSensor2D.h"
0009 #include "Alignment/CocoaUtilities/interface/ALIUtils.h"
0010 #include "Alignment/CocoaUtilities/interface/GlobalOptionMgr.h"
0011 
0012 DeviationSensor2D::DeviationSensor2D(ALIdouble posDimFactor, ALIdouble angDimFactor) {
0013   thePosDimFactor = posDimFactor;
0014   theAngDimFactor = angDimFactor;
0015 }
0016 
0017 void DeviationSensor2D::fillData(const std::vector<ALIstring>& wl) {
0018   if (wl.size() != 8) {
0019     ALIUtils::dumpVS(wl, "!!!! EXITING DeviationsSensor2D::fillData. Number of words <> 8 ", std::cerr);
0020   }
0021 
0022   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
0023   thePosDimFactor = gomgr->GlobalOptions()[ALIstring("deviffValDimf")];
0024   theAngDimFactor = gomgr->GlobalOptions()[ALIstring("deviffAngDimf")];
0025   thePosX = ALIUtils::getFloat(wl[0]) * thePosDimFactor;
0026   thePosErrX = ALIUtils::getFloat(wl[1]);
0027   thePosY = ALIUtils::getFloat(wl[2]) * thePosDimFactor;
0028   thePosErrY = ALIUtils::getFloat(wl[3]);
0029   theDevX = ALIUtils::getFloat(wl[4]) * theAngDimFactor;
0030   theDevErrX = ALIUtils::getFloat(wl[5]);
0031   theDevY = ALIUtils::getFloat(wl[6]) * theAngDimFactor;
0032   theDevErrY = ALIUtils::getFloat(wl[7]);
0033 }