|
GENIEGenerator
|
#include <cassert>#include <cstdlib>#include "TSystem.h"#include "TFile.h"#include "TTree.h"#include "TH1D.h"#include "TF1.h"#include "Framework/Conventions/GBuild.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 |
| void BuildSpectrum | ( | void | ) |
Definition at line 323 of file gEvGenHadronNucleus.cxx.
References genie::Spline::Evaluate(), genie::gAbortingInErr, gOptFlux, gOptProbeKEmax, gOptProbeKEmin, gOptUsingFlux, gSpectrum, genie::RandomGen::Instance(), genie::controls::kRjMaxIterations, LOG, pFATAL, pNOTICE, and genie::RandomGen::RndGen().
Referenced by main().
| double GenProbeKineticEnergy | ( | void | ) |
Definition at line 317 of file gEvGenHadronNucleus.cxx.
References gOptProbeKE, gOptUsingFlux, and gSpectrum.
Referenced by InitializeEvent().
| void GetCommandLineArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| const EventRecordVisitorI * GetIntranuke | ( | void | ) |
Definition at line 235 of file gEvGenHadronNucleus.cxx.
References genie::gAbortingInErr, genie::AlgFactory::GetAlgorithm(), gOptMode, genie::AlgFactory::Instance(), LOG, and pFATAL.
Referenced by main().
| EventRecord * InitializeEvent | ( | void | ) |
Definition at line 284 of file gEvGenHadronNucleus.cxx.
References genie::GHepRecord::AddParticle(), genie::GHepRecord::AttachSummary(), GenProbeKineticEnergy(), gOptProbePdgCode, gOptTgtPdgCode, genie::PDGLibrary::Instance(), genie::kIStInitialState, and genie::utils::res::Mass().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 159 of file gEvGenHadronNucleus.cxx.
References genie::NtpWriter::AddEventRecord(), BuildSpectrum(), genie::RunOpt::BuildTune(), genie::NtpWriter::CustomizeFilenamePrefix(), 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().
| void PrintSyntax | ( | void | ) |
| string gOptEvFilePrefix |
Definition at line 152 of file gEvGenHadronNucleus.cxx.
| string gOptFlux |
Definition at line 151 of file gEvGenHadronNucleus.cxx.
| string gOptMode |
Definition at line 143 of file gEvGenHadronNucleus.cxx.
Referenced by GetIntranuke().
| int gOptNevents |
Definition at line 145 of file gEvGenHadronNucleus.cxx.
| double gOptProbeKE |
Definition at line 148 of file gEvGenHadronNucleus.cxx.
Referenced by GenProbeKineticEnergy().
| double gOptProbeKEmax |
Definition at line 150 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum().
| double gOptProbeKEmin |
Definition at line 149 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum().
| int gOptProbePdgCode |
Definition at line 146 of file gEvGenHadronNucleus.cxx.
Referenced by GetEventGenDriver(), InitializeEvent(), main(), SaveGraphsToRootFile(), and SaveToPsFile().
| long int gOptRanSeed |
Definition at line 154 of file gEvGenHadronNucleus.cxx.
| Long_t gOptRunNu |
Definition at line 144 of file gEvGenHadronNucleus.cxx.
| int gOptTgtPdgCode |
Definition at line 147 of file gEvGenHadronNucleus.cxx.
Referenced by GetEventGenDriver(), InitializeEvent(), main(), SaveGraphsToRootFile(), and SaveToPsFile().
| bool gOptUsingFlux =false |
Definition at line 153 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), and GenProbeKineticEnergy().
| TH1D* gSpectrum = 0 |
Definition at line 156 of file gEvGenHadronNucleus.cxx.
Referenced by BuildSpectrum(), GenProbeKineticEnergy(), and main().
| string kDefOptEvFilePrefix = "gntp.inuke" |
Definition at line 139 of file gEvGenHadronNucleus.cxx.
| string kDefOptMode = "hA" |
Definition at line 140 of file gEvGenHadronNucleus.cxx.
| int kDefOptNevents = 10000 |
Definition at line 137 of file gEvGenHadronNucleus.cxx.
| Long_t kDefOptRunNu = 0 |
Definition at line 138 of file gEvGenHadronNucleus.cxx.
1.8.5