32 #ifdef G4MULTITHREADED
60 G4cerr <<
" ./exampleGB04 [-m macro ] "
61 <<
" [-b biasing {'on','off'}]"
62 <<
"\n or\n ./exampleGB04 [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 ************ "
106 G4cout <<
" ********** Run Manager constructed in sequential mode ************ "
118 if ( onOffBiasing ==
"on" )
121 std::vector< G4String > processToBias;
122 processToBias.push_back(
"eBrem");
127 physicsList->RegisterPhysics(biasingPhysics);
128 G4cout <<
" ********************************************************* "
130 G4cout <<
" ********** processes are wrapped for biasing ************ "
132 G4cout <<
" ********************************************************* "
137 G4cout <<
" ************************************************* " <<
G4endl;
138 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
139 G4cout <<
" ************************************************* " <<
G4endl;
161 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the GB04PrimaryGeneratorAction class.
void SetNumberOfThreads(G4int n)
void PhysicsBias(const G4String &particleName)
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
Definition of the GB04DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
virtual void Initialize()
Definition of the GB04ActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr