All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
Fit.h File Reference
#include "sbnana/CAFAna/Core/Spectrum.h"
#include "sbnana/CAFAna/Prediction/IPrediction.h"
#include "sbnana/CAFAna/Core/SystShifts.h"
#include "Math/Minimizer.h"
#include <memory>

Go to the source code of this file.

Classes

class  osc::_IOscCalcAdjustable< T >
 
class  ana::Fitter
 Perform MINUIT fits in one or two dimensions. More...
 
struct  ana::Fitter::SeedPt
 

Namespaces

 osc
 
 ana
 Oscillation analysis framework, runs over CAF files outside of ART.
 

Functions

double ana::SimpleFOM (const Spectrum &obs, const Spectrum &unosc, double pot=0)
 Figure-of-merit with no systematics, for binned data. More...
 
Fitter::Precision ana::operator| (Fitter::Precision a, Fitter::Precision b)
 
TH1 * ana::Profile (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar *v, int nbinsx, double minx, double maxx, double minchi=-1, const std::vector< const IFitVar * > &profVars={}, const std::vector< const ISyst * > &profSysts={}, const std::map< const IFitVar *, std::vector< double >> &seedPts={}, const std::vector< SystShifts > &systsSeedPts={}, std::map< const IFitVar *, TGraph * > &profVarsMap=empty_vars_map, std::map< const ISyst *, TGraph * > &systsMap=empty_syst_map)
 $\chi^2$ scan in one variable, profiling over all others More...
 
TH1 * ana::Profile (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const ISyst *s, int nbinsx, double minx, double maxx, double input_minchi, const std::vector< const IFitVar * > &profVars, const std::vector< const ISyst * > &profSysts, const std::map< const IFitVar *, std::vector< double >> &seedPts, const std::vector< SystShifts > &systSeedPts, std::map< const IFitVar *, TGraph * > &profVarsMap, std::map< const ISyst *, TGraph * > &profSystsMap)
 
TH1 * ana::SqrtProfile (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar *v, int nbinsx, double minx, double maxx, double minchi=-1, std::vector< const IFitVar * > profVars={}, std::vector< const ISyst * > profSysts={}, const std::map< const IFitVar *, std::vector< double >> &seedPts={}, const std::vector< SystShifts > &systsSeedPts={}, std::map< const IFitVar *, TGraph * > &profVarsMap=empty_vars_map, std::map< const ISyst *, TGraph * > &systsMap=empty_syst_map)
 Forward to Profile but sqrt the result for a crude significance. More...
 
TH1 * ana::SqrtProfile (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const ISyst *s, int nbinsx, double minx, double maxx, double minchi, std::vector< const IFitVar * > profVars, std::vector< const ISyst * > profSysts, const std::map< const IFitVar *, std::vector< double >> &seedPts, const std::vector< SystShifts > &systSeedPts, std::map< const IFitVar *, TGraph * > &profVarsMap, std::map< const ISyst *, TGraph * > &systsMap)
 
TH1 * ana::Slice (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar *v, int nbinsx, double minx, double maxx, double minchi=-1)
 $\chi^2$ scan in one variable, holding all others constant More...
 
TH1 * ana::Slice (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const ISyst *s, int nbinsx, double minx, double maxx, double minchi)
 
TH1 * ana::SqrtSlice (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar *v, int nbinsx, double minx, double maxx, double minchi=-1)
 Forward to Slice but sqrt the result for a crude significance. More...
 
TH1 * ana::SqrtSlice (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const ISyst *s, int nbinsx, double minx, double maxx, double minchi)
 
TGraph * ana::FindValley (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar &scanVar, const IFitVar &fitVar, int nbinsx, double xmin, double xmax, const std::vector< const IFitVar * > &profVars={}, const std::vector< const ISyst * > &profSysts={}, const std::map< const IFitVar *, std::vector< double >> &seedPts={}, const std::vector< SystShifts > &systsSeedPts={}, bool transpose=false)
 Find the minimum in one variable as a function of another. More...
 
std::vector< double > ana::FindCurveCrossings (TH1 *h, double critVal)
 Intended for use on the output of Profile. More...
 

Variables

static std::map< const IFitVar
*, TGraph * > 
ana::empty_vars_map
 
static std::map< const ISyst
*, TGraph * > 
ana::empty_syst_map