32 #ifdef G4MULTITHREADED
62 G4cerr <<
" ./exampleGB06 [-m macro ] "
63 <<
" [-b biasing {'on','off'}]"
64 <<
"\n or\n ./exampleGB06 [macro.mac]"
72 int main(
int argc,
char** argv)
83 if ( argc == 2 ) macro = argv[1];
86 for (
G4int i=1; i<argc; i=i+2 )
88 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
89 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
98 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
101 #ifdef G4MULTITHREADED
103 G4cout <<
" ********** Run Manager constructed in MT mode ************ "
109 G4cout <<
" ********** Run Manager constructed in sequential mode ************ "
130 if ( onOffBiasing ==
"on" )
138 physicsList->RegisterPhysics(biasingPhysics);
139 G4cout <<
" ********************************************************* "
141 G4cout <<
" ********** processes are wrapped for biasing ************ "
143 G4cout <<
" ********************************************************* "
148 G4cout <<
" ************************************************* " <<
G4endl;
149 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
150 G4cout <<
" ************************************************* " <<
G4endl;
173 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the GB06ParallelWorldForSlices class.
void SetNumberOfThreads(G4int n)
Definition of the GB06DetectorConstruction class.
int main(int argc, char **argv)
void AddParallelGeometry(const G4String &particleName, const G4String ¶llelGeometryName)
void RegisterParallelWorld(G4VUserParallelWorld *)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Definition of the GB06PrimaryGeneratorAction class.
virtual void Initialize()
Definition of the GB06ActionInitialization class.
void NonPhysicsBias(const G4String &particleName)
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr