47 #ifdef G4MULTITHREADED
80 int main(
int argc,
char** argv)
84 char* part = getenv(
"DICOM_PARTIAL_PARAM" );
86 if( part &&
G4String(part) ==
"1" ) {
90 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
91 CLHEP::HepRandom::setTheSeed(24534575684783);
93 seeds[0] = 534524575674523;
94 seeds[1] = 526345623452457;
95 CLHEP::HepRandom::setTheSeeds(seeds);
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)
Construct the phantom using DicomPhantomParameterisationColour.
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.
DicomRegularDetectorConstruction class.
Dicom detector construction.
Definition of the DicomHandler class.
virtual void Initialize()
int main(int argc, char **argv)
Construct a DICOM Geant4 geometry produced from the intersetion of a DICOM file and a volume...
G4int ApplyCommand(const char *aCommand)