29 #ifdef G4MULTITHREADED
58 G4cerr <<
" ./exampleGB02 [-m macro ] "
59 <<
" [-b biasing {'on','off'}]"
60 <<
"\n or\n ./exampleGB02 [macro.mac]"
68 int main(
int argc,
char** argv)
79 if ( argc == 2 ) macro = argv[1];
82 for (
G4int i=1; i<argc; i=i+2 )
84 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
85 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
94 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
97 #ifdef G4MULTITHREADED
99 G4cout <<
" ********** Run Manager constructed in MT mode ************ " <<
G4endl;
104 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)
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)