Go to the documentation of this file.
31 #include "B4DetectorConstruction.hh"
32 #include "B4PrimaryGeneratorAction.hh"
33 #include "B4RunAction.hh"
57 G4cerr <<
" exampleB4b [-m macro ] [-u UIsession]" <<
G4endl;
63 int main(
int argc,
char** argv)
74 for (
G4int i=1; i<argc; i=i+2 ) {
75 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
76 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
129 if ( macro.size() ) {
131 G4String command =
"/control/execute ";
139 UImanager->
ApplyCommand(
"/control/execute init_vis.mac");