47 #ifdef G4MULTITHREADED
80 int main(
int argc,
char** argv)
84 char*
part = getenv(
"DICOM_PARTIAL_PARAM" );
86 if( part &&
G4String(part) ==
"1" ) {
93 seeds[0] = 534524575674523;
94 seeds[1] = 526345623452457;
98 #ifdef G4MULTITHREADED
99 char* nthread_c = getenv(
"DICOM_NTHREADS");
101 unsigned nthreads = 4;
102 unsigned env_threads = 0;
105 if(env_threads > 0) { nthreads = env_threads; }
110 std::cout <<
"\n\n\tDICOM running in multithreaded mode with " << nthreads
111 <<
" threads\n\n" << std::endl;
116 std::cout <<
"\n\n\tDICOM running in serial mode\n\n" << std::endl;
129 char* nest = getenv(
"DICOM_NESTED_PARAM" );
130 if( nest &&
G4String(nest) ==
"1" ) {
175 G4String command =
"/control/execute ";
186 if( !bPartial ) {
delete dcmHandler; }
Definition of the DicomNestedParamDetectorConstruction class.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the DicomPhysicsList class.
Definition of the DicomRegularDetectorConstruction class.
void SetNumberOfThreads(G4int n)
static void setTheSeeds(const long *seeds, int aux=-1)
int main(int argc, char **argv)
static void setTheSeed(long seed, int lux=3)
static G4UImanager * GetUIpointer()
Manages intersections of DICOM files with volumes.
Definition of the DicomPartialDetectorConstruction class.
void SetVerboseLevel(G4int value)
static G4double ConvertToDouble(const char *st)
Definition of the DicomActionInitialization class.
Definition of the DicomIntersectVolume class.
Definition of the DicomHandler class.
virtual void Initialize()
static void setTheEngine(HepRandomEngine *theNewEngine)
G4int ApplyCommand(const char *aCommand)