| GENIEGenerator
    | 
#include <cassert>#include <cstdlib>#include <string>#include <vector>#include <sstream>#include <TSystem.h>#include "Framework/Algorithm/AlgFactory.h"#include "Framework/EventGen/EventRecord.h"#include "Framework/EventGen/EventGeneratorI.h"#include "Framework/EventGen/EventRecordVisitorI.h"#include "Framework/EventGen/GMCJMonitor.h"#include "Framework/Messenger/Messenger.h"#include "Framework/Ntuple/NtpWriter.h"#include "Physics/NNBarOscillation/NNBarOscMode.h"#include "Physics/NNBarOscillation/NNBarOscUtils.h"#include "Framework/Numerical/RandomGen.h"#include "Framework/ParticleData/PDGCodes.h"#include "Framework/ParticleData/PDGUtils.h"#include "Framework/ParticleData/PDGLibrary.h"#include "Framework/Utils/StringUtils.h"#include "Framework/Utils/UnitUtils.h"#include "Framework/Utils/PrintUtils.h"#include "Framework/Utils/AppInit.h"#include "Framework/Utils/RunOpt.h"#include "Framework/Utils/CmdLnArgParser.h"
Go to the source code of this file.
| Functions | |
| void | GetCommandLineArgs (int argc, char **argv) | 
| void | PrintSyntax (void) | 
| int | SelectAnnihilationMode (int pdg_code) | 
| int | SelectInitState (void) | 
| const EventRecordVisitorI * | NeutronOscGenerator (void) | 
| int | main (int argc, char **argv) | 
| Variables | |
| string | kDefOptGeomLUnits = "mm" | 
| string | kDefOptGeomDUnits = "g_cm3" | 
| NtpMCFormat_t | kDefOptNtpFormat = kNFGHEP | 
| string | kDefOptEvFilePrefix = "gntp" | 
| Long_t | gOptRunNu = 1000 | 
| int | gOptNev = 10 | 
| NNBarOscMode_t | gOptDecayMode = kNONull | 
| string | gOptEvFilePrefix = kDefOptEvFilePrefix | 
| bool | gOptUsingRootGeom = false | 
| map< int, double > | gOptTgtMix | 
| string | gOptRootGeom | 
| string | gOptRootGeomTopVol = "" | 
| double | gOptGeomLUnits = 0 | 
| double | gOptGeomDUnits = 0 | 
| long int | gOptRanSeed = -1 | 
| void GetCommandLineArgs | ( | int | argc, | 
| char ** | argv | ||
| ) | 
| int main | ( | int | argc, | 
| char ** | argv | ||
| ) | 
Definition at line 183 of file gNNBarOscEvGen.cxx.
References genie::NtpWriter::AddEventRecord(), genie::NtpWriter::CustomizeFilenamePrefix(), GetCommandLineArgs(), gOptEvFilePrefix, gOptNev, gOptRanSeed, gOptRunNu, genie::NtpWriter::Initialize(), genie::RunOpt::Instance(), kDefOptNtpFormat, LOG, genie::utils::app_init::MesgThresholds(), NeutronOscGenerator(), genie::Interaction::NOsc(), pINFO, pNOTICE, genie::EventRecordVisitorI::ProcessEventRecord(), genie::utils::app_init::RandGen(), genie::NtpWriter::Save(), SelectAnnihilationMode(), SelectInitState(), genie::GHepRecord::SetPrintLevel(), genie::GMCJMonitor::SetRefreshRate(), and genie::GMCJMonitor::Update().
| const EventRecordVisitorI * NeutronOscGenerator | ( | void | ) | 
Definition at line 323 of file gNNBarOscEvGen.cxx.
References genie::gAbortingInErr, genie::AlgFactory::GetAlgorithm(), genie::AlgFactory::Instance(), LOG, and pFATAL.
Referenced by main().
| void PrintSyntax | ( | void | ) | 
| int SelectAnnihilationMode | ( | int | pdg_code | ) | 
Definition at line 244 of file gNNBarOscEvGen.cxx.
References genie::gAbortingInErr, gOptDecayMode, genie::RandomGen::Instance(), genie::kNORandom, LOG, pERROR, pFATAL, genie::RandomGen::RndNum(), and genie::RandomGen::SetSeed().
Referenced by main().
| int SelectInitState | ( | void | ) | 
Definition at line 309 of file gNNBarOscEvGen.cxx.
References genie::gAbortingInErr, gOptTgtMix, LOG, and pERROR.
Referenced by main().
| NNBarOscMode_t gOptDecayMode = kNONull | 
Definition at line 172 of file gNNBarOscEvGen.cxx.
| string gOptEvFilePrefix = kDefOptEvFilePrefix | 
Definition at line 173 of file gNNBarOscEvGen.cxx.
| double gOptGeomDUnits = 0 | 
Definition at line 179 of file gNNBarOscEvGen.cxx.
| double gOptGeomLUnits = 0 | 
Definition at line 178 of file gNNBarOscEvGen.cxx.
| int gOptNev = 10 | 
Definition at line 171 of file gNNBarOscEvGen.cxx.
| long int gOptRanSeed = -1 | 
Definition at line 180 of file gNNBarOscEvGen.cxx.
| string gOptRootGeom | 
Definition at line 176 of file gNNBarOscEvGen.cxx.
| string gOptRootGeomTopVol = "" | 
Definition at line 177 of file gNNBarOscEvGen.cxx.
| Long_t gOptRunNu = 1000 | 
Definition at line 170 of file gNNBarOscEvGen.cxx.
| map<int,double> gOptTgtMix | 
Definition at line 175 of file gNNBarOscEvGen.cxx.
| bool gOptUsingRootGeom = false | 
Definition at line 174 of file gNNBarOscEvGen.cxx.
| string kDefOptEvFilePrefix = "gntp" | 
Definition at line 167 of file gNNBarOscEvGen.cxx.
| string kDefOptGeomDUnits = "g_cm3" | 
Definition at line 165 of file gNNBarOscEvGen.cxx.
| string kDefOptGeomLUnits = "mm" | 
Definition at line 164 of file gNNBarOscEvGen.cxx.
| NtpMCFormat_t kDefOptNtpFormat = kNFGHEP | 
Definition at line 166 of file gNNBarOscEvGen.cxx.
 1.8.5
 1.8.5