All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ana::FitSinSqTheta14Sterile Class Reference

$ \sin^2\theta_{14} $ More...

#include <FitVarsSterile.h>

Inheritance diagram for ana::FitSinSqTheta14Sterile:
ana::IConstrainedFitVar 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
 
- Public Member Functions inherited from ana::IConstrainedFitVar
virtual double Penalty (double val, osc::IOscCalcAdjustable *) const
 

Additional Inherited Members

- Protected Member Functions inherited from ana::IConstrainedFitVar
double Clamp (double val) const
 

Detailed Description

$ \sin^2\theta_{14} $

Definition at line 191 of file FitVarsSterile.h.

Member Function Documentation

double ana::FitSinSqTheta14Sterile::GetValue ( const osc::IOscCalcAdjustable osc) const
virtual

Implements ana::IFitVar.

Definition at line 170 of file FitVarsSterile.cxx.

171  {
172  return util::sqr(sin(osc::DowncastToSterile(osc)->GetAngle(1,4)));
173  }
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
virtual double ana::FitSinSqTheta14Sterile::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 200 of file FitVarsSterile.h.

200 {return 1;}
virtual std::string ana::FitSinSqTheta14Sterile::LatexName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 197 of file FitVarsSterile.h.

197 {return "sin^{2}#theta_{14}";}
virtual double ana::FitSinSqTheta14Sterile::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 199 of file FitVarsSterile.h.

199 {return 0;}
void ana::FitSinSqTheta14Sterile::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
virtual

Implements ana::IFitVar.

Definition at line 176 of file FitVarsSterile.cxx.

177  {
178  osc::DowncastToSterile(osc)->SetAngle(1, 4, asin(sqrt(Clamp(val))));
179  }
double Clamp(double val) const
Definition: IFitVar.cxx:31
virtual std::string ana::FitSinSqTheta14Sterile::ShortName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 196 of file FitVarsSterile.h.

196 {return "ssth14";}

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