CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeviationSensor2D.cc
Go to the documentation of this file.
1 // COCOA class implementation file
2 //Id: DeviationSensor2D.cc
3 //CAT: Model
4 //
5 // History: v1.0
6 // Pedro Arce
7 
11 
13 {
14  thePosDimFactor = posDimFactor;
15  theAngDimFactor = angDimFactor;
16 }
17 
18 void DeviationSensor2D::fillData( const std::vector<ALIstring>& wl )
19 {
20  if( wl.size() != 8 ) {
21  ALIUtils::dumpVS( wl, "!!!! EXITING DeviationsSensor2D::fillData. Number of words <> 8 ", std::cerr );
22  }
23 
25  thePosDimFactor = gomgr->GlobalOptions()[ ALIstring("deviffValDimf") ];
26  theAngDimFactor = gomgr->GlobalOptions()[ ALIstring("deviffAngDimf") ];
28  thePosErrX = ALIUtils::getFloat( wl[1] );
30  thePosErrY = ALIUtils::getFloat( wl[3] );
32  theDevErrX = ALIUtils::getFloat( wl[5] );
34  theDevErrY = ALIUtils::getFloat( wl[7] );
35 
36 }
37 
38 
39 
40 
long double ALIdouble
Definition: CocoaGlobals.h:11
static GlobalOptionMgr * getInstance()
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
Definition: ALIUtils.cc:404
void fillData(const std::vector< ALIstring > &wl)
static void dumpVS(const std::vector< ALIstring > &wl, const std::string &msg, std::ostream &outs=std::cout)
dumps a vector of strings with a message to outs
Definition: ALIUtils.cc:501
std::string ALIstring
Definition: CocoaGlobals.h:9
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()