Changeset 1337 for trunk/examples/extended/medical/DICOM/include
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/medical/DICOM/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/medical/DICOM/include/DicomDetectorConstruction.hh
r1230 r1337 97 97 std::vector<G4Material*> fMaterials; // list of new materials created to distinguish different density voxels that have the same original materials 98 98 size_t* fMateIDs; // index of material of each voxel 99 //unsigned int* fMateIDs; // index of material of each voxel 99 100 100 101 std::map<G4int,G4double> fDensityDiffs; // Density difference to distinguish material for each original material (by index) -
trunk/examples/extended/medical/DICOM/include/DicomHandler.hh
r807 r1337 90 90 91 91 void GetInformation(G4int &, char *); 92 G4 doublePixel2density(G4int pixel);92 G4float Pixel2density(G4int pixel); 93 93 void ReadMaterialIndices( std::ifstream& finData); 94 size_t GetMaterialIndex( G4doubledensity );94 unsigned int GetMaterialIndex( G4float density ); 95 95 void StoreData(std::ofstream& foutG4DCM); 96 G4int read_defined_nested(FILE *, G4int); 97 void read_undefined_nested(FILE *); 98 void read_undefined_item(FILE *); 96 99 97 100 short compression; … … 112 115 113 116 G4int** tab; 114 std::map<G4double,G4String> fMaterialIndices;117 std::map<G4float,G4String> fMaterialIndices; 115 118 }; 116 119 #endif -
trunk/examples/extended/medical/DICOM/include/DicomNestedPhantomParameterisation.hh
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: DicomNestedPhantomParameterisation.hh,v 1. 3 2009/01/27 10:44:58 gcosmoExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: DicomNestedPhantomParameterisation.hh,v 1.5 2009/11/19 16:15:23 chauvie Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // -------------------------------------------------------------------- … … 76 76 // of all instances with the same mother/ancestor volume 77 77 78 size_t GetMaterialIndex( size_t nx, size_t ny, size_t nz) const; 79 size_t GetMaterialIndex( size_t copyNo) const; 78 unsigned int GetMaterialIndex( unsigned int nx, unsigned int ny, unsigned int nz) const; 79 unsigned int GetMaterialIndex( unsigned int copyNo) const; 80 //void SetMaterialIndices( unsigned int* matInd ) { fMaterialIndices = matInd; } 80 81 void SetMaterialIndices( size_t* matInd ) { fMaterialIndices = matInd; } 81 void SetNoVoxel( size_t nx, size_t ny, size_t nz );82 void SetNoVoxel( unsigned int nx, unsigned int ny, unsigned int nz ); 82 83 83 84 void ComputeTransformation(const G4int no, … … 121 122 std::vector<G4Material*> fMaterials; 122 123 size_t* fMaterialIndices; // Index in materials corresponding to each voxel 124 // unsigned int* fMaterialIndices; // Index in materials corresponding to each voxel 123 125 }; 124 125 126 #endif -
trunk/examples/extended/medical/DICOM/include/DicomPhysicsList.hh
r807 r1337 24 24 // ******************************************************************** 25 25 // 26 // The code was written by : 27 // *Louis Archambault louis.archambault@phy.ulaval.ca, 28 // *Luc Beaulieu beaulieu@phy.ulaval.ca 29 // +Vincent Hubert-Tremblay at tigre.2@sympatico.ca 30 // 31 // 32 // *Centre Hospitalier Universitaire de Quebec (CHUQ), 33 // Hotel-Dieu de Quebec, departement de Radio-oncologie 34 // 11 cote du palais. Quebec, QC, Canada, G1R 2J6 35 // tel (418) 525-4444 #6720 36 // fax (418) 691 5268 37 // 38 // + Université Laval, Québec (QC) Canada 39 //*******************************************************// 26 // ------------------------------------------------------------------- 27 // $Id: DicomPhysicsList.hh,v 1.7 2009/10/26 11:21:01 chauvie Exp $ 28 // ------------------------------------------------------------------- 40 29 41 30 #ifndef DicomPhysicsList_h … … 43 32 44 33 #include "G4VUserPhysicsList.hh" 45 #include "globals.hh"46 34 47 class G4LowEnergyIonisation; 48 class G4LowEnergyPhotoElectric; 49 class G4LowEnergyBremsstrahlung; 35 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 50 36 51 37 class DicomPhysicsList: public G4VUserPhysicsList … … 55 41 ~DicomPhysicsList(); 56 42 57 // Set Cuts58 void SetGammaCut(G4double);59 void SetElectronCut(G4double);60 void SetPositronCut(G4double);61 62 protected:63 // Construct particle and physics64 void ConstructParticle();65 void ConstructProcess();66 67 void SetCuts();68 69 // these methods Construct particles70 void ConstructBosons();71 void ConstructLeptons();72 73 // these methods Construct physics processes and register them74 void ConstructGeneral();75 void ConstructEM();76 77 43 private: 78 44 79 45 G4double cutForGamma; 80 46 G4double cutForElectron; 81 47 G4double cutForPositron; 48 49 protected: 50 51 void ConstructParticle(); 52 void ConstructBosons(); 53 void ConstructLeptons(); 54 void ConstructBaryons(); 82 55 83 G4LowEnergyIonisation* loweIon; 84 G4LowEnergyPhotoElectric* lowePhot; 85 G4LowEnergyBremsstrahlung* loweBrem; 86 56 void ConstructProcess(); 57 void ConstructEM(); 58 void ConstructHad(); 59 void ConstructGeneral(); 60 void SetCuts(); 61 87 62 }; 88 89 63 #endif 90 64
Note: See TracChangeset
for help on using the changeset viewer.