Go to the documentation of this file.
32 #include "B4PrimaryGeneratorAction.hh"
33 #include "B4RunAction.hh"
55 G4cerr <<
" exampleB4c [-m macro ] [-u UIsession]" <<
G4endl;
61 int main(
int argc,
char** argv)
72 for (
G4int i=1; i<argc; i=i+2 ) {
73 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
74 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
120 if ( macro.size() ) {
122 G4String command =
"/control/execute ";
130 UImanager->
ApplyCommand(
"/control/execute init_vis.mac");