47 #ifdef G4MULTITHREADED
86 int main(
int argc,
char** argv)
90 char* part = getenv(
"DICOM_PARTIAL_PARAM" );
92 if( part &&
G4String(part) ==
"1" ) {
99 seeds[0] = 534524575674523;
100 seeds[1] = 526345623452457;
104 #ifdef G4MULTITHREADED
105 char* nthread_c = getenv(
"DICOM_NTHREADS");
107 unsigned nthreads = 4;
108 unsigned env_threads = 0;
111 if(env_threads > 0) { nthreads = env_threads; }
116 G4cout <<
"\n\n\tDICOM running in multithreaded mode with " << nthreads
117 <<
" threads\n\n" <<
G4endl;
122 G4cout <<
"\n\n\tDICOM running in serial mode\n\n" <<
G4endl;
138 theFileMgr->
Convert(
"Data.dat");
147 char* nest = getenv(
"DICOM_NESTED_PARAM" );
148 if( nest &&
G4String(nest) ==
"1" ) {
194 G4String command =
"/control/execute ";
Definition of the DicomNestedParamDetectorConstruction class.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the DicomRegularDetectorConstruction class.
void SetNumberOfThreads(G4int n)
TShielding< G4VModularPhysicsList > Shielding
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.
G4GLOB_DLL std::ostream G4cout
Definition of the DicomPartialDetectorConstruction class.
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)
void Convert(G4String fFileName)
G4int ApplyCommand(const char *aCommand)
static DicomFileMgr * GetInstance()