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

$ \tan^2\theta_{12} $ More...

#include <FitVars.h>

Inheritance diagram for ana::FitTanSqTheta12:
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

$ \tan^2\theta_{12} $

Definition at line 148 of file FitVars.h.

Member Function Documentation

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

Implements ana::IFitVar.

Definition at line 118 of file FitVars.cxx.

119  {
120  return util::sqr(tan(osc->GetTh12()));
121  }
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
virtual double ana::FitTanSqTheta12::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 157 of file FitVars.h.

157 {return std::numeric_limits<double>::max();}
virtual std::string ana::FitTanSqTheta12::LatexName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 154 of file FitVars.h.

154 {return "tan^{2}#theta_{12}";}
virtual double ana::FitTanSqTheta12::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 156 of file FitVars.h.

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

Implements ana::IFitVar.

Definition at line 124 of file FitVars.cxx.

125  {
126  osc->SetTh12(atan(sqrt(Clamp(val))));
127  }
double Clamp(double val) const
Definition: IFitVar.cxx:31
virtual std::string ana::FitTanSqTheta12::ShortName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 153 of file FitVars.h.

153 {return "tsth12";}

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