32 #ifdef G4MULTITHREADED
60 G4cerr <<
" ./exampleGB02 [-m macro ] "
61 <<
" [-b biasing {'on','off'}]"
62 <<
"\n or\n ./exampleGB02 [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";
98 #ifdef G4MULTITHREADED
100 G4cout <<
" ********** Run Manager constructed in MT mode ************ " <<
G4endl;
105 G4cout <<
" ********** Run Manager constructed in sequential mode ************ " <<
G4endl;
115 if ( onOffBiasing ==
"on" )
117 biasingPhysics->
Bias(
"gamma");
118 biasingPhysics->
Bias(
"neutron");
119 physicsList->RegisterPhysics(biasingPhysics);
120 G4cout <<
" ********************************************************* " <<
G4endl;
121 G4cout <<
" ********** processes are wrapped for biasing ************ " <<
G4endl;
122 G4cout <<
" ********************************************************* " <<
G4endl;
126 G4cout <<
" ************************************************* " <<
G4endl;
127 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
128 G4cout <<
" ************************************************* " <<
G4endl;
150 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
Definition of the GB02PrimaryGeneratorAction class.
Definition of the GB02DetectorConstruction class.
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
int main(int argc, char **argv)
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Action initialization class.
virtual void Initialize()
Definition of the GB02ActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
void Bias(const G4String &particleName)