26 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
28 (*vocite)->type() ==
"distancemeter") {
29 std::cerr <<
"!!! ERROR in MeasurementTiltmeter: " <<
name() <<
" There should only be one object of type 'tiltmeter' " << std::endl;
39 (*vocite)->participateInMeasurement( ll, *
this, behav );
55 if(wordlist.size() == 1)
return;
56 if( wordlist.size() != 7
60 std::cerr <<
"!! Tiltmeter Measurement setConversionFactor: WRONG FORMAT "<< std::endl
61 <<
"It should be: TILTEMETER factor +- error constant_term +- error" 62 << (wordlist.size() != 7)
78 }
else if( dimfac == 1 ) {
80 }
else if( dimfac == 2 ) {
83 std::cerr <<
" !!!EXITING: error in global option tiltmeter_meas_value_dimension, it can only take values 0,1,2, not " << dimfac;
104 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasurementTiltmeter::correctValueAndSigma: old value" << val <<
" +- " << sig << std::endl;
121 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasurementTiltmeter::correctValueAndSigma: new value " << val <<
" +- " << sig << std::endl;
virtual const ALIdouble sigmaDimensionFactor() const
virtual const ALIdouble valueDimensionFactor() const
ALIdouble theConstantTermSigma
void calculateSimulatedValue(ALIbool firstTime) override
void setValue(ALIint coor, ALIdouble val)
void setConversionFactor(const std::vector< ALIstring > &wordlist) override
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
ALIdouble theConstantTerm
const std::vector< OpticalObject * > & OptOList() const
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
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
void correctValueAndSigma() override