47 #ifdef G4MULTITHREADED
82 int main(
int argc,
char** argv)
91 char*
part = getenv(
"DICOM_PARTIAL_PARAM" );
93 if( part &&
G4String(part) ==
"1" ) {
100 seeds[0] = 534524575674523;
101 seeds[1] = 526345623452457;
105 #ifdef G4MULTITHREADED
106 char* nthread_c = getenv(
"DICOM_NTHREADS");
108 unsigned nthreads = 4;
109 unsigned env_threads = 0;
112 if(env_threads > 0) { nthreads = env_threads; }
117 G4cout <<
"\n\n\tDICOM running in multithreaded mode with " << nthreads
118 <<
" threads\n\n" <<
G4endl;
123 G4cout <<
"\n\n\tDICOM running in serial mode\n\n" <<
G4endl;
139 theFileMgr->
Convert(
"Data.dat");
148 char* nest = getenv(
"DICOM_NESTED_PARAM" );
149 if( nest &&
G4String(nest) ==
"1" ) {
186 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
Definition of the DicomHandler class.
static G4double ConvertToDouble(const char *st)
static void setTheSeed(long seed, int lux=3)
static DicomFileMgr * GetInstance()
G4int ApplyCommand(const char *aCommand)
Definition of the DicomActionInitialization class.
void Convert(G4String fFileName)
Definition of the DicomNestedParamDetectorConstruction class.
static G4UImanager * GetUIpointer()
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
static void setTheEngine(HepRandomEngine *theNewEngine)
Definition of the DicomRegularDetectorConstruction class.
Definition of the DicomIntersectVolume class.
Definition of the DicomPartialDetectorConstruction class.
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cout
static void setTheSeeds(const long *seeds, int aux=-1)
Manages intersections of DICOM files with volumes.
TShielding< G4VModularPhysicsList > Shielding
virtual void Initialize()