32 #ifdef G4MULTITHREADED
61 G4cerr <<
" ./exampleGB04 [-m macro ] "
62 <<
" [-b biasing {'on','off'}]"
63 <<
"\n or\n ./exampleGB04 [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 ************ "
120 if ( onOffBiasing ==
"on" )
123 std::vector< G4String > processToBias;
124 processToBias.push_back(
"eBrem");
129 physicsList->RegisterPhysics(biasingPhysics);
130 G4cout <<
" ********************************************************* "
132 G4cout <<
" ********** processes are wrapped for biasing ************ "
134 G4cout <<
" ********************************************************* "
139 G4cout <<
" ************************************************* " <<
G4endl;
140 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
141 G4cout <<
" ************************************************* " <<
G4endl;
163 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the GB04PrimaryGeneratorAction class.
void SetNumberOfThreads(G4int n)
void PhysicsBias(const G4String &particleName)
static G4UImanager * GetUIpointer()
Definition of the GB04DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
Action initialization class.
int main(int argc, char **argv)
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
virtual void Initialize()
Definition of the GB04ActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr