Log-likelihood scan across two parameters. More...
#include <Surface.h>
Public Member Functions | |
Surface (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const IFitVar *xvar, int nbinsx, double xmin, double xmax, const IFitVar *yvar, int nbinsy, double ymin, double ymax, 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={}, bool parallel=false, Fitter::Precision prec=Fitter::kNormal) | |
Surface (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const FitAxis &xax, const FitAxis &yax, 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={}, bool parallel=false, Fitter::Precision prec=Fitter::kNormal) | |
void | Draw () const |
Draw the surface itself. More... | |
void | DrawBestFit (Color_t color, Int_t marker=kFullCircle) const |
Draw the best fit point. More... | |
double | MinChi () const |
double | GetMinX () const |
double | GetMinY () const |
void | DrawContour (TH2 *fc, Style_t style, Color_t color, double minchi=-1) |
TH2F * | ToTH2 (double minchi=-1) const |
void | SetTitle (const char *str) |
std::vector< TH2 * > | GetProfiledHists () |
Maps of the values taken on by the profiled parameters. More... | |
std::vector< TH2 * > | GetMarginalizedHists () |
Deprecated. Retained for backwards compatibility. More... | |
std::vector< TGraph * > | GetGraphs (TH2 *fc, double minchi=-1) |
For expert use, custom painting of contours. More... | |
void | SaveTo (TDirectory *dir) const |
Static Public Member Functions | |
static std::unique_ptr< Surface > | LoadFrom (TDirectory *dir) |
static std::unique_ptr< Surface > | LoadFromMulti (const std::vector< TFile * > &files, const std::string &label) |
static std::unique_ptr< Surface > | LoadFromMulti (const std::string &wildcard, const std::string &label) |
Protected Member Functions | |
Surface () | |
void | EnsureAxes () const |
void | CheckMask (const std::string &func) const |
void | FillSurface (const std::string &progTitle, const IExperiment *expt, osc::IOscCalcAdjustable *calc, const FitAxis &xax, const FitAxis &yax, 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) |
void | FillSurfacePoint (const IExperiment *expt, osc::IOscCalcAdjustable *calc, const FitAxis &xax, double x, const FitAxis &yax, double y, 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) |
Protected Attributes | |
bool | fParallel |
Fitter::Precision | fPrec |
double | fMinChi |
double | fMinX |
double | fMinY |
TH2F * | fHist |
bool | fLogX |
bool | fLogY |
std::vector< TH2 * > | fProfHists |
std::vector< double > | fSeedValues |
std::vector< int > | fBinMask |
Friends | |
class | MedianSurface |
Log-likelihood scan across two parameters.
Definition at line 26 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
ana::Surface::Surface | ( | const IExperiment * | expt, |
osc::IOscCalcAdjustable * | calc, | ||
const IFitVar * | xvar, | ||
int | nbinsx, | ||
double | xmin, | ||
double | xmax, | ||
const IFitVar * | yvar, | ||
int | nbinsy, | ||
double | ymin, | ||
double | ymax, | ||
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 = {} , |
||
bool | parallel = false , |
||
Fitter::Precision | prec = Fitter::kNormal |
||
) |
expt | The experiment object to draw values from |
calc | Values for oscillation parameters to be held fixed |
xvar | Oscillation parameter to place on the x axis |
nbinsx | Number of bins along x axis |
xmin | Minimum value of x axis |
xmax | Maximum value of x axis |
nbinsy | Number of bins along y axis |
ymin | Minimum value of y axis |
ymax | Maximum value of y axis |
profVars | Oscillation parameters to profile over |
profSysts | Systematic parameters to profile over |
seedPts | Try all combinations of these params as seeds |
systSeedPts | Try all of these systematic combinations as seeds |
parallel | Use all the cores on this machine? Be careful... |
Definition at line 127 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
ana::Surface::Surface | ( | const IExperiment * | expt, |
osc::IOscCalcAdjustable * | calc, | ||
const FitAxis & | xax, | ||
const FitAxis & | yax, | ||
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 = {} , |
||
bool | parallel = false , |
||
Fitter::Precision | prec = Fitter::kNormal |
||
) |
expt | The experiment object to draw values from |
calc | Values for oscillation parameters to be held fixed |
xax | A FitAxis for the first variable |
yax | A FitAxis for the second variable |
profVars | Oscillation parameters to profile over |
profSysts | Systematic parameters to profile over |
seedPts | Try all combinations of these params as seeds |
systSeedPts | Try all of these systematic combinations as seeds |
parallel | Use all the cores on this machine? Be careful... |
Definition at line 38 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
inlineprotected |
Definition at line 109 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 718 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
void ana::Surface::Draw | ( | ) | const |
Draw the surface itself.
Definition at line 397 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
void ana::Surface::DrawBestFit | ( | Color_t | color, |
Int_t | marker = kFullCircle |
||
) | const |
Draw the best fit point.
Definition at line 410 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
void ana::Surface::DrawContour | ( | TH2 * | fc, |
Style_t | style, | ||
Color_t | color, | ||
double | minchi = -1 |
||
) |
fc | Surface to compare against for this significance level |
style | Line style for TAttLine, solid, dotted, dashed etc |
color | Line color for TAttLine |
minchi | of best fit to compare against. Default: best fit from this surface. |
Definition at line 480 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
protected |
Definition at line 342 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
protected |
Definition at line 145 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
protected |
Definition at line 291 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
std::vector< TGraph * > ana::Surface::GetGraphs | ( | TH2 * | fc, |
double | minchi = -1 |
||
) |
For expert use, custom painting of contours.
Definition at line 423 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
inline |
Deprecated. Retained for backwards compatibility.
Definition at line 98 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
inline |
Definition at line 82 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
inline |
Definition at line 83 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
inline |
Maps of the values taken on by the profiled parameters.
Definition at line 96 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
static |
Definition at line 597 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
static |
Definition at line 640 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
static |
Definition at line 705 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
inline |
Definition at line 81 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
void ana::Surface::SaveTo | ( | TDirectory * | dir | ) | const |
Definition at line 559 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
void ana::Surface::SetTitle | ( | const char * | str | ) |
Definition at line 518 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
TH2F * ana::Surface::ToTH2 | ( | double | minchi = -1 | ) | const |
Definition at line 499 of file sbnana/sbnana/CAFAna/Analysis/Surface.cxx.
|
friend |
Definition at line 29 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 141 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 137 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 138 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 138 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 135 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 136 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 136 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 132 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 133 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 139 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.
|
protected |
Definition at line 140 of file sbnana/sbnana/CAFAna/Analysis/Surface.h.