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

$ \epsilon_{\mu\tau} $ More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/Vars/FitVarsNSI.h"

Inheritance diagram for ana::FitEpsMuTau:
ana::IConstrainedFitVar ana::IFitVar

Public Member Functions

 FitEpsMuTau ()
 
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
 

Detailed Description

$ \epsilon_{\mu\tau} $

Definition at line 10 of file FitVarsNSI.h.

Constructor & Destructor Documentation

ana::FitEpsMuTau::FitEpsMuTau ( )
inline

Definition at line 13 of file FitVarsNSI.h.

References GetValue(), SetValue(), and febshutoff_auto::val.

13 : IConstrainedFitVar("eps_mutau", "#epsilon_{#mu#tau}") {};

Member Function Documentation

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

Implements ana::IFitVar.

Definition at line 11 of file FitVarsNSI.cxx.

References osc::DowncastToNSI(), and osc::OscCalcPMNS_NSI::GetEps_mutau().

Referenced by FitEpsMuTau().

12  {
13  return osc::DowncastToNSI(osc)->GetEps_mutau();
14  }
double GetEps_mutau() const
const OscCalcPMNS_NSI * DowncastToNSI(const IOscCalc *calc)
double ana::FitEpsMuTau::HighLimit ( ) const
inlineoverridevirtual

Implements ana::IConstrainedFitVar.

Definition at line 20 of file FitVarsNSI.h.

References ana::kFitEpsMuTau.

20 {return 1.0;}
const std::string& ana::IFitVar::LatexName ( ) const
inlineinherited
double ana::FitEpsMuTau::LowLimit ( ) const
inlineoverridevirtual

Implements ana::IConstrainedFitVar.

Definition at line 19 of file FitVarsNSI.h.

19 {return -1.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::FitEpsMuTau::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
overridevirtual

Implements ana::IFitVar.

Definition at line 17 of file FitVarsNSI.cxx.

References ana::IConstrainedFitVar::Clamp(), osc::DowncastToNSI(), and osc::OscCalcPMNS_NSI::SetEps_mutau().

Referenced by FitEpsMuTau().

18  {
20  }
virtual void SetEps_mutau(double eps_mutau)
T Clamp(T val) const
Definition: IFitVar.h:60
const OscCalcPMNS_NSI * DowncastToNSI(const IOscCalc *calc)
const std::string& ana::IFitVar::ShortName ( ) const
inlineinherited

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