#include <getopt.h>
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTypes.hh"
#include "G4DecayTable.hh"
#include "G4KL3DecayChannel.hh"
#include "G4StepLimiter.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4VEnergyLossProcess.hh"
#include "LBNEDetectorConstruction.hh"
#include "G4PhysListFactory.hh"
#include "LBNEPrimaryGeneratorAction.hh"
#include "LBNEEventAction.hh"
#include "LBNEStackingAction.hh"
#include "LBNESteppingAction.hh"
#include "LBNETrackingAction.hh"
#include "LBNERunAction.hh"
#include "LBNERunManager.hh"
#include "LBNESurveyor.hh"
#include "LBNEVolumePlacements.hh"
#include "LBNEPlacementMessenger.hh"
#include "VersionAndContext.hh"
Go to the source code of this file.
Definition at line 48 of file g4lbnf.cc.
51 G4cout <<
"" << G4endl;
52 G4cout <<
"-------------------------------------------------" << G4endl;
53 G4cout <<
"G4LBNF Help" << G4endl;
54 G4cout <<
"Usage:" << G4endl;
55 G4cout <<
" /path/to/g4lbne --input /path/to/inputfile ";
56 G4cout <<
"--physicslist physlistname /path/to/macrofile" << G4endl;
57 G4cout <<
"ALTERNATELY: " << G4endl;
58 G4cout <<
" /path/to/g4lbne -i /path/to/inputfile -p physlistname ";
59 G4cout <<
"/path/to/macrofile " << G4endl;
60 G4cout <<
"The default physics list is QGSP_BERT" << G4endl;
61 G4cout <<
"The options --help or -h display this message " << G4endl;
62 G4cout <<
"-------------------------------------------------" << G4endl;
63 G4cout <<
"" << G4endl;
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 66 of file g4lbnf.cc.
69 G4String macroFileName =
"";
70 G4String inputFileName =
"";
71 G4String physListName =
"QGSP_BERT";
79 static struct option long_options[] = {
81 {
"input", required_argument, 0, 0},
82 {
"physicslist", required_argument, 0, 0},
85 c = getopt_long(argc,
argv,
"hi:p:", long_options, &option_index);
94 inputFileName = optarg;
97 physListName = optarg;
106 inputFileName = optarg;
109 physListName = optarg;
114 G4cout <<
"Setting macroFile to " <<
argv[argc-1] << G4endl;
115 macroFileName =
argv[argc-1];
137 G4UImanager* UI = G4UImanager::GetUIpointer();
144 runManager->SetUserInitialization(theDetector);
149 G4VisManager* visManager =
new LBNEVisManager;
150 visManager->Initialize();
170 G4UIExecutive* ui =
new G4UIExecutive(argc,
argv);
177 G4String
command =
"/control/execute ";
178 G4cout <<
"Executing " << command+macroFileName << G4endl;
179 UI->ApplyCommand(command+macroFileName);
183 G4cout<<
"Delete RunManager"<<G4endl;
void SetPhysicsList(std::string &val)
static LBNEVolumePlacements * Instance()
static VersionAndContext * Instance()
static LBNESurveyor * Instance()
void SetPhysicsListName(G4String &t)
void SetMacroFileName(std::string &val)
static LBNEPlacementMessenger * Instance()