34 #ifdef G4MULTITHREADED
57 G4cerr <<
" ./exampleGB01 [-m macro ] "
58 <<
" [-b biasing {'on','off'}]"
59 <<
"\n or\n ./exampleGB01 [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 ************ " <<
G4endl;
108 G4cout <<
" ********** Run Manager constructed in sequential mode ************ " <<
G4endl;
118 if ( onOffBiasing ==
"on" )
120 biasingPhysics->
Bias(
"gamma");
121 biasingPhysics->
Bias(
"neutron");
122 biasingPhysics->
Bias(
"kaon0L");
123 biasingPhysics->
Bias(
"kaon0S");
124 physicsList->RegisterPhysics(biasingPhysics);
125 G4cout <<
" ********************************************************* " <<
G4endl;
126 G4cout <<
" ********** processes are wrapped for biasing ************ " <<
G4endl;
127 G4cout <<
" ********************************************************* " <<
G4endl;
131 G4cout <<
" ************************************************* " <<
G4endl;
132 G4cout <<
" ********** processes are not wrapped ************ " <<
G4endl;
133 G4cout <<
" ************************************************* " <<
G4endl;
152 G4String command =
"/control/execute ";
Definition of the GB01ActionInitialization class.
void SetNumberOfThreads(G4int n)
Definition of the GB01DetectorConstruction class.
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
TFTFP_BERT< G4VModularPhysicsList > FTFP_BERT
Definition of the GB01PrimaryGeneratorAction class.
G4GLOB_DLL std::ostream G4cout
void Bias(const G4String &particleName)
virtual void Initialize()