34 #ifdef G4MULTITHREADED
59 G4cerr <<
" ./exampleGB06 [-m macro ] "
60 <<
" [-b biasing {'on','off'}]"
61 <<
"\n or\n ./exampleGB06 [macro.mac]"
69 int main(
int argc,
char** argv)
80 if ( argc == 2 ) macro = argv[1];
83 for (
G4int i=1; i<argc; i=i+2 )
85 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
86 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
95 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
104 #ifdef G4MULTITHREADED
106 G4cout <<
" ********** Run Manager constructed in MT mode ************ "
112 G4cout <<
" ********** Run Manager constructed in sequential mode ************ "
133 if ( onOffBiasing ==
"on" )
141 physicsList->RegisterPhysics(biasingPhysics);
142 G4cout <<
" ********************************************************* "
144 G4cout <<
" ********** processes are wrapped for biasing ************ "
146 G4cout <<
" ********************************************************* "
151 G4cout <<
" ************************************************* " <<
G4endl;
152 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
153 G4cout <<
" ************************************************* " <<
G4endl;
173 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
Definition of the GB06DetectorConstruction class.
G4int ApplyCommand(const char *aCommand)
Definition of the GB06ParallelWorldForSlices class.
void NonPhysicsBias(const G4String &particleName)
static G4UImanager * GetUIpointer()
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the GB06ActionInitialization class.
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Definition of the GB06PrimaryGeneratorAction class.
G4GLOB_DLL std::ostream G4cout
void RegisterParallelWorld(G4VUserParallelWorld *)
void AddParallelGeometry(const G4String &particleName, const G4String ¶llelGeometryName)
virtual void Initialize()