64 #ifdef G4MULTITHREADED    68 #endif // G4MULTITHREADED    88 int main(
int argc, 
char* argv[])
    91     unsigned int numberOfThreads = 1;
    94     G4String outputFileName = 
"FF_Neutron_HP.out";
    97     char makeFissionFragments[] = 
"G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS";
    98     char useWendtFission[] = 
"G4NEUTRON_HP_USE_WENDT_FISSION_MODEL";
   100     char Force[] = 
"G4FORCENUMBEROFTHREADS";
   101     if(getenv(Force) != NULL) {
   102        char doNotForce[]=
"G4FORCENUMBEROFTHREADS=1";
   107     G4cout << 
"####   Starting: " << argv[0] << 
"    ####" << 
G4endl;
   111     if(getenv(makeFissionFragments) == NULL)
   115         G4cerr << 
"!!!! The \"" << makeFissionFragments << 
"\" "   116                   "environment variable is not set!" << 
G4endl;
   117         G4cerr << 
"!!!! Please set it in order to use this example." << 
G4endl;
   125     if(getenv(useWendtFission) == NULL)
   128         G4cout << 
"!!!! Warning in example" << argv[0] << 
G4endl;
   129         G4cout << 
"!!!! The \"" << useWendtFission << 
"\" "   130                   "environment variable is not set!" << 
G4endl;
   131         G4cout << 
"!!!! Please set it if you wish to use this fission model, "   132                   "otherwise the default fission model will be used" << 
G4endl;
   142         if(argv[i][0] != 
'-')
   146             G4cerr << 
"!!!! A command-line option was expected, but \""   147                    << argv[i] << 
"\" was found" << 
G4endl;
   148             G4cerr << 
"!!!! " << argv[0] << 
" will now terminate" << 
G4endl;
   159             G4cerr << 
"!!!! An argument was expected, but \"" << argv[i + 1]
   160                    << 
"\" was found" << 
G4endl;
   161             G4cerr << 
"!!!! Ensure that a space is used to separate the "   162                       "option and argument" << 
G4endl;
   163             G4cerr << 
"!!!! " << argv[0] << 
" will now terminate" << 
G4endl;
   172             scriptFileName = 
"/control/execute ";
   173             scriptFileName.
append(argv[i + 1]);
   177             outputFileName = argv[i + 1];
   181             result = sscanf(argv[i + 1],
   188                 G4cerr << 
"!!!! An positive number was expected, but \""   189                        << argv[i + 1] << 
"\" was found" << 
G4endl;
   190                 G4cerr << 
"!!!! " << argv[0] << 
" will now terminate"   200             G4cout << 
"!!!! Warning for command " << i + 1 << 
G4endl;
   201             G4cout << 
"!!!! \"" << argv[i] << 
"\" is not a valid command"   203             G4cout << 
"!!!! " << argv[0] << 
" will ignore \"" << argv[i]
   204                    << 
"\" and \"" << argv[i + 1] << 
"\"" << 
G4endl;
   212     const G4long seed = 62737819;
   220 #ifdef G4MULTITHREADED   226     G4cout << 
"    Threads requested:    " << numberOfThreads << 
G4endl;
   232 #endif // G4MULTITHREADED   251     if(scriptFileName.length() != 0)
 
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
 
TQGSP_BIC_HP< G4VModularPhysicsList > QGSP_BIC_HP
 
void SetNumberOfThreads(G4int n)
 
static G4UImanager * GetUIpointer()
 
int main(int argc, char *argv[])
 
G4GLOB_DLL std::ostream G4cout
 
G4int GetNumberOfThreads() const
 
G4String & append(const G4String &)
 
virtual void Initialize()
 
Definition of the FFDetectorConstruction class. 
 
G4int ApplyCommand(const char *aCommand)
 
Definition of the FFActionInitialization class. 
 
G4GLOB_DLL std::ostream G4cerr