A simple Gaussian constraint on an arbitrary IFitVar. More...
Public Member Functions | |
GaussianConstraint (const IFitVar *var, double mean, double sigma) | |
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 | |
const IFitVar * | fVar |
double | fMean |
double | fSigma |
A simple Gaussian constraint on an arbitrary IFitVar.
Definition at line 11 of file GaussianConstraint.h.
|
inline |
Definition at line 14 of file GaussianConstraint.h.
References ChiSq(), and ana::SystShifts::Nominal().
|
overridevirtual |
Reimplemented from ana::IExperiment.
Definition at line 10 of file GaussianConstraint.cxx.
References fMean, fSigma, fVar, ana::IFitVar::GetValue(), and util::sqr().
Referenced by GaussianConstraint().
|
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().
|
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().
|
protected |
Definition at line 24 of file GaussianConstraint.h.
Referenced by ChiSq().
|
protected |
Definition at line 24 of file GaussianConstraint.h.
Referenced by ChiSq().
|
protected |
Definition at line 23 of file GaussianConstraint.h.
Referenced by ChiSq().