All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianConstraint.h
Go to the documentation of this file.
1 #pragma once
2 
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 }
A simple Gaussian constraint on an arbitrary IFitVar.
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:16
process_name opflashCryoW ana
static SystShifts Nominal()
Definition: SystShifts.h:23
shift
Definition: fcl_checks.sh:26
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &shift=SystShifts::Nominal()) const override
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:13
GaussianConstraint(const IFitVar *var, double mean, double sigma)
Base class defining interface for experiments.
Definition: IExperiment.h:21
Interface definition for fittable variables.
Definition: IFitVar.h:14