16 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
17 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
18 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
30 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
37 if ((*vocite)->type() ==
"distance_target" && ((*(vocite + 1))->type() ==
"distancemeter3dim")) {
42 std::cerr <<
"!!! ERROR in MeasurementDistancemeter3dim: " <<
name()
43 <<
" There should only be two objects of type 'distance_target' and 'distancemeter3dim' " << std::endl;
44 std::cerr <<
" 1st " << (*vocite)->name() <<
" 2nd " << (*vocite + 1)->
name() << std::endl;
45 std::cerr <<
" 1st " << (*vocite)->type() <<
" 2nd " << (*vocite + 1)->
type() << std::endl;
52 ALIVisLightPath* vispath = 0;
56 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name());
64 std::cout << std::endl <<
"@@@@ LR:OBJECT " << (*vocite)->name() << std::endl;
72 (*vocite)->participateInMeasurement(lightray, *
this, behav);
78 ALIVRMLMgr::getInstance().addLightPoint(lightray.
point());
80 std::cout <<
"ALIVRMLMg addLightPoint " << lightray.
point() << (*vocite)->name() << std::endl;
83 vispath->addLightPoint(lightray.
point(), *vocite);
89 std::cerr <<
"ERROR DE PROGRAMACION EN GetSimulatedValue" << std::endl;
95 std::cout <<
"end calculateSimulatedValue" << std::endl;
105 if (wordlist.size() == 1)
109 std::cerr <<
"!! Distancemeter3dim Measurement setConversionFactor: WRONG FORMAT " << std::endl
110 <<
"It should be: DISTANCEMETER3DIM factor +- error " << std::endl
121 }
else if (dimfac == 1) {
123 }
else if (dimfac == 2) {
126 std::cerr <<
" !!!EXITING: error in global option distancemeter3dim_meas_value_dimension, it can only take values "
141 std::cout <<
"MeasurementDistancemeter3dim::correctValueAndSigma: old value" << val <<
" +- " << sig << std::endl;
148 std::cout <<
"MeasuremenDistancemeter3dim::correctValueAndSigma: new value " << val <<
" +- " << sig << std::endl;
void correctValueAndSigma() override
void setValue(ALIint coor, ALIdouble val)
static GlobalOptionMgr * getInstance()
ALIstring getMeasuringBehaviour(const std::vector< OpticalObject * >::const_iterator vocite)
void setSigma(ALIint coor, ALIdouble val)
static int IsNumber(const ALIstring &str)
const ALIdouble * sigma() const
void setConversionFactor(const std::vector< ALIstring > &wordlist) override
const CLHEP::Hep3Vector & point() const
const std::vector< OpticalObject * > & OptOList() const
static ALIbool getFirstTime()
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
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
const ALIdouble * value() const
const ALIstring & type() const
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
void calculateSimulatedValue(ALIbool firstTime) override
tuple size
Write out results.