GENIEGenerator
|
#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 |
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 524 of file gT2KEvGen.cxx.
References genie::flux::GCylindTH1Flux::AddEnergySpectrum(), genie::NtpWriter::AddEventRecord(), 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(), 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(), kDefOptNtpFormat, genie::geometry::ROOTGeomAnalyzer::LengthUnits(), genie::flux::GJPARCNuFlux::LoadBeamSimData(), genie::GMCJDriver::LoadFluxProbabilities(), LOG, genie::utils::app_init::MesgThresholds(), genie::flux::GJPARCNuFlux::PassThroughInfo(), pERROR, pFATAL, pINFO, pNOTICE, 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(), genie::GMCJDriver::SumFluxIntProbs(), genie::GMCJMonitor::Update(), genie::GMCJDriver::UseFluxDriver(), genie::GMCJDriver::UseGeomAnalyzer(), genie::GMCJDriver::UseMaxPathLengths(), genie::GMCJDriver::UseSplines(), and genie::utils::app_init::XSecTable().
void PrintSyntax | ( | void | ) |
string gOptDetectorLocation |
Definition at line 507 of file gT2KEvGen.cxx.
string gOptEvFilePrefix |
Definition at line 514 of file gT2KEvGen.cxx.
bool gOptExitAtEndOfFullFluxCycles |
Definition at line 513 of file gT2KEvGen.cxx.
Referenced by main().
string gOptExtMaxPlXml |
Definition at line 505 of file gT2KEvGen.cxx.
string gOptFluxFile |
Definition at line 506 of file gT2KEvGen.cxx.
map<int,TH1D*> gOptFluxHst |
Definition at line 500 of file gT2KEvGen.cxx.
int gOptFluxNCycles |
Definition at line 510 of file gT2KEvGen.cxx.
Referenced by main().
double gOptFluxNorm |
Definition at line 508 of file gT2KEvGen.cxx.
Referenced by main().
PDGCodeList gOptFluxNtpNuList(false) |
Referenced by main().
string gOptFluxProbFileName |
Definition at line 517 of file gT2KEvGen.cxx.
Referenced by main().
double gOptGeomDUnits = 0 |
Definition at line 504 of file gT2KEvGen.cxx.
double gOptGeomLUnits = 0 |
Definition at line 503 of file gT2KEvGen.cxx.
string gOptInpXSecFile |
Definition at line 521 of file gT2KEvGen.cxx.
int gOptNev |
Definition at line 511 of file gT2KEvGen.cxx.
double gOptPOT |
Definition at line 512 of file gT2KEvGen.cxx.
bool gOptRandomFluxOffset = false |
Definition at line 519 of file gT2KEvGen.cxx.
Referenced by main().
long int gOptRanSeed |
Definition at line 520 of file gT2KEvGen.cxx.
string gOptRootGeom |
Definition at line 501 of file gT2KEvGen.cxx.
string gOptRootGeomTopVol = "" |
Definition at line 502 of file gT2KEvGen.cxx.
Long_t gOptRunNu |
Definition at line 496 of file gT2KEvGen.cxx.
bool gOptSaveFluxProbsFile = false |
Definition at line 516 of file gT2KEvGen.cxx.
Referenced by main().
string gOptSaveFluxProbsFileName |
Definition at line 518 of file gT2KEvGen.cxx.
Referenced by main().
map<int,double> gOptTgtMix |
Definition at line 499 of file gT2KEvGen.cxx.
bool gOptUseFluxProbs = false |
Definition at line 515 of file gT2KEvGen.cxx.
Referenced by main().
bool gOptUsingHistFlux = false |
Definition at line 498 of file gT2KEvGen.cxx.
bool gOptUsingRootGeom = false |
Definition at line 497 of file gT2KEvGen.cxx.
string kDefOptEvFilePrefix = "gntp" |
Definition at line 492 of file gT2KEvGen.cxx.
double kDefOptFluxNorm = 1E+21 |
Definition at line 491 of file gT2KEvGen.cxx.
string kDefOptGeomDUnits = "g_cm3" |
Definition at line 489 of file gT2KEvGen.cxx.
string kDefOptGeomLUnits = "mm" |
Definition at line 488 of file gT2KEvGen.cxx.
NtpMCFormat_t kDefOptNtpFormat = kNFGHEP |
Definition at line 490 of file gT2KEvGen.cxx.