Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ana::Fit2SinSqTheta23SinSq2Theta13 Class Reference

$ 2\sin^2\theta_{23}\sin^22\theta_{13} $ More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/CAFAna/Vars/FitVarsProduct.h"

Inheritance diagram for ana::Fit2SinSqTheta23SinSq2Theta13:
ana::IConstrainedFitVar ana::IFitVar

Public Member Functions

 Fit2SinSqTheta23SinSq2Theta13 ()
 
double GetValue (const osc::IOscCalcAdjustable *osc) const override
 
void SetValue (osc::IOscCalcAdjustable *osc, double val) const override
 
double LowLimit () const override
 
double HighLimit () const override
 
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...
 
const std::stringShortName () const
 
const std::stringLatexName () const
 

Protected Member Functions

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

Protected Attributes

const FitVarsProduct fVar
 

Detailed Description

$ 2\sin^2\theta_{23}\sin^22\theta_{13} $

Continue to use kFitSinSqTheta23SinSq2Theta13Marg as the marg var

Definition at line 71 of file FitVarsProduct.h.

Constructor & Destructor Documentation

ana::Fit2SinSqTheta23SinSq2Theta13::Fit2SinSqTheta23SinSq2Theta13 ( )
inline

Definition at line 74 of file FitVarsProduct.h.

75  : IConstrainedFitVar("2ssth23ss2th13", "2sin^{2}#theta_{23}sin^{2}2#theta_{13}"),
77  {
78  }
const ConstrainedFitVarWithPrior fitSsqTh23_UniformPriorSsqTh23 & kFitSinSqTheta23
const FitSinSq2Theta13 kFitSinSq2Theta13
Definition: FitVars.cxx:13

Member Function Documentation

template<typename T >
T ana::IConstrainedFitVar::Clamp ( T  val) const
inlineprotectedinherited
double ana::Fit2SinSqTheta23SinSq2Theta13::GetValue ( const osc::IOscCalcAdjustable osc) const
inlineoverridevirtual

Implements ana::IFitVar.

Definition at line 80 of file FitVarsProduct.h.

81  {
82  return 2*fVar.GetValue(osc);
83  }
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
double ana::Fit2SinSqTheta23SinSq2Theta13::HighLimit ( ) const
inlineoverridevirtual

Implements ana::IConstrainedFitVar.

Definition at line 90 of file FitVarsProduct.h.

90 {return 2;}
const std::string& ana::IFitVar::LatexName ( ) const
inlineinherited
double ana::Fit2SinSqTheta23SinSq2Theta13::LowLimit ( ) const
inlineoverridevirtual

Implements ana::IConstrainedFitVar.

Definition at line 89 of file FitVarsProduct.h.

89 {return 0;}
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
void ana::Fit2SinSqTheta23SinSq2Theta13::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlineoverridevirtual

Implements ana::IFitVar.

Definition at line 84 of file FitVarsProduct.h.

85  {
86  fVar.SetValue(osc, val/2);
87  }
virtual void SetValue(osc::IOscCalcAdjustable *osc, double val) const
const std::string& ana::IFitVar::ShortName ( ) const
inlineinherited

Member Data Documentation

const FitVarsProduct ana::Fit2SinSqTheta23SinSq2Theta13::fVar
protected

Definition at line 92 of file FitVarsProduct.h.


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