Public Member Functions | Protected Member Functions | List of all members
FitSinSqTheta23UpperOctant Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-16/3FlavorAna/Ana2017/nue/joint_fit_2017_tools.h"

Inheritance diagram for FitSinSqTheta23UpperOctant:
ana::IConstrainedFitVar ana::IConstrainedFitVar ana::IConstrainedFitVar ana::IConstrainedFitVar ana::IFitVar ana::IFitVar ana::IFitVar ana::IFitVar

Public Member Functions

virtual double GetValue (const osc::IOscCalcAdjustable *osc) const
 
virtual void SetValue (osc::IOscCalcAdjustable *osc, double val) const
 
virtual std::string ShortName () const
 
virtual std::string LatexName () const
 
virtual double LowLimit () const
 
virtual double HighLimit () const
 
virtual double GetValue (const osc::IOscCalcAdjustable *osc) const
 
virtual void SetValue (osc::IOscCalcAdjustable *osc, double val) const
 
virtual std::string ShortName () const
 
virtual std::string LatexName () const
 
virtual double LowLimit () const
 
virtual double HighLimit () const
 
virtual double GetValue (const osc::IOscCalcAdjustable *osc) const
 
virtual void SetValue (osc::IOscCalcAdjustable *osc, double val) const
 
virtual std::string ShortName () const
 
virtual std::string LatexName () const
 
virtual double LowLimit () const
 
virtual double HighLimit () const
 
virtual double GetValue (const osc::IOscCalcAdjustable *osc) const
 
virtual void SetValue (osc::IOscCalcAdjustable *osc, double val) const
 
virtual std::string ShortName () const
 
virtual std::string LatexName () const
 
virtual double LowLimit () const
 
virtual double HighLimit () const
 
double Penalty (double val, osc::IOscCalcAdjustable *) const override
 Override the default implementation with one that pushes back towards the center of the constrained space. More...
 

Protected Member Functions

template<typename T >
T Clamp (T val) const
 

Detailed Description

Definition at line 361 of file joint_fit_2017_tools.h.

Member Function Documentation

template<typename T >
T ana::IConstrainedFitVar::Clamp ( T  val) const
inlineprotectedinherited
virtual double FitSinSqTheta23UpperOctant::GetValue ( const osc::IOscCalcAdjustable osc) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 139 of file joint_fit_2019_style_tools.h.

References osc::_IOscCalcAdjustable< T >::GetTh23(), std::sin(), and util::sqr().

139  {
140  return util::sqr(sin(osc->GetTh23()));};
virtual T GetTh23() const
Definition: IOscCalc.h:94
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T sin(T number)
Definition: d0nt_math.hpp:132
virtual double FitSinSqTheta23UpperOctant::GetValue ( const osc::IOscCalcAdjustable osc) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 347 of file sensitivity_tools.h.

References osc::_IOscCalcAdjustable< T >::GetTh23(), std::sin(), and util::sqr().

347  {
348  return util::sqr(sin(osc->GetTh23()));};
virtual T GetTh23() const
Definition: IOscCalc.h:94
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T sin(T number)
Definition: d0nt_math.hpp:132
virtual double FitSinSqTheta23UpperOctant::GetValue ( const osc::IOscCalcAdjustable osc) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 364 of file joint_fit_2017_tools.h.

References osc::_IOscCalcAdjustable< T >::GetTh23(), std::sin(), and util::sqr().

364  {
365  return util::sqr(sin(osc->GetTh23()));};
virtual T GetTh23() const
Definition: IOscCalc.h:94
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T sin(T number)
Definition: d0nt_math.hpp:132
virtual double FitSinSqTheta23UpperOctant::GetValue ( const osc::IOscCalcAdjustable osc) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 519 of file joint_fit_2018_tools.h.

References osc::_IOscCalcAdjustable< T >::GetTh23(), std::sin(), and util::sqr().

519  {
520  return util::sqr(sin(osc->GetTh23()));};
virtual T GetTh23() const
Definition: IOscCalc.h:94
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T sin(T number)
Definition: d0nt_math.hpp:132
virtual double FitSinSqTheta23UpperOctant::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 146 of file joint_fit_2019_style_tools.h.

146 {return 1;}
virtual double FitSinSqTheta23UpperOctant::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 354 of file sensitivity_tools.h.

354 {return 0.99;}
virtual double FitSinSqTheta23UpperOctant::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 371 of file joint_fit_2017_tools.h.

371 {return 1;}
virtual double FitSinSqTheta23UpperOctant::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 526 of file joint_fit_2018_tools.h.

526 {return 1;}
virtual std::string FitSinSqTheta23UpperOctant::LatexName ( ) const
inlinevirtual

Definition at line 144 of file joint_fit_2019_style_tools.h.

144 {return "sin^{2}#theta_{23} UO";}
virtual std::string FitSinSqTheta23UpperOctant::LatexName ( ) const
inlinevirtual

Definition at line 352 of file sensitivity_tools.h.

352 {return "sin^{2}#theta_{23} UO";}
virtual std::string FitSinSqTheta23UpperOctant::LatexName ( ) const
inlinevirtual

Definition at line 369 of file joint_fit_2017_tools.h.

369 {return "sin^{2}#theta_{23} UO";}
virtual std::string FitSinSqTheta23UpperOctant::LatexName ( ) const
inlinevirtual

Definition at line 524 of file joint_fit_2018_tools.h.

524 {return "sin^{2}#theta_{23} UO";}
virtual double FitSinSqTheta23UpperOctant::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 145 of file joint_fit_2019_style_tools.h.

145 {return 0.5;}
virtual double FitSinSqTheta23UpperOctant::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 353 of file sensitivity_tools.h.

353 {return 0.501;}
virtual double FitSinSqTheta23UpperOctant::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 370 of file joint_fit_2017_tools.h.

370 {return 0.5;}
virtual double FitSinSqTheta23UpperOctant::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 525 of file joint_fit_2018_tools.h.

525 {return 0.5;}
double ana::IConstrainedFitVar::Penalty ( double  val,
osc::IOscCalcAdjustable  
) const
overridevirtualinherited

Override the default implementation with one that pushes back towards the center of the constrained space.

Reimplemented from ana::IFitVar.

Definition at line 8 of file IFitVar.cxx.

References hi(), ana::IConstrainedFitVar::HighLimit(), lo(), ana::IConstrainedFitVar::LowLimit(), extractScale::mean, Munits::rad, and util::sqr().

Referenced by ana::SigmaDelta::SigmaPenalty().

10  {
11  const auto lo = LowLimit();
12  const auto hi = HighLimit();
13 
14  if (val >= lo && val <= hi) return 0;
15 
16  // Try to direct fit back towards centre of the space. Engineer penalty to
17  // be zero at the limits.
18  const auto mean = (lo + hi) / 2;
19  const auto rad = (hi - lo) / 2;
20  return util::sqr((val - mean) / rad) - 1;
21 
22 
23  // if(val < lo) return util::sqr(lo-val);
24  // if(val > hi) return util::sqr(val-hi);
25  // return 0;
26  }
virtual double HighLimit() const =0
TSpline3 lo("lo", xlo, ylo, 12,"0")
virtual double LowLimit() const =0
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
TSpline3 hi("hi", xhi, yhi, 18,"0")
static constexpr Double_t rad
Definition: Munits.h:162
virtual void FitSinSqTheta23UpperOctant::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 141 of file joint_fit_2019_style_tools.h.

References std::asin(), ana::IConstrainedFitVar::Clamp(), osc::_IOscCalcAdjustable< T >::SetTh23(), and std::sqrt().

141  {
142  osc->SetTh23(asin(sqrt(Clamp(val))));};
T sqrt(T number)
Definition: d0nt_math.hpp:156
T Clamp(T val) const
Definition: IFitVar.h:60
virtual void SetTh23(const T &th23)=0
T asin(T number)
Definition: d0nt_math.hpp:60
virtual void FitSinSqTheta23UpperOctant::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 349 of file sensitivity_tools.h.

References std::asin(), ana::IConstrainedFitVar::Clamp(), osc::_IOscCalcAdjustable< T >::SetTh23(), and std::sqrt().

349  {
350  osc->SetTh23(asin(sqrt(Clamp(val))));};
T sqrt(T number)
Definition: d0nt_math.hpp:156
T Clamp(T val) const
Definition: IFitVar.h:60
virtual void SetTh23(const T &th23)=0
T asin(T number)
Definition: d0nt_math.hpp:60
virtual void FitSinSqTheta23UpperOctant::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 366 of file joint_fit_2017_tools.h.

References std::asin(), ana::IConstrainedFitVar::Clamp(), osc::_IOscCalcAdjustable< T >::SetTh23(), and std::sqrt().

366  {
367  osc->SetTh23(asin(sqrt(Clamp(val))));};
T sqrt(T number)
Definition: d0nt_math.hpp:156
T Clamp(T val) const
Definition: IFitVar.h:60
virtual void SetTh23(const T &th23)=0
T asin(T number)
Definition: d0nt_math.hpp:60
virtual void FitSinSqTheta23UpperOctant::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 521 of file joint_fit_2018_tools.h.

References std::asin(), ana::IConstrainedFitVar::Clamp(), osc::_IOscCalcAdjustable< T >::SetTh23(), and std::sqrt().

521  {
522  osc->SetTh23(asin(sqrt(Clamp(val))));};
T sqrt(T number)
Definition: d0nt_math.hpp:156
T Clamp(T val) const
Definition: IFitVar.h:60
virtual void SetTh23(const T &th23)=0
T asin(T number)
Definition: d0nt_math.hpp:60
virtual std::string FitSinSqTheta23UpperOctant::ShortName ( ) const
inlinevirtual

Definition at line 143 of file joint_fit_2019_style_tools.h.

143 {return "ssth23UO";}
virtual std::string FitSinSqTheta23UpperOctant::ShortName ( ) const
inlinevirtual

Definition at line 351 of file sensitivity_tools.h.

351 {return "ssth23UO";}
virtual std::string FitSinSqTheta23UpperOctant::ShortName ( ) const
inlinevirtual

Definition at line 368 of file joint_fit_2017_tools.h.

368 {return "ssth23UO";}
virtual std::string FitSinSqTheta23UpperOctant::ShortName ( ) const
inlinevirtual

Definition at line 523 of file joint_fit_2018_tools.h.

523 {return "ssth23UO";}

The documentation for this class was generated from the following files: