#include <sstream>
#include <iomanip>
#include <fstream>
#include "TCanvas.h"
#include "TH1.h"
#include "TF1.h"
#include "TFile.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TArrayD.h"
#include "TAxis.h"
#include "TLatex.h"
#include "TStyle.h"
#include "TLine.h"
#include "TProfile.h"
#include "CAFAna/Core/Cut.h"
#include "CAFAna/Core/LoadFromFile.h"
#include "CAFAna/Cuts/NueCutsFirstAna.h"
#include "3FlavorAna/Plotting/NuePlotStyle.h"
#include "CAFAna/Analysis/Plots.h"
#include "CAFAna/Analysis/Style.h"
#include "CAFAna/Core/SpectrumLoader.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Vars/Vars.h"
#include "CAFAna/Vars/GenieWeights.h"
#include "StandardRecord/Proxy/SRProxy.h"
#include "/nova/app/users/grohmc/pi_S18-02-09/CAFAna/nue/pi0xcheck/make_pi0_xcheck.h"
Go to the source code of this file.
Functions | |
void | Preliminary () |
void | legend (TH1 *data, TH1 *mc, TH1 *bkgd, double x1=0.58, double y1=0.64, double x2=0.86, double y2=0.84, bool isData=1) |
void | HCtag (TString tag, double pot, double size=0.8) |
void | tex (std::string str) |
void | FitValues (TF1 *data, TF1 *mc, TH1 *hdata, TH1 *hmc, double x1=0.50, double y1=0.30, double x2=0.85, double y2=0.55) |
std::string | ToString (double value) |
TCanvas * | RatioPlot (std::vector< TH1 * > topHistos, std::vector< TString > topOption, std::vector< TH1 * > bottomHistos, std::vector< TString > bottomOption) |
void | plot_pi0_xcheck (const std::string inFile, const bool isFHC) |
void FitValues | ( | TF1 * | data, |
TF1 * | mc, | ||
TH1 * | hdata, | ||
TH1 * | hmc, | ||
double | x1 = 0.50 , |
||
double | y1 = 0.30 , |
||
double | x2 = 0.85 , |
||
double | y2 = 0.55 |
||
) |
Definition at line 93 of file plot_pi0_xcheck.C.
References Munits::mm, Munits::ms, x1, submit_syst::x2, y1, and submit_syst::y2.
Referenced by plot_pi0_xcheck().
void HCtag | ( | TString | tag, |
double | pot, | ||
double | size = 0.8 |
||
) |
Definition at line 64 of file plot_pi0_xcheck.C.
References confusionMatrixTree::out, pot, gen_hdf5record::size, string, tex(), and art::to_string().
Referenced by plot_pi0_xcheck().
void legend | ( | TH1 * | data, |
TH1 * | mc, | ||
TH1 * | bkgd, | ||
double | x1 = 0.58 , |
||
double | y1 = 0.64 , |
||
double | x2 = 0.86 , |
||
double | y2 = 0.84 , |
||
bool | isData = 1 |
||
) |
Definition at line 48 of file plot_pi0_xcheck.C.
References MECModelEnuComparisons::leg, x1, submit_syst::x2, y1, and submit_syst::y2.
Referenced by plot_pi0_xcheck().
void plot_pi0_xcheck | ( | const std::string | inFile, |
const bool | isFHC | ||
) |
Definition at line 208 of file plot_pi0_xcheck.C.
References b, plot_validation_datamc::c, demo5::c1, demo5::c2, chisquared::c3, ana::CenterTitles(), om::cout, d, MakeMiniprodValidationCuts::f, ana::FillWithDimColor(), FitValues(), submit_syst::fout, make_syst_table_plots::h, HCtag(), MECModelEnuComparisons::i, inFile, calib::j, kN2D, kNMulti, kNPlots, kNSels, ana::kTotalBackgroundColor, ana::kTotalMCColor, legend(), m, extractScale::mean, plots, plots2d, plotsMulti, POT, Preliminary(), ana::RatioPlot(), submit_cafana::rc, runNovaSAM::release, ana::sels, string, getGoodRuns4SAM::tag, tex(), ToString(), ana::Spectrum::ToTH1(), and ana::Spectrum::ToTH2().
void Preliminary | ( | ) |
Definition at line 38 of file plot_pi0_xcheck.C.
References prelim.
Referenced by plot_pi0_xcheck().
TCanvas* RatioPlot | ( | std::vector< TH1 * > | topHistos, |
std::vector< TString > | topOption, | ||
std::vector< TH1 * > | bottomHistos, | ||
std::vector< TString > | bottomOption | ||
) |
Definition at line 127 of file plot_pi0_xcheck.C.
References plot_validation_datamc::c, plot_validation_datamc::Clone(), make_syst_table_plots::h, h1, h3, plot_validation_datamc::p1, and plot_validation_datamc::p2.
void tex | ( | std::string | str | ) |
std::string ToString | ( | double | value | ) |
Definition at line 119 of file plot_pi0_xcheck.C.
References confusionMatrixTree::out.
Referenced by cmf::MetaDataLite::Period(), cmf::MetaData::Period(), and plot_pi0_xcheck().