All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
Fit.cxx File Reference
#include "sbnana/CAFAna/Analysis/Fit.h"
#include "sbnana/CAFAna/Core/Progress.h"
#include "sbnana/CAFAna/Core/IFitVar.h"
#include "sbnana/CAFAna/Core/Utilities.h"
#include "sbnana/CAFAna/Experiment/IExperiment.h"
#include "sbnana/CAFAna/Analysis/GradientDescent.h"
#include "OscLib/IOscCalc.h"
#include "sbnana/CAFAna/Core/MathUtil.h"
#include "TError.h"
#include "TGraph.h"
#include "TH1.h"
#include "TMatrixDSym.h"
#include "Fit/Fitter.h"
#include "Math/Factory.h"
#include "Math/Functor.h"
#include <cassert>
#include <iostream>

Go to the source code of this file.

Namespaces

 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...
 
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...