33 #ifdef G4MULTITHREADED
57 G4cerr <<
" ./exampleGB05 [-m macro ] "
58 <<
" [-b biasing {'on','off'}]"
59 <<
"\n or\n ./exampleGB05 [macro.mac]"
67 int main(
int argc,
char** argv)
78 if ( argc == 2 ) macro = argv[1];
81 for (
G4int i=1; i<argc; i=i+2 )
83 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
84 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
93 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
102 #ifdef G4MULTITHREADED
104 G4cout <<
" ********** Run Manager constructed in MT mode ************ "
110 G4cout <<
" ********** Run Manager constructed in sequential mode ************ "
123 if ( onOffBiasing ==
"on" )
125 biasingPhysics->
Bias(
"neutron");
126 physicsList->RegisterPhysics(biasingPhysics);
127 G4cout <<
" ********************************************************* "
129 G4cout <<
" ********** processes are wrapped for biasing ************ "
131 G4cout <<
" ********************************************************* "
136 G4cout <<
" ************************************************* " <<
G4endl;
137 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
138 G4cout <<
" ************************************************* " <<
G4endl;
157 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the GB05ActionInitialization class.
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Definition of the GB05DetectorConstruction class.
Definition of the GB05PrimaryGeneratorAction class.
G4GLOB_DLL std::ostream G4cout
void Bias(const G4String &particleName)
virtual void Initialize()