|
GENIEGenerator
|
#include <cstdlib>#include <cassert>#include <sstream>#include <string>#include <vector>#include <map>#include <TFile.h>#include <TTree.h>#include <TSystem.h>#include <TVector3.h>#include <TH1.h>#include <TF1.h>#include "Framework/Algorithm/AlgConfigPool.h"#include "Framework/Conventions/XmlParserStatus.h"#include "Framework/Conventions/GBuild.h"#include "Framework/Conventions/Controls.h"#include "Framework/Conventions/Constants.h"#include "Framework/Conventions/Units.h"#include "Framework/EventGen/EventRecord.h"#include "Framework/EventGen/GFluxI.h"#include "Framework/EventGen/GEVGDriver.h"#include "Framework/EventGen/GMCJDriver.h"#include "Framework/EventGen/GMCJMonitor.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/ParticleData/PDGUtils.h"#include "Framework/Utils/AppInit.h"#include "Framework/Utils/RunOpt.h"#include "Framework/Utils/XSecSplineList.h"#include "Framework/Utils/StringUtils.h"#include "Framework/Utils/PrintUtils.h"#include "Framework/Utils/SystemUtils.h"#include "Framework/Utils/CmdLnArgParser.h"Go to the source code of this file.
Functions | |
| void | GetCommandLineArgs (int argc, char **argv) |
| void | Initialize (void) |
| void | PrintSyntax (void) |
| bool | CheckUnitarityLimit (void) |
| void | GenerateEventsAtFixedInitState (void) |
| int | main (int argc, char **argv) |
Variables | |
| int | kDefOptNevents = 0 |
| NtpMCFormat_t | kDefOptNtpFormat = kNFGHEP |
| Long_t | kDefOptRunNu = 0 |
| int | gOptNevents |
| double | gOptDMEnergy |
| double | gOptDMEnergyRange |
| double | gOptDMMass |
| double | gOptZpCoupling |
| map< int, double > | gOptTgtMix |
| double | gOptMedRatio |
| Long_t | gOptRunNu |
| string | gOptFlux |
| bool | gOptWeighted |
| bool | gOptUsingFluxOrTgtMix = false |
| long int | gOptRanSeed |
| string | gOptInpXSecFile |
| string | gOptOutFileName |
| string | gOptStatFileName |
| bool CheckUnitarityLimit | ( | void | ) |
Definition at line 876 of file gEvGenDM.cxx.
References genie::units::cm2, genie::AlgConfigPool::CommonList(), genie::Registry::Get(), gOptDMEnergy, gOptDMMass, gOptMedRatio, genie::AlgConfigPool::Instance(), genie::constants::kNucleonMass, genie::constants::kPi, LOG, and pWARN.
Referenced by GenerateEventsAtFixedInitState().
| void GenerateEventsAtFixedInitState | ( | void | ) |
Definition at line 291 of file gEvGenDM.cxx.
References genie::NtpWriter::AddEventRecord(), CheckUnitarityLimit(), genie::GEVGDriver::Configure(), genie::GMCJMonitor::CustomizeFilename(), genie::NtpWriter::CustomizeFilename(), genie::GEVGDriver::GenerateEvent(), gOptDMEnergy, gOptDMMass, gOptNevents, gOptOutFileName, gOptRanSeed, gOptRunNu, gOptStatFileName, gOptTgtMix, genie::NtpWriter::Initialize(), genie::RunOpt::Instance(), kDefOptNtpFormat, genie::kPdgDarkMatter, LOG, pFATAL, pNOTICE, genie::NtpWriter::Save(), genie::GEVGDriver::SetEventGeneratorList(), genie::GMCJMonitor::SetRefreshRate(), genie::GEVGDriver::SetUnphysEventMask(), and genie::GMCJMonitor::Update().
Referenced by main().
| void GetCommandLineArgs | ( | int | argc, |
| char ** | argv ) |
Definition at line 603 of file gEvGenDM.cxx.
References genie::CmdLnArgParser::ArgAsDouble(), genie::CmdLnArgParser::ArgAsInt(), genie::CmdLnArgParser::ArgAsLong(), genie::CmdLnArgParser::ArgAsString(), genie::RunOpt::EnableBareXSecPreCalc(), genie::gAbortingInErr, gOptDMEnergy, gOptDMEnergyRange, gOptDMMass, gOptFlux, gOptInpXSecFile, gOptMedRatio, gOptNevents, gOptOutFileName, gOptRanSeed, gOptRunNu, gOptStatFileName, gOptTgtMix, gOptUsingFluxOrTgtMix, gOptWeighted, gOptZpCoupling, genie::RunOpt::Instance(), kDefOptNevents, kDefOptRunNu, LOG, genie::CmdLnArgParser::OptionExists(), pFATAL, pINFO, pNOTICE, genie::utils::print::PrintFramedMesg(), PrintSyntax(), pWARN, genie::RunOpt::ReadFromCommandLine(), and genie::utils::str::Split().
Referenced by main().
| void Initialize | ( | void | ) |
Definition at line 271 of file gEvGenDM.cxx.
References genie::RunOpt::BuildTune(), genie::utils::app_init::CacheFile(), gOptInpXSecFile, gOptRanSeed, genie::RunOpt::Instance(), LOG, genie::utils::app_init::MesgThresholds(), pFATAL, genie::utils::app_init::RandGen(), genie::GHepRecord::SetPrintLevel(), and genie::utils::app_init::XSecTable().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 235 of file gEvGenDM.cxx.
References genie::PDGLibrary::AddDarkMatter(), genie::AlgConfigPool::CommonList(), GenerateEventsAtFixedInitState(), GetCommandLineArgs(), gOptDMMass, gOptMedRatio, gOptUsingFluxOrTgtMix, gOptZpCoupling, Initialize(), genie::AlgConfigPool::Instance(), genie::PDGLibrary::Instance(), genie::Registry::Lock(), LOG, pERROR, genie::Registry::Set(), and genie::Registry::UnLock().
| void PrintSyntax | ( | void | ) |
Definition at line 850 of file gEvGenDM.cxx.
Referenced by GetCommandLineArgs().
| double gOptDMEnergy |
Definition at line 219 of file gEvGenDM.cxx.
Referenced by CheckUnitarityLimit(), GenerateEventsAtFixedInitState(), and GetCommandLineArgs().
| double gOptDMEnergyRange |
Definition at line 220 of file gEvGenDM.cxx.
Referenced by GetCommandLineArgs().
| double gOptDMMass |
Definition at line 221 of file gEvGenDM.cxx.
Referenced by CheckUnitarityLimit(), GenerateEventsAtFixedInitState(), GetCommandLineArgs(), and main().
| string gOptFlux |
Definition at line 226 of file gEvGenDM.cxx.
| string gOptInpXSecFile |
Definition at line 230 of file gEvGenDM.cxx.
| double gOptMedRatio |
Definition at line 224 of file gEvGenDM.cxx.
Referenced by CheckUnitarityLimit(), GetCommandLineArgs(), and main().
| int gOptNevents |
Definition at line 218 of file gEvGenDM.cxx.
| string gOptOutFileName |
Definition at line 231 of file gEvGenDM.cxx.
| long int gOptRanSeed |
Definition at line 229 of file gEvGenDM.cxx.
| Long_t gOptRunNu |
Definition at line 225 of file gEvGenDM.cxx.
| string gOptStatFileName |
Definition at line 232 of file gEvGenDM.cxx.
| map<int,double> gOptTgtMix |
Definition at line 223 of file gEvGenDM.cxx.
| bool gOptUsingFluxOrTgtMix = false |
Definition at line 228 of file gEvGenDM.cxx.
| bool gOptWeighted |
Definition at line 227 of file gEvGenDM.cxx.
| double gOptZpCoupling |
Definition at line 222 of file gEvGenDM.cxx.
Referenced by GetCommandLineArgs(), and main().
| int kDefOptNevents = 0 |
Definition at line 213 of file gEvGenDM.cxx.
| NtpMCFormat_t kDefOptNtpFormat = kNFGHEP |
Definition at line 214 of file gEvGenDM.cxx.
| Long_t kDefOptRunNu = 0 |
Definition at line 215 of file gEvGenDM.cxx.