#include "CAFAna/Core/SpectrumLoader.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Core/ISyst.h"
#include "CAFAna/Core/SystShifts.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Cuts/TruthCuts.h"
#include "3FlavorAna/Cuts/NueCutsSecondAna.h"
#include "3FlavorAna/Vars/NueVars.h"
#include "3FlavorAna/Vars/NueVarsExtra.h"
#include "CAFAna/Systs/XSecSystLists.h"
#include "CAFAna/Vars/GenieWeights.h"
#include "CAFAna/Vars/PPFXWeights.h"
#include "CAFAna/XSec/GenieMultiverseSyst.h"
#include "CAFAna/XSec/FluxMultiverseSyst.h"
#include "CAFAna/XSec/MultiverseCorrelation.h"
#include "NDAna/ncpi0_SemiInclusive/NDNCPi0Xsec.h"
#include "NDAna/ncpi0_SemiInclusive/NCPi0SemiIncCuts.h"
#include "NDAna/ncpi0_SemiInclusive/NCPi0SemiIncVars.h"
#include "NDAna/ncpi0_SemiInclusive/NCPi0SemiIncBins.h"
#include "Utilities/rootlogon.C"
#include "TH1.h"
#include "TH2.h"
#include "THStack.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TStyle.h"
#include "TFile.h"
#include <vector>
#include <math.h>
#include "TLine.h"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <string>
#include <stdint.h>
#include "TTree.h"
#include "TF1.h"
#include "TH1F.h"
#include "TH2F.h"
#include <sstream>
#include "TF2.h"
#include "TCutG.h"
#include "TMath.h"
#include "TRandom.h"
#include "TGraph.h"
#include "TColor.h"
#include "TF3.h"
#include "TH3.h"
#include "TH3F.h"
#include "TMinuit.h"
#include "TMatrix.h"
#include "TGraphErrors.h"
#include "TDecompSVD.h"
Go to the source code of this file.
Functions | |
void | fcn (Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) |
void | fcn2Var (Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) |
void | PrintChiSq (TString str) |
void | PrintChiSq2 (TString str) |
TGraphAsymmErrors * | PlotWithSystErrorBand_mine (TH1F *&nom, std::vector< TH1F * > &ups, std::vector< TH1F * > &dns, int col, int errCol, float headroom, bool newaxis) |
void | MakePlots (TH2F *data, std::vector< TH2F * > mc, TH1F *sig_weights, TH1F *cc_weights, TH1F *nc_weights, std::vector< TH2F * >shifts_up, std::vector< TH2F * >shifts_down, std::string dataname, std::string weightname) |
void | CompareToTrueSignal (TH2F *data, TH2F *data_sig, std::vector< TH2F * > mc, TH1F *sig_weights, TH1F *cc_weights, TH1F *nc_weights, std::string dataname, std::string weightname) |
void | MakePlots () |
Variables | |
const int | xbins = 20 |
const double | pot = 8.09e20 |
float | fDA [xbins] |
float | fSig [xbins] |
float | fCCBkg [xbins] |
float | fNCBkg [xbins] |
float | eDA [xbins] |
float | eSig [xbins] |
float | eCCBkg [xbins] |
float | eNCBkg [xbins] |
float | covMatrix [xbins][xbins] |
float | stat_covMatrix [xbins][xbins] |
const std::vector< int > | kNueCCColorDef |
void CompareToTrueSignal | ( | TH2F * | data, |
TH2F * | data_sig, | ||
std::vector< TH2F * > | mc, | ||
TH1F * | sig_weights, | ||
TH1F * | cc_weights, | ||
TH1F * | nc_weights, | ||
std::string | dataname, | ||
std::string | weightname | ||
) |
Definition at line 687 of file MakePlots.C.
References chisquared::c3, om::cout, e, allTimeWatchdog::endl, MECModelEnuComparisons::i, kBlue, kOrange, kRed, MECModelEnuComparisons::leg, cet::pow(), ana::ProjectionY(), Simulation(), and string.
Referenced by MakePlots().
void fcn | ( | Int_t & | npar, |
Double_t * | gin, | ||
Double_t & | f, | ||
Double_t * | par, | ||
Int_t | iflag | ||
) |
Definition at line 105 of file MakePlots.C.
References covMatrix, delta, fCCBkg, fDA, fNCBkg, fSig, MECModelEnuComparisons::i, calib::j, stat_covMatrix, and xbins.
Referenced by MakePlots().
void fcn2Var | ( | Int_t & | npar, |
Double_t * | gin, | ||
Double_t & | f, | ||
Double_t * | par, | ||
Int_t | iflag | ||
) |
Definition at line 172 of file MakePlots.C.
References covMatrix, delta, fCCBkg, fDA, fNCBkg, fSig, MECModelEnuComparisons::i, calib::j, stat_covMatrix, and xbins.
Referenced by MakePlots().
void MakePlots | ( | TH2F * | data, |
std::vector< TH2F * > | mc, | ||
TH1F * | sig_weights, | ||
TH1F * | cc_weights, | ||
TH1F * | nc_weights, | ||
std::vector< TH2F * > | shifts_up, | ||
std::vector< TH2F * > | shifts_down, | ||
std::string | dataname, | ||
std::string | weightname | ||
) |
Definition at line 320 of file MakePlots.C.
References make_true_q0q3_plots::caption, ana::CenterTitles(), plot_validation_datamc::Clone(), om::cout, e, allTimeWatchdog::endl, MECModelEnuComparisons::i, make_syst_table_plots::ibin, calib::j, kBlue, kOrange, kRed, MECModelEnuComparisons::leg, PlotWithSystErrorBand_mine(), ana::ProjectionX(), ana::ProjectionY(), Simulation(), string, and submit_syst::x.
Referenced by MakePlots().
Definition at line 816 of file MakePlots.C.
References bin, make_true_q0q3_plots::caption, ana::chns, CompareToTrueSignal(), hadd_many_files::counter, om::cout, covariance(), covMatrix, cv, ConvertToSnowGlobesInput::data_file, allTimeWatchdog::endl, stan::math::fabs(), fCCBkg, fcn(), fcn2Var(), fDA, stan::math::fmin(), fNCBkg, fSig, hi(), MECModelEnuComparisons::i, makeTrainCVSamples::int, calib::j, ana::knumchns, lo(), ana::Spectrum::LoadFrom(), ana::GenieMultiverseSpectra::LowerSigma(), MakePlots(), ana::GenieMultiverseSpectra::Nominal(), pot, ana::ProjectionX(), Simulation(), std::sqrt(), stat_covMatrix, string, produceInfoGainMatrix::total, ana::Spectrum::ToTH1(), ana::ToTH2(), ana::Spectrum::ToTH2(), ana::GenieMultiverseSpectra::UpperSigma(), submit_syst::x, and xbins.
TGraphAsymmErrors* PlotWithSystErrorBand_mine | ( | TH1F *& | nom, |
std::vector< TH1F * > & | ups, | ||
std::vector< TH1F * > & | dns, | ||
int | col, | ||
int | errCol, | ||
float | headroom, | ||
bool | newaxis | ||
) |
Definition at line 267 of file MakePlots.C.
References MECModelEnuComparisons::g, hi(), kRed, lo(), std::sqrt(), std::swap(), w, and submit_syst::y.
Referenced by MakePlots().
void PrintChiSq | ( | TString | str | ) |
void PrintChiSq2 | ( | TString | str | ) |
Definition at line 95 of file MakePlots.C.
Referenced by cmf::CovarianceTools::CorrToCov(), doUnfolding(), fcn(), fcn2Var(), cmf::CovarianceTools::FracCovToCov(), MakePlots(), Unfold1D(), and Unfold3D().
float eCCBkg[xbins] |
Definition at line 92 of file MakePlots.C.
float eDA[xbins] |
Definition at line 90 of file MakePlots.C.
float eNCBkg[xbins] |
Definition at line 93 of file MakePlots.C.
float eSig[xbins] |
Definition at line 91 of file MakePlots.C.
float fCCBkg[xbins] |
Definition at line 87 of file MakePlots.C.
Referenced by fcn(), fcn2Var(), and MakePlots().
float fDA[xbins] |
Definition at line 85 of file MakePlots.C.
Referenced by fcn(), fcn2Var(), and MakePlots().
float fNCBkg[xbins] |
Definition at line 88 of file MakePlots.C.
Referenced by fcn(), fcn2Var(), and MakePlots().
float fSig[xbins] |
Definition at line 86 of file MakePlots.C.
Referenced by fcn(), fcn2Var(), getSigmaPlots(), getSigmaPlotsAll(), MakePlots(), lem::dec::Leaf::NSig(), systematics_extrap_comp_from_pred_interp(), and systematics_summary_from_pred_interp().
const std::vector<int> kNueCCColorDef |
Definition at line 98 of file MakePlots.C.
const double pot = 8.09e20 |
Definition at line 83 of file MakePlots.C.
Referenced by MakePlots().
Definition at line 96 of file MakePlots.C.
Referenced by fcn(), fcn2Var(), and MakePlots().
const int xbins = 20 |
Definition at line 82 of file MakePlots.C.
Referenced by ana::nueccinc::NueCCIncCrossSectionAnalysis::AddEnhancedSample(), trk::KalmanTrackAna::beginJob(), comi::NumiFilteringAna::beginJob(), bin_composition_pie_chart(), ana::CovMxSurface::CovMxSurface(), fcn(), fcn2Var(), trk::CosmicTrackAna::Make1DRecoHistograms(), trk::CosmicTrackAna::Make2DRecoHistograms(), MakePlots(), MakeSurface(), MakeSurfaceJoint(), MakeSurfaceLLTest(), MakeSurfaceNoNDOsc(), MatrixDeterminant(), and ana::nueccinc::NueCCIncCrossSectionAnalysis::~NueCCIncCrossSectionAnalysis().