GaussianConstraint.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "CAFAna/Core/IFitVar.h"
5 
6 #include <memory>
7 
8 namespace ana
9 {
10  /// A simple Gaussian constraint on an arbitrary IFitVar
12  {
13  public:
14  GaussianConstraint(const IFitVar* var, double mean, double sigma)
15  : fVar(var), fMean(mean), fSigma(sigma)
16  {
17  }
18 
19  virtual double ChiSq(osc::IOscCalcAdjustable* osc,
20  const SystShifts& shift = SystShifts::Nominal()) const override;
21 
22  protected:
23  const IFitVar* fVar;
24  double fMean, fSigma;
25  };
26 
27 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
A simple Gaussian constraint on an arbitrary IFitVar.
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:20
static SystShifts Nominal()
Definition: SystShifts.h:34
Oscillation probability calculators.
Definition: Calcs.h:5
double sigma(TH1F *hist, double percentile)
GaussianConstraint(const IFitVar *var, double mean, double sigma)
Base class defining interface for experiments.
Definition: IExperiment.h:14
Interface definition for fittable variables.
Definition: IFitVar.h:16
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &shift=SystShifts::Nominal()) const override