GENIEGenerator
|
#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 2033 of file gEvComp.cxx.
void DirNameToProbe | ( | void | ) |
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, and genie::kPdgNuTau.
Referenced by MakePlotsCurrDir().
void DirNameToTarget | ( | void | ) |
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, and genie::kPdgNuTau.
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 MakePlots(), and 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.
Referenced by Draw().
TH1F * DrawFrame | ( | double | xmin, |
double | xmax, | ||
double | ymin, | ||
double | ymax, | ||
TPad * | p, | ||
const char * | xt, | ||
const char * | yt | ||
) |
Definition at line 561 of file gXSecComp.cxx.
TGraph * DrawRatio | ( | TGraph * | gr0, |
TGraph * | gr1 | ||
) |
Definition at line 698 of file gXSecComp.cxx.
Referenced by Draw().
void End | ( | void | ) |
Definition at line 210 of file gXSecComp.cxx.
Referenced by genie::flux::GNuMIFlux::GenerateNext(), and main().
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
void Init | ( | void | ) |
Definition at line 138 of file gXSecComp.cxx.
References gC, gLS, gOptHaveRef, gOptOutputFilename, gOptXSecFilename_curr, gOptXSecFilename_ref0, gPadRatio, gPadTitle, gPadXSecs, and gPS.
Referenced by genie::BLI2DNonUnifGrid::BLI2DNonUnifGrid(), genie::BLI2DUnifGrid::BLI2DUnifGrid(), genie::GEVGDriver::GEVGDriver(), genie::masterclass::GNuMcMainFrame::GNuMcMainFrame(), main(), and genie::GEVGDriver::Reset().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 125 of file gXSecComp.cxx.
References End(), GetCommandLineArgs(), Init(), LOG, MakePlots(), pINFO, and genie::utils::style::SetDefaultStyle().
void MakePlots | ( | void | ) |
void MakePlotsCurrDir | ( | void | ) |
Definition at line 355 of file gXSecComp.cxx.
References DirNameToProbe(), DirNameToTarget(), Draw(), gCurrProbeIsNu, gCurrProbeIsNuBar, gCurrProbeLbl, gCurrTargetHasN, gCurrTargetHasP, gCurrTargetIsFreeNuc, gCurrTargetLbl, gDirName, LOG, OpenDir(), and pINFO.
void OpenDir | ( | void | ) |
Definition at line 219 of file gXSecComp.cxx.
References gDirCurr, gDirName, gDirRef0, gXSecFile_curr, gXSecFile_ref0, LOG, and pINFO.
Referenced by MakePlotsCurrDir().
string OutputFileName | ( | string | input_file_name | ) |
void PrintSyntax | ( | void | ) |
TGraph * TrimGraph | ( | TGraph * | gr, |
int | max_np_per_decade | ||
) |
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(), 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().
string gLabelRef0 = "" |
Definition at line 107 of file gXSecComp.cxx.
Referenced by Draw().
TLegend* gLS = 0 |
Definition at line 114 of file gXSecComp.cxx.
bool gOptHaveRef |
Definition at line 99 of file gXSecComp.cxx.
string gOptOutputFilename = "" |
Definition at line 98 of file gXSecComp.cxx.
string gOptXSecFilename_curr = "" |
Definition at line 96 of file gXSecComp.cxx.
Referenced by Init().
string gOptXSecFilename_ref0 = "" |
Definition at line 97 of file gXSecComp.cxx.
Referenced by Init().
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 OpenDir().
TFile* gXSecFile_ref0 = 0 |
Definition at line 103 of file gXSecComp.cxx.
Referenced by OpenDir().