#include <cassert>
#include <cstdlib>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <TSystem.h>
#include <TTree.h>
#include <TFile.h>
#include <TH1D.h>
#include <TMath.h>
#include <TGeoVolume.h>
#include <TGeoShape.h>
#include <TList.h>
#include <TObject.h>
#include "Framework/Conventions/Units.h"
#include "Framework/EventGen/EventRecord.h"
#include "Framework/EventGen/GFluxI.h"
#include "Framework/EventGen/GMCJDriver.h"
#include "Framework/EventGen/GMCJMonitor.h"
#include "Framework/Messenger/Messenger.h"
#include "Framework/Ntuple/NtpWriter.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/ParticleData/PDGCodeList.h"
#include "Framework/Ntuple/NtpMCFormat.h"
#include "Framework/Numerical/RandomGen.h"
#include "Framework/Utils/XSecSplineList.h"
#include "Framework/Utils/StringUtils.h"
#include "Framework/Utils/UnitUtils.h"
#include "Framework/Utils/AppInit.h"
#include "Framework/Utils/RunOpt.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Framework/Utils/T2KEvGenMetaData.h"
#include "Framework/Utils/SystemUtils.h"
#include "Framework/Utils/PrintUtils.h"
Go to the source code of this file.
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
void | PrintSyntax (void) |
int | main (int argc, char **argv) |
Variables | |
string | kDefOptGeomLUnits = "mm" |
string | kDefOptGeomDUnits = "g_cm3" |
NtpMCFormat_t | kDefOptNtpFormat = kNFGHEP |
double | kDefOptFluxNorm = 1E+21 |
string | kDefOptEvFilePrefix = "gntp" |
Long_t | gOptRunNu |
bool | gOptUsingRootGeom = false |
bool | gOptUsingHistFlux = false |
map< int, double > | gOptTgtMix |
map< int, TH1D * > | gOptFluxHst |
string | gOptRootGeom |
string | gOptRootGeomTopVol = "" |
double | gOptGeomLUnits = 0 |
double | gOptGeomDUnits = 0 |
string | gOptExtMaxPlXml |
string | gOptFluxFile |
string | gOptDetectorLocation |
double | gOptFluxNorm |
PDGCodeList | gOptFluxNtpNuList (false) |
int | gOptFluxNCycles |
int | gOptNev |
double | gOptPOT |
bool | gOptExitAtEndOfFullFluxCycles |
string | gOptEvFilePrefix |
bool | gOptUseFluxProbs = false |
bool | gOptSaveFluxProbsFile = false |
string | gOptFluxProbFileName |
string | gOptSaveFluxProbsFileName |
bool | gOptRandomFluxOffset = false |
long int | gOptRanSeed |
string | gOptInpXSecFile |
Definition at line 936 of file gT2KEvGen.cxx.
References genie::CmdLnArgParser::ArgAsDouble(), genie::CmdLnArgParser::ArgAsInt(), genie::CmdLnArgParser::ArgAsLong(), genie::CmdLnArgParser::ArgAsString(), genie::RunOpt::EnableBareXSecPreCalc(), exit(), genie::PDGLibrary::Find(), flux, geom(), gOptDetectorLocation, gOptEvFilePrefix, gOptExitAtEndOfFullFluxCycles, gOptExtMaxPlXml, gOptFluxFile, gOptFluxHst, gOptFluxNCycles, gOptFluxNorm, gOptFluxNtpNuList, gOptFluxProbFileName, gOptGeomDUnits, gOptGeomLUnits, gOptInpXSecFile, gOptNev, gOptPOT, gOptRandomFluxOffset, gOptRanSeed, gOptRootGeom, gOptRootGeomTopVol, gOptRunNu, gOptSaveFluxProbsFile, gOptSaveFluxProbsFileName, gOptTgtMix, gOptUseFluxProbs, gOptUsingHistFlux, gOptUsingRootGeom, plot_validation_datamc::help, histo, make_syst_table_plots::ibin, genie::PDGLibrary::Instance(), genie::RunOpt::Instance(), genie::pdg::IsAntiNeutrino(), genie::pdg::IsNeutrino(), kDefOptEvFilePrefix, kDefOptFluxNorm, kDefOptGeomDUnits, kDefOptGeomLUnits, LOG, nutype(), genie::CmdLnArgParser::OptionExists(), plot_validation_datamc::parser, pDEBUG, make_root_from_grid_output::pdg, pFATAL, pINFO, pNOTICE, genie::utils::print::PrintFramedMesg(), PrintSyntax(), genie::PDGCodeList::push_back(), pWARN, genie::RunOpt::ReadFromCommandLine(), genie::utils::str::Split(), genie::utils::units::UnitFromString(), and wgt.
Referenced by main().
Definition at line 512 of file gT2KEvGen.cxx.
References genie::flux::GCylindTH1Flux::AddEnergySpectrum(), genie::NtpWriter::AddEventRecord(), ana::assert(), genie::RunOpt::BuildTune(), genie::utils::app_init::CacheFile(), genie::GMCJDriver::Configure(), genie::NtpWriter::CustomizeFilenamePrefix(), genie::flux::GJPARCNuFlux::DisableOffset(), genie::flux::GJPARCNuFlux::End(), genie::NtpWriter::EventTree(), exit(), flux, genie::GMCJDriver::ForceSingleProbScale(), genie::GMCJDriver::GenerateEvent(), GetCommandLineArgs(), genie::geometry::ROOTGeomAnalyzer::GetGeometry(), genie::GMCJDriver::GlobProbScale(), gOptDetectorLocation, gOptEvFilePrefix, gOptExitAtEndOfFullFluxCycles, gOptExtMaxPlXml, gOptFluxFile, gOptFluxHst, gOptFluxNCycles, gOptFluxNorm, gOptFluxNtpNuList, gOptFluxProbFileName, gOptGeomDUnits, gOptGeomLUnits, gOptInpXSecFile, gOptNev, gOptPOT, gOptRandomFluxOffset, gOptRanSeed, gOptRootGeom, gOptRootGeomTopVol, gOptRunNu, gOptSaveFluxProbsFile, gOptSaveFluxProbsFileName, gOptTgtMix, gOptUseFluxProbs, gOptUsingHistFlux, gOptUsingRootGeom, genie::NtpWriter::Initialize(), genie::RunOpt::Instance(), makeTrainCVSamples::int, it, kDefOptNtpFormat, genie::geometry::ROOTGeomAnalyzer::LengthUnits(), genie::flux::GJPARCNuFlux::LoadBeamSimData(), genie::GMCJDriver::LoadFluxProbabilities(), LOG, genie::utils::app_init::MesgThresholds(), runNovaSAM::metadata, genie::flux::GJPARCNuFlux::PassThroughInfo(), pERROR, pFATAL, pINFO, pNOTICE, pot, genie::flux::GJPARCNuFlux::POT_1cycle(), genie::flux::GJPARCNuFlux::POT_curravg(), genie::GMCJDriver::PreCalcFluxProbabilities(), genie::utils::app_init::RandGen(), genie::utils::geometry::RecursiveExhaust(), genie::NtpWriter::Save(), genie::GMCJDriver::SaveFluxProbabilities(), genie::flux::GCylindTH1Flux::SetBeamSpot(), genie::GMCJDriver::SetEventGeneratorList(), genie::flux::GJPARCNuFlux::SetFilePOT(), genie::flux::GJPARCNuFlux::SetFluxParticles(), genie::flux::GCylindTH1Flux::SetNuDirection(), genie::flux::GJPARCNuFlux::SetNumOfCycles(), genie::GHepRecord::SetPrintLevel(), genie::GMCJMonitor::SetRefreshRate(), genie::flux::GCylindTH1Flux::SetTransverseRadius(), genie::flux::GJPARCNuFlux::SetUpstreamZ(), log::success(), genie::GMCJDriver::SumFluxIntProbs(), genie::GMCJMonitor::Update(), genie::GMCJDriver::UseFluxDriver(), genie::GMCJDriver::UseGeomAnalyzer(), genie::GMCJDriver::UseMaxPathLengths(), genie::GMCJDriver::UseSplines(), genie::utils::app_init::XSecTable(), and make_true_q0q3_plots::zmax.
Definition at line 1463 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs().
string gOptDetectorLocation |
Definition at line 495 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptEvFilePrefix |
Definition at line 502 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptExitAtEndOfFullFluxCycles |
Definition at line 501 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptExtMaxPlXml |
Definition at line 493 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptFluxFile |
Definition at line 494 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
map<int,TH1D*> gOptFluxHst |
Definition at line 488 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
int gOptFluxNCycles |
Definition at line 498 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptFluxNorm |
Definition at line 496 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
PDGCodeList gOptFluxNtpNuList(false) |
Referenced by GetCommandLineArgs(), and main().
string gOptFluxProbFileName |
Definition at line 505 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptGeomDUnits = 0 |
Definition at line 492 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptGeomLUnits = 0 |
Definition at line 491 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptInpXSecFile |
Definition at line 509 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
int gOptNev |
Definition at line 499 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptPOT |
Definition at line 500 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptRandomFluxOffset = false |
Definition at line 507 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
long int gOptRanSeed |
Definition at line 508 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptRootGeom |
Definition at line 489 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptRootGeomTopVol = "" |
Definition at line 490 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
Long_t gOptRunNu |
Definition at line 484 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptSaveFluxProbsFile = false |
Definition at line 504 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptSaveFluxProbsFileName |
Definition at line 506 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
map<int,double> gOptTgtMix |
Definition at line 487 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptUseFluxProbs = false |
Definition at line 503 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptUsingHistFlux = false |
Definition at line 486 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gOptUsingRootGeom = false |
Definition at line 485 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
string kDefOptEvFilePrefix = "gntp" |
Definition at line 480 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs().
double kDefOptFluxNorm = 1E+21 |
Definition at line 479 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs().
string kDefOptGeomDUnits = "g_cm3" |
Definition at line 477 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs().
string kDefOptGeomLUnits = "mm" |
Definition at line 476 of file gT2KEvGen.cxx.
Referenced by GetCommandLineArgs().
NtpMCFormat_t kDefOptNtpFormat = kNFGHEP |
Definition at line 478 of file gT2KEvGen.cxx.
Referenced by main().