32 #ifdef G4MULTITHREADED
61 G4cerr <<
" ./exampleGB05 [-m macro ] "
62 <<
" [-b biasing {'on','off'}]"
63 <<
"\n or\n ./exampleGB05 [macro.mac]"
71 int main(
int argc,
char** argv)
82 if ( argc == 2 ) macro = argv[1];
85 for (
G4int i=1; i<argc; i=i+2 )
87 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
88 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
97 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
100 #ifdef G4MULTITHREADED
102 G4cout <<
" ********** Run Manager constructed in MT mode ************ "
108 G4cout <<
" ********** Run Manager constructed in sequential mode ************ "
121 if ( onOffBiasing ==
"on" )
123 biasingPhysics->
Bias(
"neutron");
124 physicsList->RegisterPhysics(biasingPhysics);
125 G4cout <<
" ********************************************************* "
127 G4cout <<
" ********** processes are wrapped for biasing ************ "
129 G4cout <<
" ********************************************************* "
134 G4cout <<
" ************************************************* " <<
G4endl;
135 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
136 G4cout <<
" ************************************************* " <<
G4endl;
158 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
Definition of the GB05DetectorConstruction class.
static G4UImanager * GetUIpointer()
Action initialization class.
G4GLOB_DLL std::ostream G4cout
Definition of the GB05PrimaryGeneratorAction class.
int main(int argc, char **argv)
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
virtual void Initialize()
Definition of the GB05ActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
void Bias(const G4String &particleName)