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

#include <CalcsNuFit_cdr.h>

Inheritance diagram for ana::NuFitPenalizerCDR:
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 47 of file CalcsNuFit_cdr.h.

Member Function Documentation

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

Implements ana::IExperiment.

Definition at line 101 of file CalcsNuFit_cdr.cxx.

103  {
104  double ret =
105  util::sqr((calc->GetDmsq21() - kNuFitDmsq21CV)/kNuFitDmsq21Err) +
106  util::sqr((calc->GetTh12() - kNuFitTh12CV)/kNuFitTh12Err);
107 
108  if(calc->GetDmsq32() > 0){
109  ret +=
110  util::sqr((calc->GetDmsq32() - kNuFitDmsq32CVNH)/kNuFitDmsq32ErrNH) +
111  util::sqr((calc->GetTh23() - kNuFitTh23CVNH)/kNuFitTh23ErrNH) +
112  util::sqr((calc->GetTh13() - kNuFitTh13CVNH)/kNuFitTh13ErrNH);
113  }
114  else{
115  ret +=
116  util::sqr((calc->GetDmsq32() - kNuFitDmsq32CVIH)/kNuFitDmsq32ErrIH) +
117  util::sqr((calc->GetTh23() - kNuFitTh23CVIH)/kNuFitTh23ErrIH) +
118  util::sqr((calc->GetTh13() - kNuFitTh13CVIH)/kNuFitTh13ErrIH);
119  }
120 
121  // No term in delta
122 
123  return ret;
124  }
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: