34 #ifdef G4MULTITHREADED
57 G4cerr <<
" ./exampleGB04 [-m macro ] "
58 <<
" [-b biasing {'on','off'}]"
59 <<
"\n or\n ./exampleGB04 [macro.mac]"
66 int main(
int argc,
char** argv)
77 if ( argc == 2 ) macro = argv[1];
80 for (
G4int i=1; i<argc; i=i+2 )
82 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
83 else if (
G4String(argv[i]) ==
"-b" ) onOffBiasing = argv[i+1];
92 if ( onOffBiasing ==
"" ) onOffBiasing =
"on";
101 #ifdef G4MULTITHREADED
103 G4cout <<
" ********** Run Manager constructed in MT mode ************ "
109 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;
160 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
G4int ApplyCommand(const char *aCommand)
Definition of the GB04ActionInitialization class.
static G4UImanager * GetUIpointer()
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void PhysicsBias(const G4String &particleName)
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Definition of the GB04PrimaryGeneratorAction class.
Definition of the GB04DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
virtual void Initialize()