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

$ \delta_{CP}/\pi $ More...

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

Inheritance diagram for ana::FitDeltaInPiUnits:
ana::StanFitSupport< IFitVar > ana::IFitVar

Public Member Functions

 FitDeltaInPiUnits ()
 
stan::math::var GetValue (const osc::IOscCalcAdjustableStan *osc) const override
 
double GetValue (const osc::IOscCalcAdjustable *osc) const override
 
void SetValue (osc::IOscCalcAdjustable *osc, double val) const override
 
void SetValue (osc::IOscCalcAdjustableStan *osc, stan::math::var val) const override
 
virtual stan::math::var Prior (const stan::math::var &var, const osc::IOscCalcAdjustableStan *calc) const
 
virtual stan::math::var LogPrior (const stan::math::var &var, const osc::IOscCalcAdjustableStan *calc) const
 
virtual double Penalty (double, osc::IOscCalcAdjustable *) const
 
const std::stringShortName () const
 
const std::stringLatexName () const
 

Detailed Description

$ \delta_{CP}/\pi $

Definition at line 44 of file FitVars.h.

Constructor & Destructor Documentation

ana::FitDeltaInPiUnits::FitDeltaInPiUnits ( )
inline

Definition at line 47 of file FitVars.h.

References ana::FitTheta13::GetValue(), ana::kFitDeltaInPiUnits, ana::FitTheta13::SetValue(), and febshutoff_auto::val.

47 : StanFitSupport<IFitVar>("delta(pi)", "#delta / #pi") {};

Member Function Documentation

stan::math::var ana::FitDeltaInPiUnits::GetValue ( const osc::IOscCalcAdjustableStan osc) const
overridevirtual

Implements ana::StanFitSupport< IFitVar >.

Definition at line 76 of file FitVars.cxx.

77  {
78  return dcP_GetVal_Helper(osc);
79  }
double ana::FitDeltaInPiUnits::GetValue ( const osc::IOscCalcAdjustable osc) const
overridevirtual

Implements ana::IFitVar.

Definition at line 72 of file FitVars.cxx.

73  {
74  return dcP_GetVal_Helper(osc);
75  }
const std::string& ana::IFitVar::LatexName ( ) const
inlineinherited
virtual stan::math::var ana::StanFitSupport< IFitVar >::LogPrior ( const stan::math::var var,
const osc::IOscCalcAdjustableStan calc 
) const
inlinevirtualinherited

Log of the prior probability density. Default implementation just does log(Prior()), but this can be overridden if there optimizations that speed up the calculation.

Definition at line 102 of file IFitVar.h.

102 {return StanLog(Prior(var, calc));}
virtual stan::math::var Prior(const stan::math::var &var, const osc::IOscCalcAdjustableStan *calc) const
Definition: IFitVar.h:98
stan::math::var StanLog(const stan::math::var &x)
Definition: IFitVar.cxx:30
virtual double ana::IFitVar::Penalty ( double  ,
osc::IOscCalcAdjustable  
) const
inlinevirtualinherited

Reimplemented in ana::FitDeltaCPT, ana::FitSigmaCPT, and ana::IConstrainedFitVar.

Definition at line 34 of file IFitVar.h.

Referenced by ana::FrequentistSurface::FillSurface().

34 {return 0;}
virtual stan::math::var ana::StanFitSupport< IFitVar >::Prior ( const stan::math::var var,
const osc::IOscCalcAdjustableStan calc 
) const
inlinevirtualinherited

The prior probability density distribution on this variable (which can depend on others if needed). If there are optimizations that can make log(Prior()) more expensive than a direct implementation, consider implementing LogPrior() directly instead.

Definition at line 98 of file IFitVar.h.

98 {return StanExp(LogPrior(var, calc));}
stan::math::var StanExp(const stan::math::var &x)
Definition: IFitVar.cxx:29
virtual stan::math::var LogPrior(const stan::math::var &var, const osc::IOscCalcAdjustableStan *calc) const
Definition: IFitVar.h:102
void ana::FitDeltaInPiUnits::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
overridevirtual

Implements ana::IFitVar.

Definition at line 82 of file FitVars.cxx.

References M_PI, and osc::_IOscCalcAdjustable< T >::SetdCP().

83  {
84  osc->SetdCP(M_PI*val);
85  }
#define M_PI
Definition: SbMath.h:34
virtual void SetdCP(const T &dCP)=0
void ana::FitDeltaInPiUnits::SetValue ( osc::IOscCalcAdjustableStan osc,
stan::math::var  val 
) const
overridevirtual

Implements ana::StanFitSupport< IFitVar >.

Definition at line 86 of file FitVars.cxx.

References M_PI, and osc::_IOscCalcAdjustable< T >::SetdCP().

87  {
88  osc->SetdCP(M_PI*val);
89  }
#define M_PI
Definition: SbMath.h:34
virtual void SetdCP(const T &dCP)=0
const std::string& ana::IFitVar::ShortName ( ) const
inlineinherited

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