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

$ \sin^22\theta_{34} $ More...

#include <FitVarsSterile.h>

Inheritance diagram for ana::FitSinSq2Theta34Sterile:
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^22\theta_{34} $

Definition at line 318 of file FitVarsSterile.h.

Member Function Documentation

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

Implements ana::IFitVar.

Definition at line 254 of file FitVarsSterile.cxx.

255  {
256  return util::sqr(sin(2*osc::DowncastToSterile(osc)->GetAngle(3,4)));
257  }
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
virtual double ana::FitSinSq2Theta34Sterile::HighLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 327 of file FitVarsSterile.h.

327 {return 1;}
virtual std::string ana::FitSinSq2Theta34Sterile::LatexName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 324 of file FitVarsSterile.h.

324 {return "sin^{2}2#theta_{34}";}
virtual double ana::FitSinSq2Theta34Sterile::LowLimit ( ) const
inlinevirtual

Implements ana::IConstrainedFitVar.

Definition at line 326 of file FitVarsSterile.h.

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

Implements ana::IFitVar.

Definition at line 260 of file FitVarsSterile.cxx.

261  {
262  osc::DowncastToSterile(osc)->SetAngle(3,4, asin(sqrt(Clamp(val)))/2);
263  }
double Clamp(double val) const
Definition: IFitVar.cxx:31
virtual std::string ana::FitSinSq2Theta34Sterile::ShortName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 323 of file FitVarsSterile.h.

323 {return "ss2th34";}

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