16 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
17 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
18 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
32 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
38 if( (*vocite)->type() ==
"distance_target"
39 && ( (*(vocite+1))->type() ==
"distancemeter3dim" ) ) {
43 if( !right_objects ) {
44 std::cerr <<
"!!! ERROR in MeasurementDistancemeter3dim: " <<
name() <<
" There should only be two objects of type 'distance_target' and 'distancemeter3dim' " << std::endl;
45 std::cerr <<
" 1st " << (*vocite)->name() <<
" 2nd " << (*vocite+1)->
name() << std::endl;
46 std::cerr <<
" 1st " << (*vocite)->type() <<
" 2nd " << (*vocite+1)->
type() << std::endl;
53 ALIVisLightPath* vispath = 0;
57 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name() );
72 (*vocite)->participateInMeasurement( lightray, *
this, behav);
78 ALIVRMLMgr::getInstance().addLightPoint( lightray.
point() );
82 vispath->addLightPoint( lightray.
point(), *vocite );
88 std::cerr <<
"ERROR DE PROGRAMACION EN GetSimulatedValue" << std::endl;
106 if(wordlist.size() == 1)
return;
107 if( wordlist.size() != 4
110 std::cerr <<
"!! Distancemeter3dim Measurement setConversionFactor: WRONG FORMAT "<< std::endl
111 <<
"It should be: DISTANCEMETER3DIM factor +- error " << std::endl
122 }
else if( dimfac == 1 ) {
124 }
else if( dimfac == 2 ) {
127 std::cerr <<
" !!!EXITING: error in global option distancemeter3dim_meas_value_dimension, it can only take values 0,1,2, not " << dimfac;
142 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasurementDistancemeter3dim::correctValueAndSigma: old value" << val <<
" +- " << sig << std::endl;
148 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasuremenDistancemeter3dim::correctValueAndSigma: new value " << val <<
" +- " << sig << std::endl;
std::vector< OpticalObject * > & OptOList()
void setValue(ALIint coor, ALIdouble val)
static GlobalOptionMgr * getInstance()
ALIstring getMeasuringBehaviour(const std::vector< OpticalObject * >::const_iterator vocite)
virtual void calculateSimulatedValue(ALIbool firstTime)
virtual void correctValueAndSigma()
virtual void setConversionFactor(const std::vector< ALIstring > &wordlist)
void setSigma(ALIint coor, ALIdouble val)
static int IsNumber(const ALIstring &str)
const ALIdouble * sigma() const
const CLHEP::Hep3Vector & point() 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
const ALIdouble * value() const
const ALIstring & type() const
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
tuple size
Write out results.