CMS 3D CMS Logo

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() [1/2]

DeviationSensor2D::DeviationSensor2D ( )
inline

Definition at line 19 of file DeviationSensor2D.h.

19 {};

◆ DeviationSensor2D() [2/2]

DeviationSensor2D::DeviationSensor2D ( ALIdouble  posDimFactor,
ALIdouble  angDimFactor 
)

Definition at line 12 of file DeviationSensor2D.cc.

References theAngDimFactor, and thePosDimFactor.

12  {
13  thePosDimFactor = posDimFactor;
14  theAngDimFactor = angDimFactor;
15 }

◆ ~DeviationSensor2D()

DeviationSensor2D::~DeviationSensor2D ( )
inline

Definition at line 21 of file DeviationSensor2D.h.

21 {};

Member Function Documentation

◆ devErrX()

const ALIdouble& DeviationSensor2D::devErrX ( )
inline

Definition at line 33 of file DeviationSensor2D.h.

References theDevErrX.

33 { return theDevErrX; }

◆ devErrY()

const ALIdouble& DeviationSensor2D::devErrY ( )
inline

Definition at line 34 of file DeviationSensor2D.h.

References theDevErrY.

34 { return theDevErrY; }

◆ devX()

const ALIdouble& DeviationSensor2D::devX ( )
inline

Definition at line 31 of file DeviationSensor2D.h.

References theDevX.

31 { return theDevX; }

◆ devY()

const ALIdouble& DeviationSensor2D::devY ( )
inline

Definition at line 32 of file DeviationSensor2D.h.

References theDevY.

32 { return theDevY; }

◆ fillData()

void DeviationSensor2D::fillData ( const std::vector< ALIstring > &  wl)

Definition at line 17 of file DeviationSensor2D.cc.

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

Referenced by DeviationsFromFileSensor2D::readFile().

17  {
18  if (wl.size() != 8) {
19  ALIUtils::dumpVS(wl, "!!!! EXITING DeviationsSensor2D::fillData. Number of words <> 8 ", std::cerr);
20  }
21 
23  thePosDimFactor = gomgr->GlobalOptions()[ALIstring("deviffValDimf")];
24  theAngDimFactor = gomgr->GlobalOptions()[ALIstring("deviffAngDimf")];
33 }
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:373
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:465
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
std::string ALIstring
Definition: CocoaGlobals.h:9

◆ posErrX()

const ALIdouble& DeviationSensor2D::posErrX ( )
inline

Definition at line 29 of file DeviationSensor2D.h.

References thePosErrX.

29 { return thePosErrX; }

◆ posErrY()

const ALIdouble& DeviationSensor2D::posErrY ( )
inline

Definition at line 30 of file DeviationSensor2D.h.

References thePosErrY.

30 { return thePosErrY; }

◆ posX()

const ALIdouble& DeviationSensor2D::posX ( )
inline

Definition at line 27 of file DeviationSensor2D.h.

References thePosX.

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

27 { return thePosX; }

◆ posY()

const ALIdouble& DeviationSensor2D::posY ( )
inline

Definition at line 28 of file DeviationSensor2D.h.

References thePosY.

Referenced by DeviationsFromFileSensor2D::readFile().

28 { return thePosY; }

Member Data Documentation

◆ theAngDimFactor

ALIdouble DeviationSensor2D::theAngDimFactor
private

Definition at line 41 of file DeviationSensor2D.h.

Referenced by DeviationSensor2D(), and fillData().

◆ theDevErrX

ALIdouble DeviationSensor2D::theDevErrX
private

Definition at line 40 of file DeviationSensor2D.h.

Referenced by devErrX(), and fillData().

◆ theDevErrY

ALIdouble DeviationSensor2D::theDevErrY
private

Definition at line 40 of file DeviationSensor2D.h.

Referenced by devErrY(), and fillData().

◆ theDevX

ALIdouble DeviationSensor2D::theDevX
private

Definition at line 39 of file DeviationSensor2D.h.

Referenced by devX(), and fillData().

◆ theDevY

ALIdouble DeviationSensor2D::theDevY
private

Definition at line 39 of file DeviationSensor2D.h.

Referenced by devY(), and fillData().

◆ thePosDimFactor

ALIdouble DeviationSensor2D::thePosDimFactor
private

Definition at line 41 of file DeviationSensor2D.h.

Referenced by DeviationSensor2D(), and fillData().

◆ thePosErrX

ALIdouble DeviationSensor2D::thePosErrX
private

Definition at line 38 of file DeviationSensor2D.h.

Referenced by fillData(), and posErrX().

◆ thePosErrY

ALIdouble DeviationSensor2D::thePosErrY
private

Definition at line 38 of file DeviationSensor2D.h.

Referenced by fillData(), and posErrY().

◆ thePosX

ALIdouble DeviationSensor2D::thePosX
private

Definition at line 37 of file DeviationSensor2D.h.

Referenced by fillData(), and posX().

◆ thePosY

ALIdouble DeviationSensor2D::thePosY
private

Definition at line 37 of file DeviationSensor2D.h.

Referenced by fillData(), and posY().