#include <cassert>
#include <cstdlib>
#include <TSystem.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1D.h>
#include <TF1.h>
#include "Framework/Algorithm/AlgFactory.h"
#include "Framework/Conventions/Controls.h"
#include "Framework/EventGen/EventRecord.h"
#include "Framework/EventGen/GMCJMonitor.h"
#include "Framework/EventGen/EventRecordVisitorI.h"
#include "Framework/GHEP/GHepParticle.h"
#include "Framework/GHEP/GHepRecord.h"
#include "Framework/GHEP/GHepStatus.h"
#include "Framework/Interaction/Interaction.h"
#include "Framework/Messenger/Messenger.h"
#include "Framework/Ntuple/NtpWriter.h"
#include "Framework/Ntuple/NtpMCFormat.h"
#include "Framework/Numerical/RandomGen.h"
#include "Framework/Numerical/Spline.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/Utils/AppInit.h"
#include "Framework/Utils/StringUtils.h"
#include "Framework/Utils/PrintUtils.h"
#include "Framework/Utils/XSecSplineList.h"
#include "Framework/Utils/RunOpt.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Physics/HadronTransport/INukeHadroFates.h"
#include "Physics/HadronTransport/INukeUtils.h"
Go to the source code of this file.
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
const EventRecordVisitorI * | GetIntranuke (void) |
double | GenProbeKineticEnergy (void) |
EventRecord * | InitializeEvent (void) |
void | BuildSpectrum (void) |
void | PrintSyntax (void) |
int | main (int argc, char **argv) |
Variables | |
int | kDefOptNevents = 10000 |
Long_t | kDefOptRunNu = 0 |
string | kDefOptEvFilePrefix = "gntp.inuke" |
string | kDefOptMode = "hA" |
string | gOptMode |
Long_t | gOptRunNu |
int | gOptNevents |
int | gOptProbePdgCode |
int | gOptTgtPdgCode |
double | gOptProbeKE |
double | gOptProbeKEmin |
double | gOptProbeKEmax |
string | gOptFlux |
string | gOptEvFilePrefix |
bool | gOptUsingFlux =false |
long int | gOptRanSeed |
TH1D * | gSpectrum = 0 |
Definition at line 322 of file gEvGenHadronNucleus.cxx.
References ana::assert(), genie::Spline::Evaluate(), exit(), MakeMiniprodValidationCuts::f, genie::gAbortingInErr, gOptFlux, gOptProbeKEmax, gOptProbeKEmin, gOptUsingFlux, gSpectrum, MECModelEnuComparisons::i, genie::RandomGen::Instance(), genie::controls::kRjMaxIterations, LOG, getGoodRuns4SAM::n, pFATAL, pNOTICE, r(), genie::RandomGen::RndGen(), and ymax.
Referenced by ana::GenericSystematicDef< SRType >::GenericSystematicDef(), and main().
double GenProbeKineticEnergy | ( | void | ) |
Definition at line 316 of file gEvGenHadronNucleus.cxx.
References gOptProbeKE, gOptUsingFlux, and gSpectrum.
Referenced by InitializeEvent().
Definition at line 396 of file gEvGenHadronNucleus.cxx.
References genie::CmdLnArgParser::ArgAsInt(), genie::CmdLnArgParser::ArgAsLong(), genie::CmdLnArgParser::ArgAsString(), ana::assert(), exit(), genie::gAbortingInErr, gOptEvFilePrefix, gOptFlux, gOptMode, gOptNevents, gOptProbeKE, gOptProbeKEmax, gOptProbeKEmin, gOptProbePdgCode, gOptRanSeed, gOptRunNu, gOptTgtPdgCode, gOptUsingFlux, genie::RunOpt::Instance(), kDefOptEvFilePrefix, kDefOptMode, kDefOptNevents, kDefOptRunNu, kemax, kemin, LOG, genie::CmdLnArgParser::OptionExists(), plot_validation_datamc::parser, pDEBUG, pFATAL, pINFO, pNOTICE, genie::utils::print::PrintFramedMesg(), PrintSyntax(), genie::RunOpt::ReadFromCommandLine(), and genie::utils::str::Split().
Referenced by main().
const EventRecordVisitorI * GetIntranuke | ( | void | ) |
Definition at line 233 of file gEvGenHadronNucleus.cxx.
References ana::assert(), exit(), genie::gAbortingInErr, genie::AlgFactory::GetAlgorithm(), gOptMode, genie::AlgFactory::Instance(), LOG, and pFATAL.
Referenced by main().
EventRecord * InitializeEvent | ( | void | ) |
Definition at line 283 of file gEvGenHadronNucleus.cxx.
References genie::GHepRecord::AddParticle(), genie::GHepRecord::AttachSummary(), om::Icons::Find(), GenProbeKineticEnergy(), gOptProbePdgCode, gOptTgtPdgCode, genie::PDGLibrary::Instance(), genie::kIStInitialState, genie::utils::res::Mass(), and ana::Sqrt().
Referenced by main().
Definition at line 157 of file gEvGenHadronNucleus.cxx.
References genie::NtpWriter::AddEventRecord(), BuildSpectrum(), genie::RunOpt::BuildTune(), genie::NtpWriter::CustomizeFilenamePrefix(), exit(), GetCommandLineArgs(), GetIntranuke(), gOptEvFilePrefix, gOptNevents, gOptRanSeed, gOptRunNu, gSpectrum, genie::NtpWriter::Initialize(), InitializeEvent(), genie::RunOpt::Instance(), genie::kNFGHEP, LOG, genie::utils::app_init::MesgThresholds(), pFATAL, pNOTICE, genie::EventRecordVisitorI::ProcessEventRecord(), genie::utils::app_init::RandGen(), genie::NtpWriter::Save(), genie::GHepRecord::SetPrintLevel(), and genie::GMCJMonitor::Update().
Definition at line 561 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs().
string gOptEvFilePrefix |
Definition at line 150 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and main().
string gOptFlux |
Definition at line 149 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), and GetCommandLineArgs().
string gOptMode |
Definition at line 141 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and GetIntranuke().
int gOptNevents |
Definition at line 143 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptProbeKE |
Definition at line 146 of file gEvGenHadronNucleus.cxx.
Referenced by GenProbeKineticEnergy(), and GetCommandLineArgs().
double gOptProbeKEmax |
Definition at line 148 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), and GetCommandLineArgs().
double gOptProbeKEmin |
Definition at line 147 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), and GetCommandLineArgs().
int gOptProbePdgCode |
Definition at line 144 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and InitializeEvent().
long int gOptRanSeed |
Definition at line 152 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and main().
Long_t gOptRunNu |
Definition at line 142 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and main().
int gOptTgtPdgCode |
Definition at line 145 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs(), and InitializeEvent().
bool gOptUsingFlux =false |
Definition at line 151 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), GenProbeKineticEnergy(), and GetCommandLineArgs().
TH1D* gSpectrum = 0 |
Definition at line 154 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), GenProbeKineticEnergy(), and main().
string kDefOptEvFilePrefix = "gntp.inuke" |
Definition at line 137 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs().
string kDefOptMode = "hA" |
Definition at line 138 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs().
int kDefOptNevents = 10000 |
Definition at line 135 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs().
Long_t kDefOptRunNu = 0 |
Definition at line 136 of file gEvGenHadronNucleus.cxx.
Referenced by GetCommandLineArgs().