#include "CAFAna/Core/ISyst.h"
#include "CAFAna/Systs/XSecSystLists.h"
#include "CAFAna/Prediction/CovarianceMatrix.h"
#include "CAFAna/Analysis/Calcs.h"
#include "CAFAna/Analysis/Exposures.h"
#include "NuXAna/macros/Nus20/Utilities.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TRandom3.h"
#include "TText.h"
#include <fstream>
#include <algorithm>
Go to the source code of this file.
Functions | |
float | Gaus (float mean, float var, float x) |
void | DrawBins (IPrediction *pred, const ISyst *syst, TMatrixD mx, TVectorD vec, size_t nbins, std::ofstream &f, std::string det) |
void | DrawPulls (IPrediction *pred, const ISyst *syst, size_t nbins, std::ofstream &f, std::string det) |
void | DrawSystShifts () |
void | DrawBins (IPrediction *pred, double pot, const ISyst *syst, TMatrixD mx, TVectorD vec, size_t nbins, std::ofstream &f, std::string det) |
void | DrawPulls (IPrediction *pred, double pot, const ISyst *syst, size_t nbins, std::ofstream &f, std::string det) |
Variables | |
size_t | nPoints = 1001 |
std::vector< std::string > | one_d = { "AbsCalibShape", "Cherenkov", "XSecTune" } |
void DrawBins | ( | IPrediction * | pred, |
const ISyst * | syst, | ||
TMatrixD | mx, | ||
TVectorD | vec, | ||
size_t | nbins, | ||
std::ofstream & | f, | ||
std::string | det | ||
) |
Referenced by DrawSystShifts(), and Gaus().
void DrawBins | ( | IPrediction * | pred, |
double | pot, | ||
const ISyst * | syst, | ||
TMatrixD | mx, | ||
TVectorD | vec, | ||
size_t | nbins, | ||
std::ofstream & | f, | ||
std::string | det | ||
) |
Definition at line 124 of file DrawSystShifts.C.
References ana::bins, plot_validation_datamc::c, calc, om::cout, ana::DefaultSterileCalc(), allTimeWatchdog::endl, stan::math::fabs(), Fill(), check_time_usage::float, stan::math::floor(), Gaus(), GetSystBaseName(), GetXaxis(), MECModelEnuComparisons::graphs, make_syst_table_plots::h, MECModelEnuComparisons::i, Integral(), calib::j, kRed, nbins, norm, nPoints, one_d, allInOneTrainingPlots::pad, ana::IPrediction::Predict(), ana::IPrediction::PredictSyst(), generate_hists::rnd, SetNus20Params(), ana::SystShifts::SetShift(), ana::ISyst::ShortName(), std::sqrt(), string, confusionMatrixTree::t, tmp, ana::Spectrum::ToTH1(), submit_syst::x, x1, submit_syst::y, and y1.
void DrawPulls | ( | IPrediction * | pred, |
const ISyst * | syst, | ||
size_t | nbins, | ||
std::ofstream & | f, | ||
std::string | det | ||
) |
Referenced by DrawSystShifts(), and Gaus().
void DrawPulls | ( | IPrediction * | pred, |
double | pot, | ||
const ISyst * | syst, | ||
size_t | nbins, | ||
std::ofstream & | f, | ||
std::string | det | ||
) |
Definition at line 247 of file DrawSystShifts.C.
References plot_validation_datamc::c, calc, ana::DefaultSterileCalc(), check_time_usage::float, stan::math::floor(), GetSystBaseName(), MECModelEnuComparisons::graphs, make_syst_table_plots::h, MECModelEnuComparisons::i, calib::j, nbins, nPoints, allInOneTrainingPlots::pad, ana::IPrediction::Predict(), ana::IPrediction::PredictSyst(), SetNus20Params(), ana::SystShifts::SetShift(), ana::ISyst::ShortName(), string, ana::Spectrum::ToTH1(), submit_syst::x, x1, submit_syst::y, and y1.
void DrawSystShifts | ( | ) |
Definition at line 37 of file DrawSystShifts.C.
References calc, ana::DefaultSterileCalc(), DrawBins(), DrawPulls(), ana::FindCAFAnaDir(), ana::getAllXsecSysts_2018(), GetMatrices(), GetSystBaseName(), MECModelEnuComparisons::i, ana::kAna2018FHCPOT, ana::kAna2018SensitivityFHCNDPOT, ana::kNCFDBinning, ana::kNCNDBinning, kNusFHCFarDet(), kNusFHCNearDet(), ana::kUseCVMFS, LoadPrediction(), ana::Binning::NBins(), ana::IPrediction::Predict(), SetNus20Params(), ana::ISyst::ShortName(), string, and ana::Spectrum::ToTH1().
float Gaus | ( | float | mean, |
float | var, | ||
float | x | ||
) |
Definition at line 23 of file DrawSystShifts.C.
References fillBadChanDBTables::det, DrawBins(), DrawPulls(), stan::math::exp(), MakeMiniprodValidationCuts::f, M_PI, nbins, norm, cet::pow(), plot_validation_datamc::pred, std::sqrt(), and string.
Referenced by DrawBins().
size_t nPoints = 1001 |
Definition at line 34 of file DrawSystShifts.C.
Referenced by DrawBins(), DrawCCOscillations(), DrawPulls(), cosrej::CosRejFxs::FScatterEstim(), and Toy_analyses().
std::vector<std::string> one_d = { "AbsCalibShape", "Cherenkov", "XSecTune" } |
Definition at line 35 of file DrawSystShifts.C.
Referenced by DrawBins().