Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 68 of file exampleGB02.cc.
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
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
virtual void Initialize()
G4int ApplyCommand(const char *aCommand)
void Bias(const G4String &particleName)