#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-15/CAFAna/Fit/ISurface.h"
Public Member Functions | |
ISurface () | |
virtual | ~ISurface () |
double | BestLikelihood () const |
double | GetBestFitX () const |
double | GetBestFitY () const |
void | Draw () const |
Draw the surface itself. More... | |
void | DrawBestFit (Color_t color, Int_t marker=kFullCircle) const |
Draw the best fit point. More... | |
void | DrawContour (TH2 *fc, Style_t style, Color_t color, double minchi=-1) |
std::vector< TGraph * > | GetGraphs (TH2 *fc, double minchi=-1) |
For expert use, custom painting of contours. More... | |
TH2 * | ToTH2 (double minchi=-1) const |
void | SetTitle (const char *str) |
Protected Member Functions | |
double | BinCenterX (int bin) const |
double | BinCenterY (int bin) const |
void | SaveToHelper (TDirectory *dir) const |
dir should already be the appropriate sub-directory More... | |
void | EnsureAxes () const |
void | CheckMask (const std::string &func) const |
Static Protected Member Functions | |
static void | FillSurfObj (ISurface &surf, TDirectory *dir) |
Protected Attributes | |
double | fBestLikelihood |
double | fBestFitX |
double | fBestFitY |
TH2F * | fHist |
bool | fLogX |
bool | fLogY |
std::vector< double > | fSeedValues |
std::vector< int > | fBinMask |
Friends | |
TH2 * | Flat (double, const ISurface &) |
Helper function for the gaussian approximation surfaces. More... | |
Definition at line 17 of file ISurface.h.
|
inline |
Definition at line 20 of file ISurface.h.
|
inlinevirtual |
Definition at line 27 of file ISurface.h.
|
inline |
|
protected |
Definition at line 265 of file ISurface.cxx.
References visualisationForPaperMasterPlot::ax, fHist, and fLogX.
Referenced by ana::BayesianSurface::BuildHist(), EnsureAxes(), ana::FrequentistSurface::FillSurface(), ana::FrequentistSurface::FindMinimum(), and GetBestFitY().
|
protected |
Definition at line 272 of file ISurface.cxx.
References visualisationForPaperMasterPlot::ax, fHist, and fLogY.
Referenced by ana::BayesianSurface::BuildHist(), EnsureAxes(), ana::FrequentistSurface::FillSurface(), ana::FrequentistSurface::FindMinimum(), and GetBestFitY().
|
protected |
Definition at line 279 of file ISurface.cxx.
References om::cout, allTimeWatchdog::endl, and fBinMask.
Referenced by DrawBestFit(), DrawContour(), and GetGraphs().
void ana::ISurface::Draw | ( | ) | const |
Draw the surface itself.
Definition at line 21 of file ISurface.cxx.
References EnsureAxes(), and fHist.
Referenced by cc(), demo5(), GetBestFitY(), modularextrap_demo_nue(), modularextrap_demo_numu(), Plot2DSlices(), plot_3flavor_withsysts(), test_ana(), test_stanfit_statsonly(), test_stanfit_withsysts(), and test_surf_stride().
void ana::ISurface::DrawBestFit | ( | Color_t | color, |
Int_t | marker = kFullCircle |
||
) | const |
Draw the best fit point.
Definition at line 37 of file ISurface.cxx.
References CheckMask(), EnsureAxes(), fBestFitX, and fBestFitY.
Referenced by cc(), demo5(), demo_CPT(), drawSensitivity(), GetBestFitY(), getSensitivity(), make_contours(), modularextrap_demo_nue(), modularextrap_demo_numu(), Plot2DSlices(), plot_3flavor_withsysts(), starPlot(), syst_test(), template_basic(), template_GENIE_systs(), template_nonGENIE_systs(), test_ana(), test_stanfit_statsonly(), and test_stanfit_withsysts().
void ana::ISurface::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 | ![]() |
Definition at line 50 of file ISurface.cxx.
References CheckMask(), EnsureAxes(), MECModelEnuComparisons::g, GetGraphs(), and APDGainPoints::gs.
Referenced by cc(), demo5(), Draw2DSurface(), DrawContours(), drawSensitivity(), GetBestFitY(), getSensitivity(), make_contours(), make_nom_expt(), modularextrap_demo_nue(), modularextrap_demo_numu(), Plot2DSlice(), Plot2DSlices(), plot_3flavor_withsysts(), plotContProf(), plots(), starPlot(), syst_test(), template_basic(), template_GENIE_systs(), template_nonGENIE_systs(), test_ana(), test_stanfit_statsonly(), and test_stanfit_withsysts().
|
protected |
Definition at line 70 of file ISurface.cxx.
References visualisationForPaperMasterPlot::ax, file_size_ana::axes, BinCenterX(), BinCenterY(), fHist, fLogX, fLogY, genie::utils::style::Format(), and ana::UniqueName().
Referenced by Draw(), DrawBestFit(), and DrawContour().
Definition at line 229 of file ISurface.cxx.
References fBestFitX, fBestFitY, fBestLikelihood, fBinMask, fHist, fSeedValues, compare_h5_caf::idx, m, and registry_explorer::v.
Referenced by GetBestFitY(), ana::BayesianSurface::LoadFrom(), and ana::FrequentistSurface::LoadFrom().
|
inline |
Definition at line 30 of file ISurface.h.
References fBestFitX.
Referenced by test_stanfit_statsonly().
|
inline |
Definition at line 31 of file ISurface.h.
References bin, BinCenterX(), BinCenterY(), plot_validation_datamc_2018::color, dir, Draw(), DrawBestFit(), DrawContour(), fBestFitY, FillSurfObj(), Flat, GetGraphs(), SaveToHelper(), SetTitle(), submit_syst::str, demo5::surf, and ToTH2().
Referenced by test_stanfit_statsonly().
std::vector< TGraph * > ana::ISurface::GetGraphs | ( | TH2 * | fc, |
double | minchi = -1 |
||
) |
For expert use, custom painting of contours.
Definition at line 113 of file ISurface.cxx.
References CheckMask(), fBestLikelihood, fHist, runNovaSAM::ret, PandAna.Demos.tute_pid_validation::specs, demo5::surf, tmp, and ana::UniqueName().
Referenced by DrawContour(), and GetBestFitY().
|
protected |
dir should already be the appropriate sub-directory
Definition at line 198 of file ISurface.cxx.
References fBestFitX, fBestFitY, fBestLikelihood, fBinMask, fHist, fLogX, fLogY, fSeedValues, m, tmp, and registry_explorer::v.
Referenced by GetBestFitY(), ana::BayesianSurface::SaveTo(), and ana::FrequentistSurface::SaveTo().
void ana::ISurface::SetTitle | ( | const char * | str | ) |
Definition at line 192 of file ISurface.cxx.
References fHist.
Referenced by GetBestFitY(), and plots().
TH2 * ana::ISurface::ToTH2 | ( | double | minchi = -1 | ) | const |
Definition at line 170 of file ISurface.cxx.
References fBestLikelihood, fHist, runNovaSAM::ret, submit_syst::x, and submit_syst::y.
Referenced by CAF_makeCAFSensitivities_for_FNEX(), demoFitContours(), GetBestFitY(), joint_fit_2017_contours(), joint_fit_2018_contours(), joint_fit_2019_contours(), joint_fit_future_contour_univ(), ana::FrequentistSurface::LoadFromMulti(), MakeCAFSensitivities_for_FNEX(), Plot2DSlice(), Plot2DSlices(), plot_3flavor_withsysts(), run_joint_fit_2020_contours(), sensitivity2018(), sensitivity2020(), and test_stanfit_withsysts().
|
friend |
Helper function for the gaussian approximation surfaces.
Definition at line 253 of file ISurface.cxx.
Referenced by ana::Gaussian2Sigma1D(), ana::Gaussian2Sigma2D(), ana::Gaussian3Sigma1D(), ana::Gaussian3Sigma2D(), ana::Gaussian68Percent1D(), ana::Gaussian68Percent2D(), ana::Gaussian90Percent1D(), ana::Gaussian90Percent2D(), ana::Gaussian95Percent1D(), ana::Gaussian95Percent2D(), ana::Gaussian99Percent1D(), ana::Gaussian99Percent2D(), GetBestFitY(), and ana::BayesianSurface::QuantileSurface().
|
protected |
Definition at line 66 of file ISurface.h.
Referenced by ana::BayesianSurface::BuildHist(), DrawBestFit(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), GetBestFitX(), and SaveToHelper().
|
protected |
Definition at line 67 of file ISurface.h.
Referenced by ana::BayesianSurface::BuildHist(), DrawBestFit(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), GetBestFitY(), and SaveToHelper().
|
protected |
Definition at line 65 of file ISurface.h.
Referenced by BestLikelihood(), ana::BayesianSurface::BuildHist(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), GetGraphs(), ana::FrequentistSurface::LoadFromMulti(), SaveToHelper(), and ToTH2().
|
protected |
Definition at line 71 of file ISurface.h.
Referenced by CheckMask(), ana::FrequentistSurface::FillSurface(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), ana::FrequentistSurface::LoadFromMulti(), and SaveToHelper().
|
protected |
Definition at line 68 of file ISurface.h.
Referenced by BinCenterX(), BinCenterY(), ana::BayesianSurface::BuildHist(), ana::FrequentistSurface::CreateHistograms(), Draw(), EnsureAxes(), ana::FrequentistSurface::FillSurface(), ana::FrequentistSurface::FillSurfacePoint(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), ana::Flat(), GetGraphs(), ana::BayesianSurface::QuantileSurface(), SaveToHelper(), SetTitle(), and ToTH2().
|
protected |
Definition at line 69 of file ISurface.h.
Referenced by ana::BayesianSurface::BayesianSurface(), BinCenterX(), ana::BayesianSurface::BuildHist(), EnsureAxes(), ana::FrequentistSurface::FrequentistSurface(), and SaveToHelper().
|
protected |
Definition at line 69 of file ISurface.h.
Referenced by ana::BayesianSurface::BayesianSurface(), BinCenterY(), ana::BayesianSurface::BuildHist(), EnsureAxes(), ana::FrequentistSurface::FrequentistSurface(), and SaveToHelper().
|
protected |
Definition at line 70 of file ISurface.h.
Referenced by ana::FrequentistSurface::FillSurfacePoint(), FillSurfObj(), ana::FrequentistSurface::FindMinimum(), ana::FrequentistSurface::FrequentistSurface(), and SaveToHelper().