Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
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
24
GlobalOptionMgr
* gomgr =
GlobalOptionMgr::getInstance
();
25
thePosDimFactor
= gomgr->
GlobalOptions
()[
ALIstring
(
"deviffValDimf"
) ];
26
theAngDimFactor
= gomgr->
GlobalOptions
()[
ALIstring
(
"deviffAngDimf"
) ];
27
thePosX
=
ALIUtils::getFloat
( wl[0] )*
thePosDimFactor
;
28
thePosErrX
=
ALIUtils::getFloat
( wl[1] );
29
thePosY
=
ALIUtils::getFloat
( wl[2] )*
thePosDimFactor
;
30
thePosErrY
=
ALIUtils::getFloat
( wl[3] );
31
theDevX
=
ALIUtils::getFloat
( wl[4] )*
theAngDimFactor
;
32
theDevErrX
=
ALIUtils::getFloat
( wl[5] );
33
theDevY
=
ALIUtils::getFloat
( wl[6] )*
theAngDimFactor
;
34
theDevErrY
=
ALIUtils::getFloat
( wl[7] );
35
36
}
37
38
39
40
ALIdouble
long double ALIdouble
Definition:
CocoaGlobals.h:11
DeviationSensor2D::thePosErrX
ALIdouble thePosErrX
Definition:
DeviationSensor2D.h:56
DeviationSensor2D::thePosX
ALIdouble thePosX
Definition:
DeviationSensor2D.h:55
DeviationSensor2D::theDevY
ALIdouble theDevY
Definition:
DeviationSensor2D.h:57
DeviationSensor2D::theDevX
ALIdouble theDevX
Definition:
DeviationSensor2D.h:57
DeviationSensor2D::theDevErrY
ALIdouble theDevErrY
Definition:
DeviationSensor2D.h:58
GlobalOptionMgr::getInstance
static GlobalOptionMgr * getInstance()
Definition:
GlobalOptionMgr.cc:18
DeviationSensor2D::theAngDimFactor
ALIdouble theAngDimFactor
Definition:
DeviationSensor2D.h:59
ecal_dqm_sourceclient-live_cfg.cerr
tuple cerr
Definition:
ecal_dqm_sourceclient-live_cfg.py:90
ALIUtils::getFloat
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
Definition:
ALIUtils.cc:404
ALIUtils.h
GlobalOptionMgr.h
DeviationSensor2D::thePosY
ALIdouble thePosY
Definition:
DeviationSensor2D.h:55
DeviationSensor2D::fillData
void fillData(const std::vector< ALIstring > &wl)
Definition:
DeviationSensor2D.cc:18
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:501
DeviationSensor2D.h
ALIstring
std::string ALIstring
Definition:
CocoaGlobals.h:9
DeviationSensor2D::thePosDimFactor
ALIdouble thePosDimFactor
Definition:
DeviationSensor2D.h:59
GlobalOptionMgr
Definition:
GlobalOptionMgr.h:18
DeviationSensor2D::DeviationSensor2D
DeviationSensor2D()
Definition:
DeviationSensor2D.h:21
GlobalOptionMgr::GlobalOptions
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
Definition:
GlobalOptionMgr.h:32
DeviationSensor2D::theDevErrX
ALIdouble theDevErrX
Definition:
DeviationSensor2D.h:58
DeviationSensor2D::thePosErrY
ALIdouble thePosErrY
Definition:
DeviationSensor2D.h:56
Generated for CMSSW Reference Manual by
1.8.5