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

#include <CalcsNuFit.h>

Inheritance diagram for ana::NuFitPenalizer:
ana::IExperiment

Public Member Functions

double ChiSq (osc::IOscCalcAdjustable *calc, const SystShifts &syst=SystShifts::Nominal()) const override
 
- Public Member Functions inherited from ana::IExperiment
virtual ~IExperiment ()
 
virtual void SaveTo (TDirectory *dir) const
 

Detailed Description

Definition at line 55 of file CalcsNuFit.h.

Member Function Documentation

double ana::NuFitPenalizer::ChiSq ( osc::IOscCalcAdjustable calc,
const SystShifts syst = SystShifts::Nominal() 
) const
overridevirtual

Implements ana::IExperiment.

Definition at line 126 of file CalcsNuFit.cxx.

128  {
129  double ret =
130  util::sqr((calc->GetDmsq21() - kNuFitDmsq21CV)/kNuFitDmsq21Err) +
131  util::sqr((calc->GetTh12() - kNuFitTh12CV)/kNuFitTh12Err);
132 
133  if(calc->GetDmsq32() > 0){
134  ret +=
135  util::sqr((calc->GetDmsq32() - kNuFitDmsq32CVNH)/kNuFitDmsq32ErrNH) +
136  util::sqr((calc->GetTh23() - kNuFitTh23CVNH)/kNuFitTh23ErrNH) +
137  util::sqr((calc->GetTh13() - kNuFitTh13CVNH)/kNuFitTh13ErrNH);
138  }
139  else{
140  ret +=
141  util::sqr((calc->GetDmsq32() - kNuFitDmsq32CVIH)/kNuFitDmsq32ErrIH) +
142  util::sqr((calc->GetTh23() - kNuFitTh23CVIH)/kNuFitTh23ErrIH) +
143  util::sqr((calc->GetTh13() - kNuFitTh13CVIH)/kNuFitTh13ErrIH);
144  }
145 
146  // No term in delta
147 
148  return ret;
149  }
const double kNuFitDmsq32ErrNH
Definition: CalcsNuFit.h:32
const double kNuFitTh23ErrIH
Definition: CalcsNuFit.h:37
const double kNuFitDmsq32ErrIH
Definition: CalcsNuFit.h:36
const double kNuFitTh12Err
Definition: CalcsNuFit.h:30
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
const double kNuFitDmsq32CVIH
Definition: CalcsNuFit.h:23
const double kNuFitTh23CVIH
Definition: CalcsNuFit.h:24
const double kNuFitTh23CVNH
Definition: CalcsNuFit.h:19
const double kNuFitTh13ErrIH
Definition: CalcsNuFit.h:38
const double kNuFitDmsq21Err
Definition: CalcsNuFit.h:29
const double kNuFitDmsq21CV
Definition: CalcsNuFit.h:14
const double kNuFitTh13CVIH
Definition: CalcsNuFit.h:25
const double kNuFitDmsq32CVNH
Definition: CalcsNuFit.h:18
const double kNuFitTh23ErrNH
Definition: CalcsNuFit.h:33
const double kNuFitTh13ErrNH
Definition: CalcsNuFit.h:34
const double kNuFitTh12CV
Definition: CalcsNuFit.h:15
const double kNuFitTh13CVNH
Definition: CalcsNuFit.h:20

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