3 #include "OscLib/IOscCalc.h"
14 return osc->GetTh13();
32 osc->SetTh13(asin(sqrt(
Clamp(val)))/2);
38 double ret = osc->GetdCP()/M_PI;
41 long long int a = ret/2+1;
44 while(ret < 0) ret += 2;
45 while(ret > 2) ret -= 2;
53 osc->SetdCP(M_PI*val);
58 return osc->GetTh23();
78 osc->SetTh23(asin(sqrt(
Clamp(val))));
90 osc->SetTh23(asin(sqrt(
Clamp(val)))/2);
96 return osc->GetDmsq32();
102 osc->SetDmsq32(
Clamp(val));
108 return osc->GetDmsq32()*1000.0;
114 osc->SetDmsq32(
Clamp(val/1000.0));
126 osc->SetTh12(atan(sqrt(
Clamp(val))));
138 osc->SetTh12(asin(sqrt(
Clamp(val)))/2);
144 return osc->GetDmsq21();
150 osc->SetDmsq21(
Clamp(val));
155 return osc->GetRho();
161 osc->SetRho(
Clamp(val));
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
process_name opflashCryoW ana
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
T sqr(T x)
More efficient square function than pow(x,2)
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
double Clamp(double val) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const