Public Member Functions | Private Attributes | List of all members
ana::FitDeltaCPT Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/Vars/FitVarsCPT.h"

Inheritance diagram for ana::FitDeltaCPT:
ana::IFitVar

Public Member Functions

 FitDeltaCPT (SigmaDelta *sd)
 
double GetValue (const osc::IOscCalcAdjustable *osc) const override
 
void SetValue (osc::IOscCalcAdjustable *osc, double val) const override
 
double Penalty (double val, osc::IOscCalcAdjustable *) const override
 
const std::stringShortName () const
 
const std::stringLatexName () const
 

Private Attributes

SigmaDeltafSigDel
 

Detailed Description

A FitVar that acts like fXvar-fYvar for members of its helper SigmaDelta. Changing a FitDeltaCPT tries to maintain the associated FitSigmaCPT, but if constraints prevent this, only FitDelta is maintained

Definition at line 298 of file FitVarsCPT.h.

Constructor & Destructor Documentation

ana::FitDeltaCPT::FitDeltaCPT ( SigmaDelta sd)
inline

Definition at line 301 of file FitVarsCPT.h.

302  : IFitVar(sd->fXvar.ShortName() + "_minus_" + sd->fYvar.ShortName(),
303  sd->fXvar.LatexName() + "-" + sd->fYvar.LatexName()),
304  fSigDel{sd}
305  {}
IFitVar(std::string shortName, std::string latexName)
Definition: IFitVar.h:19
double sd(Eigen::VectorXd x)
SigmaDelta * fSigDel
Definition: FitVarsCPT.h:313

Member Function Documentation

double ana::FitDeltaCPT::GetValue ( const osc::IOscCalcAdjustable osc) const
inlineoverridevirtual

Implements ana::IFitVar.

Definition at line 306 of file FitVarsCPT.h.

307  { return fSigDel->GetDelta(osc); }
double GetDelta(const osc::IOscCalcAdjustable *osc) const
Definition: FitVarsCPT.cxx:120
SigmaDelta * fSigDel
Definition: FitVarsCPT.h:313
const std::string& ana::IFitVar::LatexName ( ) const
inlineinherited
double ana::FitDeltaCPT::Penalty ( double  val,
osc::IOscCalcAdjustable  
) const
inlineoverridevirtual

Reimplemented from ana::IFitVar.

Definition at line 310 of file FitVarsCPT.h.

311  { return fSigDel->DeltaPenalty(val); }
double DeltaPenalty(double val) const
Definition: FitVarsCPT.cxx:137
SigmaDelta * fSigDel
Definition: FitVarsCPT.h:313
void ana::FitDeltaCPT::SetValue ( osc::IOscCalcAdjustable osc,
double  val 
) const
inlineoverridevirtual

Implements ana::IFitVar.

Definition at line 308 of file FitVarsCPT.h.

309  { fSigDel->SetDelta(osc, val); }
void SetDelta(osc::IOscCalcAdjustable *osc, double val)
Definition: FitVarsCPT.cxx:130
SigmaDelta * fSigDel
Definition: FitVarsCPT.h:313
const std::string& ana::IFitVar::ShortName ( ) const
inlineinherited

Member Data Documentation

SigmaDelta* ana::FitDeltaCPT::fSigDel
private

Definition at line 313 of file FitVarsCPT.h.


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