13 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
14 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
15 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
34 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
38 if ((*vocite)->type() !=
"laser" && (*vocite)->type() !=
"source") {
39 std::cerr <<
" first Optical object should be 'laser' or 'source'" << std::endl;
44 ALIVisLightPath* vispath = 0;
48 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name());
56 std::cout << std::endl <<
"@@@@ LR:OBJECT " << (*vocite)->name() << std::endl;
64 (*vocite)->participateInMeasurement(*lightray, *
this, behav);
70 ALIVRMLMgr::getInstance().addLightPoint(lightray->
point());
72 std::cout <<
"ALIVRMLMg addLightPoint " << lightray->
point() << (*vocite)->name() << std::endl;
75 vispath->addLightPoint(lightray->
point(), (*vocite));
81 std::cerr <<
"!! Last object is not Sensor 2D in measurement " <<
name() << std::endl;
88 std::cerr <<
"ERROR DE PROGRAMACION EN GetSimulatedValue" << std::endl;
97 std::cout <<
"end calculateSimulatedValue" << std::endl;
113 if (wordlist.size() == 1)
115 if ((wordlist.size() != 3 && wordlist.size() != 5) || !
ALIUtils::IsNumber(wordlist[1]) ||
117 std::cerr <<
"!! Sensor2D Measurement setConversionFactor: WRONG FORMAT " << std::endl
118 <<
"It should be: SENSOR2D displace_X displace_Y " << std::endl
127 if (wordlist.size() == 5) {
144 std::cout <<
"MeasurementSensor2D::correctValueAndSigma: "
145 <<
" old value X " <<
value()[0] <<
" new " <<
val << std::endl;
152 std::cout <<
"MeasurementSensor2D::correctValueAndSigma: old value Y " <<
value()[1] <<
" new " <<
val << std::endl;