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

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

#include <FitVars.h>

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

Detailed Description

$ \delta_{CP}/\pi $

Definition at line 43 of file FitVars.h.

Member Function Documentation

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

Implements ana::IFitVar.

Definition at line 36 of file FitVars.cxx.

37  {
38  double ret = osc->GetdCP()/M_PI;
39 
40  // convert to the range 0-2
41  long long int a = ret/2+1;
42  ret -= 2*a;
43  // Instead of figuring out all the rounding just nudge the last little bit
44  while(ret < 0) ret += 2;
45  while(ret > 2) ret -= 2;
46 
47  return ret;
48  }
process_name gaushit a
virtual std::string ana::FitDeltaInPiUnits::LatexName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 49 of file FitVars.h.

49 {return "#delta / #pi";}
void ana::FitDeltaInPiUnits::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
virtual

Implements ana::IFitVar.

Definition at line 51 of file FitVars.cxx.

52  {
53  osc->SetdCP(M_PI*val);
54  }
virtual std::string ana::FitDeltaInPiUnits::ShortName ( ) const
inlinevirtual

Implements ana::IFitVar.

Definition at line 48 of file FitVars.h.

48 {return "delta(pi)";}

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