32 #ifdef G4MULTITHREADED
60 G4cerr <<
" ./exampleGB01 [-m macro ] "
61 <<
" [-b biasing {'on','off'}]"
62 <<
"\n or\n ./exampleGB01 [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 biasingPhysics->
Bias(
"kaon0L");
120 biasingPhysics->
Bias(
"kaon0S");
121 physicsList->RegisterPhysics(biasingPhysics);
122 G4cout <<
" ********************************************************* " <<
G4endl;
123 G4cout <<
" ********** processes are wrapped for biasing ************ " <<
G4endl;
124 G4cout <<
" ********************************************************* " <<
G4endl;
128 G4cout <<
" ************************************************* " <<
G4endl;
129 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
130 G4cout <<
" ************************************************* " <<
G4endl;
152 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
Definition of the GB01DetectorConstruction class.
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
Definition of the GB01PrimaryGeneratorAction class.
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
virtual void Initialize()
Definition of the GB01ActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
void Bias(const G4String &particleName)