Public Member Functions | Protected Attributes | List of all members
ana::Ssth23Constraint Class Reference

Simple Gaussian constraints on sin^2 th23. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/CAFAna/Experiment/Ssth23Constraint.h"

Inheritance diagram for ana::Ssth23Constraint:
ana::IExperiment

Public Member Functions

 Ssth23Constraint (double meanA, double sigmaA, double meanB, double sigmaB)
 
 Ssth23Constraint (double meanA, double sigmaAPlu, double sigmaAMin, double meanB, double sigmaBPlu, double sigmaBMin)
 
 Ssth23Constraint (double mean, double sigmaPlu, double sigmaMin)
 
virtual double ChiSq (osc::IOscCalcAdjustable *osc, const SystShifts &shift=SystShifts::Nominal()) const override
 
virtual stan::math::var LogLikelihood (osc::IOscCalcAdjustableStan *osc, const SystShifts &syst=kNoShift) const
 
virtual void SaveTo (TDirectory *dir, const std::string &name) const
 

Protected Attributes

double fMeanA
 
double fSigmaAPlu
 
double fSigmaAMin
 
double fMeanB
 
double fSigmaBPlu
 
double fSigmaBMin
 

Detailed Description

Simple Gaussian constraints on sin^2 th23.

Definition at line 8 of file Ssth23Constraint.h.

Constructor & Destructor Documentation

ana::Ssth23Constraint::Ssth23Constraint ( double  meanA,
double  sigmaA,
double  meanB,
double  sigmaB 
)
inline

Definition at line 11 of file Ssth23Constraint.h.

13  : fMeanA(meanA), fSigmaAPlu(sigmaA), fSigmaAMin(sigmaA),
14  fMeanB(meanB), fSigmaBPlu(sigmaB), fSigmaBMin(sigmaB)
15  {
16  }
ana::Ssth23Constraint::Ssth23Constraint ( double  meanA,
double  sigmaAPlu,
double  sigmaAMin,
double  meanB,
double  sigmaBPlu,
double  sigmaBMin 
)
inline

Definition at line 18 of file Ssth23Constraint.h.

20  : fMeanA(meanA), fSigmaAPlu(sigmaAPlu), fSigmaAMin(sigmaAMin),
21  fMeanB(meanB), fSigmaBPlu(sigmaBPlu), fSigmaBMin(sigmaBMin)
22  {
23  }
ana::Ssth23Constraint::Ssth23Constraint ( double  mean,
double  sigmaPlu,
double  sigmaMin 
)
inline

Definition at line 24 of file Ssth23Constraint.h.

References ChiSq(), and ana::SystShifts::Nominal().

Member Function Documentation

double ana::Ssth23Constraint::ChiSq ( osc::IOscCalcAdjustable osc,
const SystShifts shift = SystShifts::Nominal() 
) const
overridevirtual

Reimplemented from ana::IExperiment.

Definition at line 10 of file Ssth23Constraint.cxx.

References fMeanA, fMeanB, fSigmaAMin, fSigmaAPlu, fSigmaBMin, fSigmaBPlu, osc::_IOscCalcAdjustable< T >::GetTh23(), std::min(), std::sin(), util::sqr(), and ssth23.

Referenced by Ssth23Constraint().

12  {
13 
14  const double ssth23 = util::sqr(sin(osc->GetTh23()));
15 
16  double chiA,chiB;
17  if(ssth23<fMeanA) chiA = util::sqr((ssth23-fMeanA)/fSigmaAMin);
18  else chiA = util::sqr((ssth23-fMeanA)/fSigmaAPlu);
19 
20  if(ssth23<fMeanB) chiB = util::sqr((ssth23-fMeanB)/fSigmaBMin);
21  else chiB = util::sqr((ssth23-fMeanB)/fSigmaBPlu);
22 
23  return std::min(chiA,chiB);
24  }
double ssth23
virtual T GetTh23() const
Definition: IOscCalc.h:94
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
T sin(T number)
Definition: d0nt_math.hpp:132
T min(const caf::Proxy< T > &a, T b)
virtual stan::math::var ana::IExperiment::LogLikelihood ( osc::IOscCalcAdjustableStan osc,
const SystShifts syst = kNoShift 
) const
inlinevirtualinherited

Reimplemented in test::GaussQuadExperiment, ana::SingleSampleExperiment, and ana::MultiExperiment.

Definition at line 25 of file IExperiment.h.

References ana::assert(), dir, ana::IExperiment::SaveTo(), and string.

Referenced by ana::StanFitter::log_prob().

27  {
28  assert(false && "unimplemented");
29  return 0;
30  };
assert(nhit_max >=nhit_nbins)
void ana::IExperiment::SaveTo ( TDirectory *  dir,
const std::string name 
) const
virtualinherited

Reimplemented in ana::SingleSampleExperiment, ana::MultiExperiment, ana::CountingExperiment, ana::SolarConstraints, and ana::ReactorExperiment.

Definition at line 32 of file IExperiment.cxx.

References ana::assert().

Referenced by ana::IExperiment::LogLikelihood().

33  {
34  assert(0 && "Not implemented");
35  }
assert(nhit_max >=nhit_nbins)

Member Data Documentation

double ana::Ssth23Constraint::fMeanA
protected

Definition at line 35 of file Ssth23Constraint.h.

Referenced by ChiSq().

double ana::Ssth23Constraint::fMeanB
protected

Definition at line 36 of file Ssth23Constraint.h.

Referenced by ChiSq().

double ana::Ssth23Constraint::fSigmaAMin
protected

Definition at line 35 of file Ssth23Constraint.h.

Referenced by ChiSq().

double ana::Ssth23Constraint::fSigmaAPlu
protected

Definition at line 35 of file Ssth23Constraint.h.

Referenced by ChiSq().

double ana::Ssth23Constraint::fSigmaBMin
protected

Definition at line 36 of file Ssth23Constraint.h.

Referenced by ChiSq().

double ana::Ssth23Constraint::fSigmaBPlu
protected

Definition at line 36 of file Ssth23Constraint.h.

Referenced by ChiSq().


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