#include <cassert>
#include <sstream>
#include <string>
#include <vector>
#include <TSystem.h>
#include <TFile.h>
#include <TDirectory.h>
#include <TGraph.h>
#include <TPostScript.h>
#include <TH1D.h>
#include <TMath.h>
#include <TCanvas.h>
#include <TPavesText.h>
#include <TText.h>
#include <TStyle.h>
#include <TLegend.h>
#include <TObjString.h>
#include "Framework/Conventions/GBuild.h"
#include "Framework/Messenger/Messenger.h"
#include "Framework/Numerical/RandomGen.h"
#include "Framework/ParticleData/PDGUtils.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Framework/Utils/StringUtils.h"
#include "Framework/Utils/Style.h"
Go to the source code of this file.
Functions | |
void | Init (void) |
void | End (void) |
void | OpenDir (void) |
void | DirNameToProbe (void) |
void | DirNameToTarget (void) |
void | MakePlots (void) |
void | MakePlotsCurrDir (void) |
TH1F * | DrawFrame (TGraph *gr0, TGraph *gr1, TPad *p, const char *xt, const char *yt, double yminsc, double ymaxsc) |
TH1F * | DrawFrame (double xmin, double xmax, double ymin, double ymax, TPad *p, const char *xt, const char *yt) |
void | Draw (const char *plot, const char *title) |
void | Draw (TGraph *gr, const char *opt) |
TGraph * | TrimGraph (TGraph *gr, int max_np_per_decade) |
TGraph * | DrawRatio (TGraph *gr0, TGraph *gr1) |
void | GetCommandLineArgs (int argc, char **argv) |
void | PrintSyntax (void) |
bool | CheckRootFilename (string filename) |
string | OutputFileName (string input_file_name) |
int | main (int argc, char **argv) |
Variables | |
string | gOptXSecFilename_curr = "" |
string | gOptXSecFilename_ref0 = "" |
string | gOptOutputFilename = "" |
bool | gOptHaveRef |
TFile * | gXSecFile_curr = 0 |
TFile * | gXSecFile_ref0 = 0 |
TDirectory * | gDirCurr = 0 |
TDirectory * | gDirRef0 = 0 |
string | gLabelCurr = "" |
string | gLabelRef0 = "" |
string | gDirName = "" |
TPostScript * | gPS = 0 |
TCanvas * | gC = 0 |
TPad * | gPadTitle = 0 |
TPad * | gPadXSecs = 0 |
TPad * | gPadRatio = 0 |
TLegend * | gLS = 0 |
string | gCurrProbeLbl = "" |
int | gCurrProbePdg = 0 |
bool | gCurrProbeIsNu = false |
bool | gCurrProbeIsNuBar = false |
string | gCurrTargetLbl = "" |
bool | gCurrTargetHasP = false |
bool | gCurrTargetHasN = false |
bool | gCurrTargetIsFreeNuc = false |
bool CheckRootFilename | ( | string | filename | ) |
Definition at line 807 of file gXSecComp.cxx.
Referenced by GetCommandLineArgs().
Definition at line 232 of file gXSecComp.cxx.
References gCurrProbeIsNu, gCurrProbeIsNuBar, gCurrProbeLbl, gCurrProbePdg, gDirName, genie::pdg::IsAntiNeutrino(), genie::pdg::IsNeutrino(), genie::kPdgAntiNuE, genie::kPdgAntiNuMu, genie::kPdgAntiNuTau, genie::kPdgNuE, genie::kPdgNuMu, genie::kPdgNuTau, label, and make_root_from_grid_output::pdg.
Referenced by MakePlotsCurrDir().
Definition at line 284 of file gXSecComp.cxx.
References gCurrProbePdg, gCurrTargetHasN, gCurrTargetHasP, gCurrTargetIsFreeNuc, gCurrTargetLbl, gDirName, genie::kPdgAntiNuE, genie::kPdgAntiNuMu, genie::kPdgAntiNuTau, genie::kPdgNuE, genie::kPdgNuMu, genie::kPdgNuTau, and label.
Referenced by MakePlotsCurrDir().
void Draw | ( | const char * | plot, |
const char * | title | ||
) |
Definition at line 580 of file gXSecComp.cxx.
References DrawFrame(), DrawRatio(), genie::utils::style::Format(), gC, gDirCurr, gDirRef0, gLabelCurr, gLabelRef0, gLS, gOptHaveRef, gPadRatio, gPadTitle, gPadXSecs, gPS, and TrimGraph().
Referenced by MakePlotsCurrDir().
void Draw | ( | TGraph * | gr, |
const char * | opt | ||
) |
Definition at line 574 of file gXSecComp.cxx.
TH1F * DrawFrame | ( | TGraph * | gr0, |
TGraph * | gr1, | ||
TPad * | p, | ||
const char * | xt, | ||
const char * | yt, | ||
double | yminsc, | ||
double | ymaxsc | ||
) |
Definition at line 529 of file gXSecComp.cxx.
References E, GetXaxis(), GetYaxis(), x1, xmax, make_mec_shifts_plots::xmin, y1, ymax, and ymin.
Referenced by Draw().
TH1F * DrawFrame | ( | double | xmin, |
double | xmax, | ||
double | ymin, | ||
double | ymax, | ||
TPad * | p, | ||
const char * | xt, | ||
const char * | yt | ||
) |
TGraph * DrawRatio | ( | TGraph * | gr0, |
TGraph * | gr1 | ||
) |
Definition at line 698 of file gXSecComp.cxx.
References MECModelEnuComparisons::i, LOG, pDEBUG, PandAna.reco_validation.prod5_pid_validation::ratio(), submit_syst::x, and submit_syst::y.
Referenced by Draw().
Definition at line 210 of file gXSecComp.cxx.
Referenced by genie::flux::GNuMIFlux::GenerateNext(), Plotter::GetDataPlots(), Plotter::GetMCPlots(), main(), and genie::flux::GDk2NuFluxXMLHelper::~GDk2NuFluxXMLHelper().
Definition at line 740 of file gXSecComp.cxx.
References genie::CmdLnArgParser::ArgAsString(), ana::assert(), CheckRootFilename(), exit(), gLabelCurr, gLabelRef0, gOptHaveRef, gOptOutputFilename, gOptXSecFilename_curr, gOptXSecFilename_ref0, LOG, genie::CmdLnArgParser::OptionExists(), plot_validation_datamc::parser, pINFO, pNOTICE, PrintSyntax(), and genie::utils::str::Split().
Referenced by main().
Definition at line 138 of file gXSecComp.cxx.
References gC, gLS, gOptHaveRef, gOptOutputFilename, gOptXSecFilename_curr, gOptXSecFilename_ref0, gPadRatio, gPadTitle, gPadXSecs, gPS, SetBorderSize(), and SetFillColor().
Referenced by ClassImp(), genie::exceptions::EVGThreadException::EVGThreadException(), ROOT::GenerateInitInstance(), ROOT::GenerateInitInstanceLocal(), genie::GEVGDriver::GEVGDriver(), genie::exceptions::INukeException::INukeException(), main(), genie::exceptions::NievesQELException::NievesQELException(), and genie::GEVGDriver::Reset().
Definition at line 125 of file gXSecComp.cxx.
References End(), GetCommandLineArgs(), Init(), LOG, MakePlots(), pINFO, and genie::utils::style::SetDefaultStyle().
Definition at line 334 of file gXSecComp.cxx.
References dir, gDirName, gOptHaveRef, gOptXSecFilename_curr, gOptXSecFilename_ref0, gXSecFile_curr, gXSecFile_ref0, and MakePlotsCurrDir().
Referenced by main().
Definition at line 355 of file gXSecComp.cxx.
References DirNameToProbe(), DirNameToTarget(), Draw(), gCurrProbeIsNu, gCurrProbeIsNuBar, gCurrProbeLbl, gCurrTargetHasN, gCurrTargetHasP, gCurrTargetIsFreeNuc, gCurrTargetLbl, gDirName, LOG, OpenDir(), and pINFO.
Referenced by MakePlots().
Definition at line 219 of file gXSecComp.cxx.
References gDirCurr, gDirName, gDirRef0, gXSecFile_curr, gXSecFile_ref0, LOG, and pINFO.
Referenced by MakePlotsCurrDir().
Definition at line 800 of file gXSecComp.cxx.
Referenced by GetCommandLineArgs().
TGraph * TrimGraph | ( | TGraph * | gr, |
int | max_np_per_decade | ||
) |
Definition at line 636 of file gXSecComp.cxx.
References fp, gr2, MECModelEnuComparisons::i, calib::j, submit_syst::x, xmax, make_mec_shifts_plots::xmin, and submit_syst::y.
Referenced by Draw().
TCanvas* gC = 0 |
Definition at line 110 of file gXSecComp.cxx.
bool gCurrProbeIsNu = false |
Definition at line 117 of file gXSecComp.cxx.
Referenced by DirNameToProbe(), and MakePlotsCurrDir().
bool gCurrProbeIsNuBar = false |
Definition at line 118 of file gXSecComp.cxx.
Referenced by DirNameToProbe(), and MakePlotsCurrDir().
string gCurrProbeLbl = "" |
Definition at line 115 of file gXSecComp.cxx.
Referenced by DirNameToProbe(), and MakePlotsCurrDir().
int gCurrProbePdg = 0 |
Definition at line 116 of file gXSecComp.cxx.
Referenced by DirNameToProbe(), and DirNameToTarget().
bool gCurrTargetHasN = false |
Definition at line 121 of file gXSecComp.cxx.
Referenced by DirNameToTarget(), and MakePlotsCurrDir().
bool gCurrTargetHasP = false |
Definition at line 120 of file gXSecComp.cxx.
Referenced by DirNameToTarget(), and MakePlotsCurrDir().
bool gCurrTargetIsFreeNuc = false |
Definition at line 122 of file gXSecComp.cxx.
Referenced by DirNameToTarget(), and MakePlotsCurrDir().
string gCurrTargetLbl = "" |
Definition at line 119 of file gXSecComp.cxx.
Referenced by DirNameToTarget(), and MakePlotsCurrDir().
TDirectory* gDirCurr = 0 |
Definition at line 104 of file gXSecComp.cxx.
string gDirName = "" |
Definition at line 108 of file gXSecComp.cxx.
Referenced by DirNameToProbe(), DirNameToTarget(), MakePlots(), MakePlotsCurrDir(), and OpenDir().
TDirectory* gDirRef0 = 0 |
Definition at line 105 of file gXSecComp.cxx.
string gLabelCurr = "" |
Definition at line 106 of file gXSecComp.cxx.
Referenced by Draw(), and GetCommandLineArgs().
string gLabelRef0 = "" |
Definition at line 107 of file gXSecComp.cxx.
Referenced by Draw(), and GetCommandLineArgs().
TLegend* gLS = 0 |
Definition at line 114 of file gXSecComp.cxx.
bool gOptHaveRef |
Definition at line 99 of file gXSecComp.cxx.
Referenced by Draw(), GetCommandLineArgs(), Init(), and MakePlots().
string gOptOutputFilename = "" |
Definition at line 98 of file gXSecComp.cxx.
Referenced by GetCommandLineArgs(), and Init().
string gOptXSecFilename_curr = "" |
Definition at line 96 of file gXSecComp.cxx.
Referenced by GetCommandLineArgs(), Init(), and MakePlots().
string gOptXSecFilename_ref0 = "" |
Definition at line 97 of file gXSecComp.cxx.
Referenced by GetCommandLineArgs(), Init(), and MakePlots().
TPad* gPadRatio = 0 |
Definition at line 113 of file gXSecComp.cxx.
TPad* gPadTitle = 0 |
Definition at line 111 of file gXSecComp.cxx.
TPad* gPadXSecs = 0 |
Definition at line 112 of file gXSecComp.cxx.
TPostScript* gPS = 0 |
Definition at line 109 of file gXSecComp.cxx.
TFile* gXSecFile_curr = 0 |
Definition at line 102 of file gXSecComp.cxx.
Referenced by MakePlots(), and OpenDir().
TFile* gXSecFile_ref0 = 0 |
Definition at line 103 of file gXSecComp.cxx.
Referenced by MakePlots(), and OpenDir().