CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DeviationSensor2D Class Reference

#include <DeviationSensor2D.h>

Public Member Functions

const ALIdoubledevErrX ()
 
const ALIdoubledevErrY ()
 
 DeviationSensor2D ()
 
 DeviationSensor2D (ALIdouble posDimFactor, ALIdouble angDimFactor)
 
const ALIdoubledevX ()
 
const ALIdoubledevY ()
 
void fillData (const std::vector< ALIstring > &wl)
 
const ALIdoubleposErrX ()
 
const ALIdoubleposErrY ()
 
const ALIdoubleposX ()
 
const ALIdoubleposY ()
 
 ~DeviationSensor2D ()
 

Private Attributes

ALIdouble theAngDimFactor
 
ALIdouble theDevErrX
 
ALIdouble theDevErrY
 
ALIdouble theDevX
 
ALIdouble theDevY
 
ALIdouble thePosDimFactor
 
ALIdouble thePosErrX
 
ALIdouble thePosErrY
 
ALIdouble thePosX
 
ALIdouble thePosY
 

Detailed Description

Definition at line 16 of file DeviationSensor2D.h.

Constructor & Destructor Documentation

DeviationSensor2D::DeviationSensor2D ( )
inline

Definition at line 21 of file DeviationSensor2D.h.

21 { };
DeviationSensor2D::DeviationSensor2D ( ALIdouble  posDimFactor,
ALIdouble  angDimFactor 
)

Definition at line 12 of file DeviationSensor2D.cc.

References theAngDimFactor, and thePosDimFactor.

13 {
14  thePosDimFactor = posDimFactor;
15  theAngDimFactor = angDimFactor;
16 }
DeviationSensor2D::~DeviationSensor2D ( )
inline

Definition at line 23 of file DeviationSensor2D.h.

23 { };

Member Function Documentation

const ALIdouble& DeviationSensor2D::devErrX ( )
inline

Definition at line 47 of file DeviationSensor2D.h.

References theDevErrX.

47  {
48  return theDevErrX;
49  }
const ALIdouble& DeviationSensor2D::devErrY ( )
inline

Definition at line 50 of file DeviationSensor2D.h.

References theDevErrY.

50  {
51  return theDevErrY;
52  }
const ALIdouble& DeviationSensor2D::devX ( )
inline

Definition at line 41 of file DeviationSensor2D.h.

References theDevX.

41  {
42  return theDevX;
43  }
const ALIdouble& DeviationSensor2D::devY ( )
inline

Definition at line 44 of file DeviationSensor2D.h.

References theDevY.

44  {
45  return theDevY;
46  }
void DeviationSensor2D::fillData ( const std::vector< ALIstring > &  wl)

Definition at line 18 of file DeviationSensor2D.cc.

References dtNoiseDBValidation_cfg::cerr, ALIUtils::dumpVS(), ALIUtils::getFloat(), GlobalOptionMgr::getInstance(), GlobalOptionMgr::GlobalOptions(), theAngDimFactor, theDevErrX, theDevErrY, theDevX, theDevY, thePosDimFactor, thePosErrX, thePosErrY, thePosX, and thePosY.

Referenced by DeviationsFromFileSensor2D::readFile().

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 }
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
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()
const ALIdouble& DeviationSensor2D::posErrX ( )
inline

Definition at line 35 of file DeviationSensor2D.h.

References thePosErrX.

35  {
36  return thePosErrX;
37  }
const ALIdouble& DeviationSensor2D::posErrY ( )
inline

Definition at line 38 of file DeviationSensor2D.h.

References thePosErrY.

38  {
39  return thePosErrY;
40  }
const ALIdouble& DeviationSensor2D::posX ( )
inline

Definition at line 29 of file DeviationSensor2D.h.

References thePosX.

Referenced by DeviationsFromFileSensor2D::getDevis(), and DeviationsFromFileSensor2D::readFile().

29  {
30  return thePosX;
31  }
const ALIdouble& DeviationSensor2D::posY ( )
inline

Definition at line 32 of file DeviationSensor2D.h.

References thePosY.

Referenced by DeviationsFromFileSensor2D::readFile().

32  {
33  return thePosY;
34  }

Member Data Documentation

ALIdouble DeviationSensor2D::theAngDimFactor
private

Definition at line 59 of file DeviationSensor2D.h.

Referenced by DeviationSensor2D(), and fillData().

ALIdouble DeviationSensor2D::theDevErrX
private

Definition at line 58 of file DeviationSensor2D.h.

Referenced by devErrX(), and fillData().

ALIdouble DeviationSensor2D::theDevErrY
private

Definition at line 58 of file DeviationSensor2D.h.

Referenced by devErrY(), and fillData().

ALIdouble DeviationSensor2D::theDevX
private

Definition at line 57 of file DeviationSensor2D.h.

Referenced by devX(), and fillData().

ALIdouble DeviationSensor2D::theDevY
private

Definition at line 57 of file DeviationSensor2D.h.

Referenced by devY(), and fillData().

ALIdouble DeviationSensor2D::thePosDimFactor
private

Definition at line 59 of file DeviationSensor2D.h.

Referenced by DeviationSensor2D(), and fillData().

ALIdouble DeviationSensor2D::thePosErrX
private

Definition at line 56 of file DeviationSensor2D.h.

Referenced by fillData(), and posErrX().

ALIdouble DeviationSensor2D::thePosErrY
private

Definition at line 56 of file DeviationSensor2D.h.

Referenced by fillData(), and posErrY().

ALIdouble DeviationSensor2D::thePosX
private

Definition at line 55 of file DeviationSensor2D.h.

Referenced by fillData(), and posX().

ALIdouble DeviationSensor2D::thePosY
private

Definition at line 55 of file DeviationSensor2D.h.

Referenced by fillData(), and posY().