src
Alignment
CocoaModel
src
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
8
#include "
Alignment/CocoaModel/interface/DeviationSensor2D.h
"
9
#include "
Alignment/CocoaUtilities/interface/ALIUtils.h
"
10
#include "
Alignment/CocoaUtilities/interface/GlobalOptionMgr.h
"
11
12
DeviationSensor2D::DeviationSensor2D
(
ALIdouble
posDimFactor,
ALIdouble
angDimFactor) {
13
thePosDimFactor
= posDimFactor;
14
theAngDimFactor
= angDimFactor;
15
}
16
17
void
DeviationSensor2D::fillData
(
const
std::vector<ALIstring>&
wl
) {
18
if
(
wl
.size() != 8) {
19
ALIUtils::dumpVS
(
wl
,
"!!!! EXITING DeviationsSensor2D::fillData. Number of words <> 8 "
,
std::cerr
);
20
}
21
22
GlobalOptionMgr
* gomgr =
GlobalOptionMgr::getInstance
();
23
thePosDimFactor
= gomgr->
GlobalOptions
()[
ALIstring
(
"deviffValDimf"
)];
24
theAngDimFactor
= gomgr->
GlobalOptions
()[
ALIstring
(
"deviffAngDimf"
)];
25
thePosX
=
ALIUtils::getFloat
(
wl
[0]) *
thePosDimFactor
;
26
thePosErrX
=
ALIUtils::getFloat
(
wl
[1]);
27
thePosY
=
ALIUtils::getFloat
(
wl
[2]) *
thePosDimFactor
;
28
thePosErrY
=
ALIUtils::getFloat
(
wl
[3]);
29
theDevX
=
ALIUtils::getFloat
(
wl
[4]) *
theAngDimFactor
;
30
theDevErrX
=
ALIUtils::getFloat
(
wl
[5]);
31
theDevY
=
ALIUtils::getFloat
(
wl
[6]) *
theAngDimFactor
;
32
theDevErrY
=
ALIUtils::getFloat
(
wl
[7]);
33
}
ALIdouble
long double ALIdouble
Definition:
CocoaGlobals.h:11
DeviationSensor2D::thePosErrX
ALIdouble thePosErrX
Definition:
DeviationSensor2D.h:38
DeviationSensor2D::thePosX
ALIdouble thePosX
Definition:
DeviationSensor2D.h:37
DeviationSensor2D::theDevY
ALIdouble theDevY
Definition:
DeviationSensor2D.h:39
DeviationSensor2D::theDevX
ALIdouble theDevX
Definition:
DeviationSensor2D.h:39
DeviationSensor2D::theDevErrY
ALIdouble theDevErrY
Definition:
DeviationSensor2D.h:40
GlobalOptionMgr::getInstance
static GlobalOptionMgr * getInstance()
Definition:
GlobalOptionMgr.cc:18
DeviationSensor2D::theAngDimFactor
ALIdouble theAngDimFactor
Definition:
DeviationSensor2D.h:41
ALIUtils::getFloat
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
Definition:
ALIUtils.cc:373
ALIUtils.h
GlobalOptionMgr.h
DeviationSensor2D::thePosY
ALIdouble thePosY
Definition:
DeviationSensor2D.h:37
DMR_cfg.cerr
cerr
Definition:
DMR_cfg.py:78
DeviationSensor2D::fillData
void fillData(const std::vector< ALIstring > &wl)
Definition:
DeviationSensor2D.cc:17
ALIUtils::dumpVS
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
DeviationSensor2D.h
GlobalOptionMgr::GlobalOptions
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
Definition:
GlobalOptionMgr.h:31
LaserClient_cfi.wl
wl
Definition:
LaserClient_cfi.py:48
ALIstring
std::string ALIstring
Definition:
CocoaGlobals.h:9
DeviationSensor2D::thePosDimFactor
ALIdouble thePosDimFactor
Definition:
DeviationSensor2D.h:41
GlobalOptionMgr
Definition:
GlobalOptionMgr.h:18
DeviationSensor2D::DeviationSensor2D
DeviationSensor2D()
Definition:
DeviationSensor2D.h:19
DeviationSensor2D::theDevErrX
ALIdouble theDevErrX
Definition:
DeviationSensor2D.h:40
DeviationSensor2D::thePosErrY
ALIdouble thePosErrY
Definition:
DeviationSensor2D.h:38
Generated for CMSSW Reference Manual by
1.8.14