Dmsq32Constraint.cxx
Go to the documentation of this file.
2 
3 #include "OscLib/IOscCalc.h"
4 
5 #include "Utilities/func/MathUtil.h"
6 
7 namespace ana
8 {
9  //----------------------------------------------------------------------
11  const SystShifts& /*syst*/) const
12  {
13  const double dm = osc->GetDmsq32();
14 
15  if(dm > 0){
16  return util::sqr((dm-fMeanNH)/fSigmaNH);
17  }
18  else{
19  return util::sqr((fabs(dm)-fMeanIH)/fSigmaIH);
20  }
21  }
22 
23 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
fvar< T > fabs(const fvar< T > &x)
Definition: fabs.hpp:15
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:20
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
virtual T GetDmsq32() const
Definition: IOscCalc.h:86
Oscillation probability calculators.
Definition: Calcs.h:5
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &shift=SystShifts::Nominal()) const override