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 G4cout <<
"\n\n\tDICOM running in multithreaded mode with " << nthreads
111 <<
" threads\n\n" <<
G4endl;
116 G4cout <<
"\n\n\tDICOM running in serial mode\n\n" <<
G4endl;
129 char* nest = getenv(
"DICOM_NESTED_PARAM" );
130 if( nest &&
G4String(nest) ==
"1" ) {
140 std::vector<G4String>* MyConstr =
new std::vector<G4String>;
141 MyConstr->push_back(
"G4EmStandardPhysics");
175 G4String command =
"/control/execute ";
186 if( !bPartial ) {
delete dcmHandler; }
Definition of the DicomNestedParamDetectorConstruction class.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the DicomRegularDetectorConstruction class.
void SetNumberOfThreads(G4int n)
Construct the phantom using DicomPhantomParameterisationColour.
static G4UImanager * GetUIpointer()
Manages intersections of DICOM files with volumes.
G4GLOB_DLL std::ostream G4cout
Definition of the DicomPartialDetectorConstruction class.
static G4double ConvertToDouble(const char *st)
Definition of the DicomActionInitialization class.
TG4GenericPhysicsList< G4VModularPhysicsList > G4GenericPhysicsList
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)