GENIEGenerator
|
#include <cassert>
#include <cstdlib>
#include <cctype>
#include <string>
#include <vector>
#include <sstream>
#include <map>
#include <iomanip>
#include <cmath>
#include <TRotation.h>
#include <TMath.h>
#include <TGeoShape.h>
#include <TGeoBBox.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/Ntuple/NtpMCFormat.h"
#include "Framework/Numerical/RandomGen.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/Utils/XSecSplineList.h"
#include "Framework/Utils/StringUtils.h"
#include "Framework/Utils/SystemUtils.h"
#include "Framework/Utils/UnitUtils.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Framework/Utils/PrintUtils.h"
#include "Framework/Utils/AppInit.h"
#include "Framework/Utils/RunOpt.h"
Go to the source code of this file.
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
void | PrintSyntax (void) |
GAtmoFlux * | GetFlux (void) |
GeomAnalyzerI * | GetGeometry (void) |
int | main (int argc, char **argv) |
Variables | |
Long_t | gOptRunNu |
string | gOptFluxSim |
map< int, string > | gOptFluxFiles |
bool | gOptUsingRootGeom = false |
map< int, double > | gOptTgtMix |
string | gOptRootGeom |
string | gOptRootGeomTopVol = "" |
double | gOptGeomLUnits = 0 |
double | gOptGeomDUnits = 0 |
string | gOptExtMaxPlXml |
int | gOptNev = -1 |
double | gOptKtonYrExposure = -1 |
double | gOptSecExposure = -1 |
double | gOptEvMin |
double | gOptEvMax |
string | gOptEvFilePrefix |
TRotation | gOptRot |
long int | gOptRanSeed |
string | gOptInpXSecFile |
double | gOptRL = -1 |
double | gOptRT = -1 |
NtpMCFormat_t | kDefOptNtpFormat = kNFGHEP |
string | kDefOptEvFilePrefix = "gntp" |
string | kDefOptGeomLUnits = "mm" |
string | kDefOptGeomDUnits = "g_cm3" |
double | kDefOptEvMin = 0.5 |
double | kDefOptEvMax = 50.0 |
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 563 of file gAtmoEvGen.cxx.
References genie::CmdLnArgParser::ArgAsDouble(), genie::CmdLnArgParser::ArgAsInt(), genie::CmdLnArgParser::ArgAsLong(), genie::CmdLnArgParser::ArgAsString(), genie::utils::system::FileExists(), genie::PDGLibrary::Find(), genie::gAbortingInErr, geom, gOptEvFilePrefix, gOptEvMax, gOptEvMin, gOptExtMaxPlXml, gOptFluxFiles, gOptFluxSim, gOptGeomDUnits, gOptGeomLUnits, gOptInpXSecFile, gOptKtonYrExposure, gOptNev, gOptRanSeed, gOptRL, gOptRootGeom, gOptRootGeomTopVol, gOptRot, gOptRT, gOptRunNu, gOptSecExposure, gOptTgtMix, gOptUsingRootGeom, genie::RunOpt::Instance(), genie::PDGLibrary::Instance(), kDefOptEvFilePrefix, kDefOptEvMax, kDefOptGeomDUnits, kDefOptGeomLUnits, LOG, lunits, genie::CmdLnArgParser::OptionExists(), pDEBUG, pFATAL, pINFO, pNOTICE, genie::utils::print::PrintFramedMesg(), PrintSyntax(), genie::RunOpt::ReadFromCommandLine(), genie::utils::str::Split(), and genie::utils::units::UnitFromString().
Referenced by main().
GFluxI * GetFlux | ( | void | ) |
Definition at line 505 of file gAtmoEvGen.cxx.
References genie::flux::GAtmoFlux::AddFluxFile(), genie::flux::GAtmoFlux::ForceMaxEnergy(), genie::flux::GAtmoFlux::ForceMinEnergy(), genie::gAbortingInErr, genie::units::GeV, gOptEvMax, gOptEvMin, gOptFluxFiles, gOptFluxSim, gOptRL, gOptRot, gOptRT, genie::flux::GAtmoFlux::LoadFluxData(), LOG, pFATAL, genie::flux::GAtmoFlux::SetRadii(), and genie::flux::GAtmoFlux::SetUserCoordSystem().
Referenced by genie::flux::GAtmoFlux::GenerateNext_1try(), and main().
GeomAnalyzerI * GetGeometry | ( | void | ) |
Definition at line 433 of file gAtmoEvGen.cxx.
References genie::gAbortingInErr, genie::geometry::ROOTGeomAnalyzer::GetGeometry(), gOptGeomDUnits, gOptGeomLUnits, gOptRL, gOptRootGeom, gOptRootGeomTopVol, gOptRT, gOptTgtMix, gOptUsingRootGeom, genie::geometry::ROOTGeomAnalyzer::LengthUnits(), LOG, pFATAL, pNOTICE, and genie::utils::geometry::RecursiveExhaust().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 327 of file gAtmoEvGen.cxx.
References genie::NtpWriter::AddEventRecord(), genie::RunOpt::BuildTune(), genie::utils::app_init::CacheFile(), genie::GMCJDriver::Configure(), genie::NtpWriter::CustomizeFilenamePrefix(), genie::GMCJDriver::ForceSingleProbScale(), genie::GMCJDriver::GenerateEvent(), GetCommandLineArgs(), GetFlux(), genie::flux::GAtmoFlux::GetFluxSurfaceArea(), GetGeometry(), genie::flux::GAtmoFlux::GetTotalFluxInEnergyRange(), genie::GMCJDriver::GlobProbScale(), gOptEvFilePrefix, gOptInpXSecFile, gOptNev, gOptRanSeed, gOptRL, gOptRT, gOptRunNu, gOptSecExposure, genie::NtpWriter::Initialize(), genie::RunOpt::Instance(), kDefOptNtpFormat, LOG, genie::utils::app_init::MesgThresholds(), genie::GMCJDriver::NFluxNeutrinos(), pFATAL, pNOTICE, pWARN, genie::utils::app_init::RandGen(), genie::NtpWriter::Save(), genie::GMCJDriver::SetEventGeneratorList(), genie::GHepRecord::SetPrintLevel(), genie::GMCJMonitor::SetRefreshRate(), genie::GMCJMonitor::Update(), genie::GMCJDriver::UseFluxDriver(), genie::GMCJDriver::UseGeomAnalyzer(), genie::GMCJDriver::UseSplines(), and genie::utils::app_init::XSecTable().
Referenced by genie::AlgConfigPool::LoadMasterConfigs().
void PrintSyntax | ( | void | ) |
Definition at line 1051 of file gAtmoEvGen.cxx.
Referenced by DecodeCommandLine(), GetCommandLineArgs(), GetEventRange(), main(), ParseFluxFileConfig(), and ParseFluxHst().
string gOptEvFilePrefix |
Definition at line 310 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptEvMax |
Definition at line 309 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and GetFlux().
double gOptEvMin |
Definition at line 308 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and GetFlux().
string gOptExtMaxPlXml |
Definition at line 304 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
map<int,string> gOptFluxFiles |
Definition at line 297 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and GetFlux().
string gOptFluxSim |
Definition at line 296 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and GetFlux().
double gOptGeomDUnits = 0 |
Definition at line 303 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetGeometry(), and main().
double gOptGeomLUnits = 0 |
Definition at line 302 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetGeometry(), main(), and ReadInConfig().
string gOptInpXSecFile |
Definition at line 313 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
double gOptKtonYrExposure = -1 |
Definition at line 306 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs().
int gOptNev = -1 |
Definition at line 305 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), main(), and TestDecay().
long int gOptRanSeed |
Definition at line 312 of file gAtmoEvGen.cxx.
Referenced by GenerateEventsAtFixedInitState(), GetCommandLineArgs(), and main().
double gOptRL = -1 |
Definition at line 314 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetFlux(), GetGeometry(), and main().
string gOptRootGeom |
Definition at line 300 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetGeometry(), main(), and TestDecay().
string gOptRootGeomTopVol = "" |
Definition at line 301 of file gAtmoEvGen.cxx.
Referenced by CreateRockBoxSelection(), GetCommandLineArgs(), GetGeometry(), and main().
TRotation gOptRot |
Definition at line 311 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and GetFlux().
double gOptRT = -1 |
Definition at line 315 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetFlux(), GetGeometry(), and main().
Long_t gOptRunNu |
Definition at line 295 of file gAtmoEvGen.cxx.
Referenced by GenerateEventsAtFixedInitState(), GetCommandLineArgs(), and main().
double gOptSecExposure = -1 |
Definition at line 307 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), and main().
map<int,double> gOptTgtMix |
Definition at line 299 of file gAtmoEvGen.cxx.
Referenced by GenerateEventsAtFixedInitState(), GetCommandLineArgs(), GetGeometry(), main(), and SelectInitState().
bool gOptUsingRootGeom = false |
Definition at line 298 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs(), GetGeometry(), and main().
string kDefOptEvFilePrefix = "gntp" |
Definition at line 320 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs().
double kDefOptEvMax = 50.0 |
Definition at line 324 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs().
double kDefOptEvMin = 0.5 |
Definition at line 323 of file gAtmoEvGen.cxx.
string kDefOptGeomDUnits = "g_cm3" |
Definition at line 322 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs().
string kDefOptGeomLUnits = "mm" |
Definition at line 321 of file gAtmoEvGen.cxx.
Referenced by GetCommandLineArgs().
NtpMCFormat_t kDefOptNtpFormat = kNFGHEP |
Definition at line 319 of file gAtmoEvGen.cxx.
Referenced by GenerateEventsAtFixedInitState(), and main().