Changeset 1342 for trunk/examples/extended/medical
- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- Location:
- trunk/examples/extended/medical
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/medical/GammaTherapy/GammaTherapy.out
r1337 r1342 5 5 6 6 ************************************************************* 7 Geant4 version Name: geant4-09-03-ref-0 6(25-June-2010)7 Geant4 version Name: geant4-09-03-ref-09 (25-June-2010) 8 8 Copyright : Geant4 Collaboration 9 9 Reference : NIM A 506 (2003), 250-303 … … 18 18 ---> Isotope: Be9 Z = 4 N = 9 A = 9.01 g/mole abundance: 100.00 % ElmMassFraction: 100.00 % ElmAbundance 100.00 % 19 19 20 Material: G4_W density: 19.300 g/cm3 RadL: 3.504 mm Nucl.Int.Length: 10.3 10cm Imean: 727.000 eV20 Material: G4_W density: 19.300 g/cm3 RadL: 3.504 mm Nucl.Int.Length: 10.306 cm Imean: 727.000 eV 21 21 ---> Element: W (W) Z = 74.0 N = 183.9 A = 183.84 g/mole 22 22 ---> Isotope: W180 Z = 74 N = 180 A = 179.95 g/mole abundance: 0.12 % … … 31 31 ---> Isotope: He4 Z = 2 N = 4 A = 4.00 g/mole abundance: 100.00 % ElmMassFraction: 100.00 % ElmAbundance 100.00 % 32 32 33 Material: G4_WATER H_2O density: 1.000 g/cm3 RadL: 36.083 cm Nucl.Int.Length: 75.5 05cm Imean: 78.000 eV33 Material: G4_WATER H_2O density: 1.000 g/cm3 RadL: 36.083 cm Nucl.Int.Length: 75.517 cm Imean: 78.000 eV 34 34 ---> Element: H (H) Z = 1.0 N = 1.0 A = 1.01 g/mole 35 35 ---> Isotope: H1 Z = 1 N = 1 A = 1.01 g/mole abundance: 99.99 % … … 40 40 ---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.20 % ElmMassFraction: 88.81 % ElmAbundance 33.33 % 41 41 42 Material: G4_AIR density: 1.205 mg/cm3 RadL: 303.921 m Nucl.Int.Length: 710. 137m Imean: 85.700 eV temperature: 273.15 K pressure: 1.00 atm42 Material: G4_AIR density: 1.205 mg/cm3 RadL: 303.921 m Nucl.Int.Length: 710.261 m Imean: 85.700 eV temperature: 273.15 K pressure: 1.00 atm 43 43 ---> Element: C (C) Z = 6.0 N = 12.0 A = 12.01 g/mole 44 44 ---> Isotope: C12 Z = 6 N = 12 A = 12.00 g/mole abundance: 98.93 % … … 56 56 ---> Isotope: Ar40 Z = 18 N = 40 A = 39.96 g/mole abundance: 99.60 % ElmMassFraction: 1.28 % ElmAbundance 0.47 % 57 57 58 Material: G4_MYLAR density: 1.400 g/cm3 RadL: 28.536 cm Nucl.Int.Length: 55.9 61cm Imean: 78.700 eV58 Material: G4_MYLAR density: 1.400 g/cm3 RadL: 28.536 cm Nucl.Int.Length: 55.985 cm Imean: 78.700 eV 59 59 ---> Element: H (H) Z = 1.0 N = 1.0 A = 1.01 g/mole 60 60 ---> Isotope: H1 Z = 1 N = 1 A = 1.01 g/mole abundance: 99.99 % … … 182 182 Run Summary 183 183 Number of events processed : 10000 184 User=8 .44s Real=10.22s Sys=0s184 User=8s Real=8.02s Sys=0s 185 185 RunAction: End of run actions are started 186 186 Histo: End of run actions are started 187 187 ======================================================== 188 188 Number of events 10000 189 Average number of e- 12. 24190 Average number of gamma 21. 28191 Average number of e+ 0.79 63189 Average number of e- 12.13 190 Average number of gamma 21.18 191 Average number of e+ 0.7932 192 192 Average number of neutrons 0 193 Average number of steps in absorber 3 1.91194 Average number of e- steps in target 18.6 7195 Average number of g produced in the target 20. 44196 Average number of e- produced in the target 7. 238197 Average number of g produced in the phantom 0.52 03198 Average number of e- produced in the phantom 2.79 5199 Total gamma fluence in front of phantom 8. 671MeV193 Average number of steps in absorber 32.13 194 Average number of e- steps in target 18.61 195 Average number of g produced in the target 20.35 196 Average number of e- produced in the target 7.174 197 Average number of g produced in the phantom 0.5292 198 Average number of e- produced in the phantom 2.799 199 Total gamma fluence in front of phantom 8.752 MeV 200 200 ======================================================== 201 201 -
trunk/examples/extended/medical/GammaTherapy/History
r1337 r1342 1 $Id: History,v 1. 29 2010/06/07 05:40:46 perlExp $1 $Id: History,v 1.32 2010/10/26 12:09:14 vnivanch Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 15 15 * Reverse chronological order (last date on top), please * 16 16 ---------------------------------------------------------- 17 18 26-10-10 V.Ivant (gtherapy-V09-03-04) 19 - in PrimaryGeneratorAction.hh remove unused methods 20 21 25-10-10 G.Folger (gtherapy-V09-03-03) 22 - in PrimaryGeneratorAction.hh, comment unused definition of 23 G4ThreeVector GetBeamEnergy() 24 25 21-10-10 V.Ivant (gtherapy-V09-03-02) 26 - Cleanup AIDA histograms and analysis 17 27 18 28 06-06-10 J.Perl (gtherapy-V09-03-01) -
trunk/examples/extended/medical/GammaTherapy/include/Histo.hh
r807 r1342 46 46 47 47 #include "globals.hh" 48 #include <vector>49 48 #include "G4DynamicParticle.hh" 50 49 #include "G4VPhysicalVolume.hh" … … 100 99 void AddPhantomElectron(const G4DynamicParticle*); 101 100 void AddTargetElectron(const G4DynamicParticle*); 102 void AddPositron(const G4DynamicParticle*) {n_posit++;};103 void AddStepInTarget() {n_step_target++;};104 105 void SetVerbose(G4int val) {verbose = val;};106 G4int GetVerbose() const {return verbose;};107 108 void SetHistoNumber(G4int val) {nHisto = val;};109 void SetNtuple(G4bool val) {nTuple = val;};110 111 void SetNumberDivZ(G4int val) {nBinsZ = val; };112 G4int GetNumberDivZ() const {return nBinsZ;};113 void SetNumberDivR(G4int val) {nBinsR = val; };114 G4int GetNumberDivR() const {return nBinsR;};115 void SetNumberDivE(G4int val) {nBinsE = val; };116 117 void SetFirstEventToDebug(G4int val) {nEvt1 = val;};118 G4int FirstEventToDebug() const {return nEvt1;};119 void SetLastEventToDebug(G4int val) {nEvt2 = val;};120 G4int LastEventToDebug() const {return nEvt2;};121 122 void SetAbsorberZ(G4double val) {absorberZ = val;};123 void SetAbsorberR(G4double val) {absorberR = val;};124 void SetScoreZ(G4double val) {scoreZ = val;};125 126 void SetMaxEnergy(G4double val) {maxEnergy = val;};127 G4double GetMaxEnergy() const {return maxEnergy;};128 129 void AddEvent() {n_evt++;};130 void AddStep() {n_step++;};131 132 void SetCheckVolume(G4VPhysicalVolume* v) {checkVolume = v;};133 void SetGasVolume(G4VPhysicalVolume* v) {gasVolume = v;};134 G4VPhysicalVolume* CheckVolume() const {return checkVolume;};135 G4VPhysicalVolume* GasVolume() const {return gasVolume;};136 137 void SetPhantom(G4VPhysicalVolume* v) {phantom = v;};138 void SetTarget1(G4VPhysicalVolume* v) {target1 = v;};139 void SetTarget2(G4VPhysicalVolume* v) {target2 = v;};101 inline void AddPositron(const G4DynamicParticle*) { ++n_posit;}; 102 inline void AddStepInTarget() { ++n_step_target;}; 103 104 inline void SetVerbose(G4int val) {verbose = val;}; 105 inline G4int GetVerbose() const {return verbose;}; 106 107 inline void SetHistoNumber(G4int val) {nHisto = val;}; 108 inline void SetNtuple(G4bool val) {nTuple = val;}; 109 110 inline void SetNumberDivZ(G4int val) {nBinsZ = val; }; 111 inline G4int GetNumberDivZ() const {return nBinsZ;}; 112 inline void SetNumberDivR(G4int val) {nBinsR = val; }; 113 inline G4int GetNumberDivR() const {return nBinsR;}; 114 inline void SetNumberDivE(G4int val) {nBinsE = val; }; 115 116 inline void SetFirstEventToDebug(G4int val) {nEvt1 = val;}; 117 inline G4int FirstEventToDebug() const {return nEvt1;}; 118 inline void SetLastEventToDebug(G4int val) {nEvt2 = val;}; 119 inline G4int LastEventToDebug() const {return nEvt2;}; 120 121 inline void SetAbsorberZ(G4double val) {absorberZ = val;}; 122 inline void SetAbsorberR(G4double val) {absorberR = val;}; 123 inline void SetScoreZ(G4double val) {scoreZ = val;}; 124 125 inline void SetMaxEnergy(G4double val) {maxEnergy = val;}; 126 inline G4double GetMaxEnergy() const {return maxEnergy;}; 127 128 inline void AddEvent() { ++n_evt; }; 129 inline void AddStep() { ++n_step; }; 130 131 inline void SetCheckVolume(G4VPhysicalVolume* v) {checkVolume = v;}; 132 inline void SetGasVolume(G4VPhysicalVolume* v) {gasVolume = v;}; 133 inline G4VPhysicalVolume* CheckVolume() const {return checkVolume;}; 134 inline G4VPhysicalVolume* GasVolume() const {return gasVolume;}; 135 136 inline void SetPhantom(G4VPhysicalVolume* v) {phantom = v;}; 137 inline void SetTarget1(G4VPhysicalVolume* v) {target1 = v;}; 138 inline void SetTarget2(G4VPhysicalVolume* v) {target2 = v;}; 140 139 141 140 void AddStep(G4double e, G4double r1, G4double z1, G4double r2, G4double z2, … … 148 147 // MEMBERS 149 148 static Histo* fManager; 149 150 const G4ParticleDefinition* gamma; 151 const G4ParticleDefinition* electron; 152 const G4ParticleDefinition* positron; 153 const G4ParticleDefinition* neutron; 150 154 151 155 G4VPhysicalVolume* checkVolume; -
trunk/examples/extended/medical/GammaTherapy/include/PrimaryGeneratorAction.hh
r807 r1342 24 24 // ******************************************************************** 25 25 // 26 // $Id: PrimaryGeneratorAction.hh,v 1.6 2010/10/26 12:09:14 vnivanch Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 // 29 26 30 #ifndef PrimaryGeneratorAction_h 27 31 #define PrimaryGeneratorAction_h 1 … … 72 76 73 77 //Get/Set methods 74 void SetBeamX(G4double val) {x0 = val;};75 void SetBeamY(G4double val) {y0 = val;};76 void SetBeamZ(G4double val) {z0 = val;};77 void SetBeamSigmaX(G4double val) {sigmaX = val;};78 void SetBeamSigmaY(G4double val) {sigmaY = val;};79 void SetBeamSigmaZ(G4double val) {sigmaY = val;};80 78 void SetBeamSigmaE(G4double val); 81 79 void SetBeamEnergy(G4double val); 82 void SetBeamMinCosTheta(G4double val) {minCosTheta = val;}; 83 void SetSigmaTheta(G4double val) {sigmaTheta = val;}; 84 void SetVerbose(G4int val) {verbose = val;}; 85 G4ThreeVector GetBeamPosition() const {return position;}; 86 G4ThreeVector GetBeamDirection() const {return direction;}; 87 G4ThreeVector GetBeamEnergy() const {return energy;}; 88 void SetRandom(const G4String& type) {m_gauss = type;}; 80 81 inline void SetBeamX(G4double val) {x0 = val;}; 82 inline void SetBeamY(G4double val) {y0 = val;}; 83 inline void SetBeamZ(G4double val) {z0 = val;}; 84 inline void SetBeamSigmaX(G4double val) {sigmaX = val;}; 85 inline void SetBeamSigmaY(G4double val) {sigmaY = val;}; 86 inline void SetBeamSigmaZ(G4double val) {sigmaY = val;}; 87 inline void SetBeamMinCosTheta(G4double val) {minCosTheta = val;}; 88 inline void SetSigmaTheta(G4double val) {sigmaTheta = val;}; 89 inline void SetVerbose(G4int val) {verbose = val;}; 90 inline void SetRandom(const G4String& type) {m_gauss = type;}; 89 91 90 92 private: -
trunk/examples/extended/medical/GammaTherapy/src/Histo.cc
r807 r1342 24 24 // ******************************************************************** 25 25 // 26 // $Id: Histo.cc,v 1.10 2010/10/26 12:05:14 vnivanch Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 // 26 29 //--------------------------------------------------------------------------- 27 30 // … … 38 41 39 42 #include "Histo.hh" 43 #include "G4Gamma.hh" 44 #include "G4Electron.hh" 45 #include "G4Positron.hh" 46 #include "G4Neutron.hh" 40 47 #include <iomanip> 41 48 … … 65 72 verbose = 1; 66 73 histName = G4String("histo"); 67 histType = G4String(" hbook");74 histType = G4String("root"); 68 75 nHisto = 10; 69 76 nHisto1 = 10; … … 76 83 absorberR = 200.*mm; 77 84 scoreZ = 100.*mm; 85 86 gamma = G4Gamma::Gamma(); 87 electron = G4Electron::Electron(); 88 positron = G4Positron::Positron(); 89 neutron = G4Neutron::Neutron(); 78 90 79 91 #ifdef G4ANALYSIS_USE … … 206 218 } 207 219 tree->close(); 220 delete tree; 221 tree = 0; 208 222 G4cout << "Tree is closed" << G4endl; 209 223 } … … 256 270 257 271 // Creating a tree mapped to a new hbook file. 258 G4String tt = "hbook"; 259 G4String nn = histName + ".hbook"; 260 if(histType == "root") { 261 tt = "root"; 262 nn = histName + ".root"; 263 } else if(histType == "xml" || histType == "XML" 264 || histType == "aida" || histType == "AIDA") { 272 G4String tt = histType; 273 G4String nn = histName + "." + histType; 274 if(histType == "xml" || histType == "XML" || histType == "aida" || 275 histType == "AIDA") { 265 276 tt = "xml"; 266 277 nn = histName + ".aida"; 267 278 } 268 279 269 tree = tf->create(nn,tt,false,true, " --noErrors uncompress");280 tree = tf->create(nn,tt,false,true, ""); 270 281 if(tree) { 271 282 G4cout << "Tree store : " << tree->storeName() << G4endl; … … 317 328 // If using Anaphe HBOOK implementation, there is a limitation on the 318 329 // length of the variable names in a ntuple 319 if(nTuple) 330 if(nTuple) { 320 331 ntup = tpf->create( "100", "Dose deposite","float r, z, e" ); 321 332 } 322 333 delete hf; 323 334 delete tpf; … … 330 341 { 331 342 G4double e = elec->GetKineticEnergy()/MeV; 332 if(e > 0.0) n_elec++;343 if(e > 0.0) { ++n_elec; } 333 344 } 334 345 … … 338 349 { 339 350 G4double e = ph->GetKineticEnergy()/MeV; 340 if(e > 0.0) n_gam++;351 if(e > 0.0) { ++n_gam; } 341 352 } 342 353 … … 346 357 { 347 358 G4double e = ph->GetKineticEnergy()/MeV; 348 if(e > 0.0) n_gam_tar++;359 if(e > 0.0) { ++n_gam_tar; } 349 360 #ifdef G4ANALYSIS_USE 350 361 if(tree) histo[5]->fill(e,1.0); … … 357 368 { 358 369 G4double e = ph->GetKineticEnergy()/MeV; 359 if(e > 0.0) n_gam_ph++;370 if(e > 0.0) { ++n_gam_ph; } 360 371 } 361 372 … … 365 376 { 366 377 G4double e = ph->GetKineticEnergy()/MeV; 367 if(e > 0.0) n_e_tar++;378 if(e > 0.0) { ++n_e_tar; } 368 379 #ifdef G4ANALYSIS_USE 369 380 if(tree) histo[8]->fill(e,1.0); … … 376 387 { 377 388 G4double e = ph->GetKineticEnergy()/MeV; 378 if(e > 0.0) n_e_ph++;389 if(e > 0.0) { ++n_e_ph; } 379 390 #ifdef G4ANALYSIS_USE 380 391 if(tree) histo[7]->fill(e,1.0); … … 389 400 390 401 ResetTrackLength(); 391 G4ParticleDefinition* particle = aTrack->GetDefinition(); 392 G4String name = particle->GetParticleName(); 402 const G4ParticleDefinition* particle = aTrack->GetParticleDefinition(); 393 403 G4int pid = aTrack->GetParentID(); 394 404 G4double kinE = aTrack->GetKineticEnergy(); … … 416 426 417 427 // delta-electron 418 } else if (0 < pid && "e-" == name) {428 } else if (0 < pid && particle == electron) { 419 429 if(1 < verbose) { 420 430 G4cout << "TrackingAction: Secondary electron " << G4endl; 421 431 } 422 432 AddDeltaElectron(dp); 423 if(pv == phantom) AddPhantomElectron(dp);424 else if(pv == target1 || pv == target2) AddTargetElectron(dp);425 426 } else if (0 < pid && "e+" == name) {433 if(pv == phantom) { AddPhantomElectron(dp); } 434 else if(pv == target1 || pv == target2) { AddTargetElectron(dp); } 435 436 } else if (0 < pid && particle == positron) { 427 437 if(1 < verbose) { 428 438 G4cout << "TrackingAction: Secondary positron " << G4endl; … … 430 440 AddPositron(dp); 431 441 432 } else if (0 < pid && "gamma" == name) {442 } else if (0 < pid && particle == gamma) { 433 443 if(1 < verbose) { 434 444 G4cout << "TrackingAction: Secondary gamma; parentID= " << pid … … 436 446 } 437 447 AddPhoton(dp); 438 if(pv == phantom) AddPhantomPhoton(dp);439 else if(pv == target1 || pv == target2) AddTargetPhoton(dp);440 441 } else if (0 < pid && "neutron" == name) {448 if(pv == phantom) { AddPhantomPhoton(dp); } 449 else if(pv == target1 || pv == target2) { AddTargetPhoton(dp); } 450 451 } else if (0 < pid && particle == neutron) { 442 452 n_neutron++; 443 453 if(1 < verbose) { … … 455 465 sumR += e; 456 466 G4int bin = (G4int)(e/stepE); 457 if(bin >= nBinsE) bin = nBinsE-1;467 if(bin >= nBinsE) { bin = nBinsE-1; } 458 468 gammaE[bin] += e; 459 469 G4int bin1 = (G4int)(r/stepR); 460 if(bin1 >= nBinsR) bin1 = nBinsR-1;470 if(bin1 >= nBinsR) { bin1 = nBinsR-1; } 461 471 #ifdef G4ANALYSIS_USE 462 472 if(tree) { -
trunk/examples/extended/medical/GammaTherapy/src/TrackingAction.cc
r807 r1342 56 56 TrackingAction::TrackingAction(): 57 57 theHisto(Histo::GetPointer()) 58 { ;}58 {} 59 59 60 60 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 61 61 62 62 TrackingAction::~TrackingAction() 63 { ;}63 {} 64 64 65 65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... … … 68 68 { 69 69 theHisto->ScoreNewTrack(aTrack); 70 G4int pid = aTrack->GetParentID();71 const G4String name = aTrack->GetDefinition()->GetParticleName();72 70 73 71 if(1 < theHisto->GetVerbose() && 74 (theHisto->GetMaxEnergy() < aTrack->GetKineticEnergy() && pid > 0)) 75 { 76 G4cout << "Track #" 77 << aTrack->GetTrackID() << " of " << name 78 << " Emax(MeV)= " << theHisto->GetMaxEnergy()/MeV 79 << " Ekin(MeV)= " << aTrack->GetKineticEnergy()/MeV 80 << " ## EventID= " 81 << (G4EventManager::GetEventManager())->GetConstCurrentEvent() 82 ->GetEventID() 83 << G4endl; 84 } 72 theHisto->GetMaxEnergy() < aTrack->GetKineticEnergy() && 73 aTrack->GetParentID() > 0) 74 { 75 G4cout << "Track #" 76 << aTrack->GetTrackID() << " of " 77 << aTrack->GetParticleDefinition()->GetParticleName() 78 << " Emax(MeV)= " << theHisto->GetMaxEnergy()/MeV 79 << " Ekin(MeV)= " << aTrack->GetKineticEnergy()/MeV 80 << " ## EventID= " 81 << (G4EventManager::GetEventManager())->GetConstCurrentEvent()->GetEventID() 82 << G4endl; 83 } 85 84 86 85 } -
trunk/examples/extended/medical/fanoCavity/History
r1337 r1342 1 $Id: History,v 1.3 6 2010/06/07 05:40:46 perlExp $1 $Id: History,v 1.37 2010/10/25 13:29:24 gunter Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 15 15 * Reverse chronological order (last date on top), please * 16 16 ---------------------------------------------------------- 17 18 25-10-2010 G.Folger (fano-V09-03-04) 19 - Correct initialisation of directinIn in ctor; needed by clhep 2.1... 17 20 18 21 06-06-10 J.Perl (fano-V09-03-03) -
trunk/examples/extended/medical/fanoCavity/fanoCavity.out
r1337 r1342 5 5 6 6 ************************************************************* 7 Geant4 version Name: geant4-09-03-ref-0 6(25-June-2010)7 Geant4 version Name: geant4-09-03-ref-09 (25-June-2010) 8 8 Copyright : Geant4 Collaboration 9 9 Reference : NIM A 506 (2003), 250-303 … … 14 14 ***** Table : Nb of materials = 7 ***** 15 15 16 Material: Water density: 1.000 g/cm3 RadL: 36.092 cm Nucl.Int.Length: 75. 416cm Imean: 75.000 eV16 Material: Water density: 1.000 g/cm3 RadL: 36.092 cm Nucl.Int.Length: 75.537 cm Imean: 75.000 eV 17 17 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 11.21 % ElmAbundance 66.67 % 18 18 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 88.79 % ElmAbundance 33.33 % 19 19 20 Material: Water_vapor density: 1.000 mg/cm3 RadL: 360.924 m Nucl.Int.Length: 75 4.163m Imean: 75.000 eV temperature: 273.15 K pressure: 1.00 atm20 Material: Water_vapor density: 1.000 mg/cm3 RadL: 360.924 m Nucl.Int.Length: 755.365 m Imean: 75.000 eV temperature: 273.15 K pressure: 1.00 atm 21 21 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 11.21 % ElmAbundance 66.67 % 22 22 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 88.79 % ElmAbundance 33.33 % 23 23 24 Material: Air density: 1.290 mg/cm3 RadL: 285.161 m Nucl.Int.Length: 662. 680m Imean: 85.703 eV temperature: 273.15 K pressure: 1.00 atm24 Material: Air density: 1.290 mg/cm3 RadL: 285.161 m Nucl.Int.Length: 662.904 m Imean: 85.703 eV temperature: 273.15 K pressure: 1.00 atm 25 25 ---> Element: Nitrogen (N) Z = 7.0 N = 14.0 A = 14.01 g/mole ElmMassFraction: 70.00 % ElmAbundance 72.71 % 26 26 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 30.00 % ElmAbundance 27.29 % 27 27 28 Material: Graphite density: 2.265 g/cm3 RadL: 18.850 cm Nucl.Int.Length: 35. 387 cm Imean: 81.000 eV28 Material: Graphite density: 2.265 g/cm3 RadL: 18.850 cm Nucl.Int.Length: 35.407 cm Imean: 81.000 eV 29 29 ---> Element: Graphite ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 30 30 31 Material: Graphite_gas density: 2.265 mg/cm3 RadL: 188.496 m Nucl.Int.Length: 35 3.873m Imean: 81.000 eV temperature: 273.15 K pressure: 1.00 atm31 Material: Graphite_gas density: 2.265 mg/cm3 RadL: 188.496 m Nucl.Int.Length: 354.070 m Imean: 81.000 eV temperature: 273.15 K pressure: 1.00 atm 32 32 ---> Element: Graphite_gas ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 33 33 34 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Nucl.Int.Length: 38.8 79cm Imean: 166.000 eV34 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Nucl.Int.Length: 38.860 cm Imean: 166.000 eV 35 35 ---> Element: Aluminium ( ) Z = 13.0 N = 27.0 A = 26.98 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 36 36 37 Material: Aluminium_gas density: 2.700 mg/cm3 RadL: 88.925 m Nucl.Int.Length: 388. 793m Imean: 166.000 eV temperature: 273.15 K pressure: 1.00 atm37 Material: Aluminium_gas density: 2.700 mg/cm3 RadL: 88.925 m Nucl.Int.Length: 388.601 m Imean: 166.000 eV temperature: 273.15 K pressure: 1.00 atm 38 38 ---> Element: Aluminium_gas ( ) Z = 13.0 N = 27.0 A = 26.98 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 39 39 … … 65 65 phot: for gamma SubType= 12 66 66 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 67 PhotoElectric : Emin= 0 eV Emax=10 GeV67 PhotoElectric : Emin= 0 eV Emax= 10 GeV 68 68 69 69 compt: for gamma SubType= 13 70 70 Lambda tables from 100 eV to 10 GeV in 160 bins, spline: 1 71 71 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 72 myKlein-Nishina : Emin= 0 eV Emax=10 GeV72 myKlein-Nishina : Emin= 0 eV Emax= 10 GeV 73 73 74 74 conv: for gamma SubType= 14 75 75 Lambda tables from 1.022 MeV to 10 GeV in 160 bins, spline: 1 76 76 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 77 Bethe-Heitler : Emin= 0 eV Emax=10 GeV77 BetheHeitler : Emin= 0 eV Emax= 10 GeV 78 78 79 79 msc: for e- SubType= 10 … … 81 81 RangeFactor= 0.02, stepLimitType: 2, latDisplacement: 1, skin= 3, geomFactor= 2.5 82 82 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 83 UrbanMsc93 : Emin= 0 eV Emax=10 GeV83 UrbanMsc93 : Emin= 0 eV Emax= 10 GeV 84 84 85 85 eIoni: for e- SubType= 2 … … 88 88 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 89 89 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 90 myMollerBhabha : Emin= 0 eV Emax=10 GeV90 myMollerBhabha : Emin= 0 eV Emax= 10 GeV 91 91 CSDA range table up to 10 GeV in 160 bins 92 92 … … 96 96 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 97 97 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 98 myMollerBhabha : Emin= 0 eV Emax=10 GeV98 myMollerBhabha : Emin= 0 eV Emax= 10 GeV 99 99 CSDA range table up to 10 GeV in 160 bins 100 100 … … 102 102 Lambda tables from 100 eV to 10 GeV in 160 bins, spline: 1 103 103 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 104 eplus2gg : Emin= 0 eV Emax=10 GeV104 eplus2gg : Emin= 0 eV Emax= 10 GeV 105 105 106 106 msc: for proton SubType= 10 … … 108 108 RangeFactor= 0.02, stepLimitType: 2, latDisplacement: 1, skin= 3, geomFactor= 2.5 109 109 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 110 UrbanMsc90 : Emin= 0 eV Emax=10 GeV110 UrbanMsc90 : Emin= 0 eV Emax= 10 GeV 111 111 112 112 hIoni: for proton SubType= 2 … … 115 115 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 116 116 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 117 Bragg : Emin= 0 eV Emax=2 MeV118 BetheBloch : Emin= 2 MeV Emax=10 GeV117 Bragg : Emin= 0 eV Emax= 2 MeV 118 BetheBloch : Emin= 2 MeV Emax= 10 GeV 119 119 CSDA range table up to 10 GeV in 160 bins 120 120 … … 156 156 Start Run processing. 157 157 158 ---> NbofEvents= 1000 NbOfelectr= 70 538 Tkin= 590.669 keV (0.000 %) NbOfelec in cav= 4726 Dose/EnFluence= 30.091cm2/g (0.000 %)159 160 ---> NbofEvents= 2000 NbOfelectr= 141 090 Tkin= 589.502 keV (-0.198 %) NbOfelec in cav= 9358 Dose/EnFluence= 28.953 cm2/g (-3.782%)161 162 ---> NbofEvents= 3000 NbOfelectr= 211 481 Tkin= 589.178 keV (-0.055 %) NbOfelec in cav= 14156 Dose/EnFluence= 28.931 cm2/g (-0.076%)158 ---> NbofEvents= 1000 NbOfelectr= 70332 Tkin= 589.082 keV (0.000 %) NbOfelec in cav= 4589 Dose/EnFluence= 26.638 cm2/g (0.000 %) 159 160 ---> NbofEvents= 2000 NbOfelectr= 141252 Tkin= 588.179 keV (-0.153 %) NbOfelec in cav= 9374 Dose/EnFluence= 28.803 cm2/g (8.129 %) 161 162 ---> NbofEvents= 3000 NbOfelectr= 211798 Tkin= 588.153 keV (-0.004 %) NbOfelec in cav= 13975 Dose/EnFluence= 28.118 cm2/g (-2.379 %) 163 163 Run terminated. 164 164 Run Summary 165 165 Number of events processed : 4000 166 User=3 2.81s Real=48.36s Sys=0s166 User=30.34s Real=30.35s Sys=0s 167 167 168 168 ======================== run summary ====================== … … 174 174 ============================================================ 175 175 176 Process calls frequency ---> compt= 28 2107 Transportation= 77642 msc= 2087713 eIoni= 1755986176 Process calls frequency ---> compt= 281849 Transportation= 77349 msc= 2094229 eIoni= 1736138 177 177 178 178 Gamma crossSections in wall material : compt= 63.447 cm2/g --> total= 63.447 cm2/g 179 179 180 Mean energy of secondary e- = 588. 9126 keV +- 0.1029 % (--> range in wall material = 2.2146mm )181 Mass_energy_transfer coef: 29.8 918cm2/g182 183 StoppingPower in wall = 1.972 0MeV*cm2/g184 in cavity = 1.972 0MeV*cm2/g180 Mean energy of secondary e- = 588.2741 keV +- 0.1028 % (--> range in wall material = 2.2114 mm ) 181 Mass_energy_transfer coef: 29.8594 cm2/g 182 183 StoppingPower in wall = 1.9724 MeV*cm2/g 184 in cavity = 1.9724 MeV*cm2/g 185 185 186 186 Charged particle flow in cavity : 187 Enter --> nbParticles = 18 882 Energy = 9.5906GeV188 Exit --> nbParticles = 18 879 Energy = 9.5913GeV189 190 Total edep in cavity = 1 3.0468 MeV +- 3.3776 % Total charged trackLength = 51.4975 m (mean value = 2.7273mm )191 Total dose in cavity = 20.7646MeV/mg192 Dose/EnergyFluence = 2 9.3552cm2/g193 194 (Dose/EnergyFluence)/Mass_energy_transfer = 0.9 8205 +- 0.03318195 196 StepSize of ch. tracks in wall = 122. 8120 um +- 121.5387 um (nbSteps/track = 13.6004)197 StepSize of ch. tracks in cavity = 668. 5550 um +- 853.6674 um (nbSteps/track = 4.0794)187 Enter --> nbParticles = 18697 Energy = 9.4723 GeV 188 Exit --> nbParticles = 18694 Energy = 9.4730 GeV 189 190 Total edep in cavity = 12.4835 MeV +- 2.3625 % Total charged trackLength = 51.1392 m (mean value = 2.7352 mm ) 191 Total dose in cavity = 19.8681 MeV/mg 192 Dose/EnergyFluence = 28.0878 cm2/g 193 194 (Dose/EnergyFluence)/Mass_energy_transfer = 0.94067 +- 0.02224 195 196 StepSize of ch. tracks in wall = 122.6753 um +- 120.8436 um (nbSteps/track = 13.5663) 197 StepSize of ch. tracks in cavity = 668.6433 um +- 847.1076 um (nbSteps/track = 4.0906) 198 198 199 199 --------- Ranecu engine status --------- 200 200 Initial seed (index) = 0 201 Current couple of seeds = 1 335550696, 1317159614201 Current couple of seeds = 1568745475, 2068190730 202 202 ---------------------------------------- 203 203 UserDetectorConstruction deleted. -
trunk/examples/extended/medical/fanoCavity/src/SteppingAction.cc
r1337 r1342 24 24 // ******************************************************************** 25 25 // 26 // $Id: SteppingAction.cc,v 1. 4 2007/10/29 17:09:53 maireExp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: SteppingAction.cc,v 1.5 2010/10/25 13:29:08 gunter Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 51 51 first = true; 52 52 trackSegm = 0.; 53 directionIn = 0.;53 directionIn = G4ThreeVector(0.,0.,0.); 54 54 } 55 55 -
trunk/examples/extended/medical/fanoCavity2/History
r1337 r1342 1 $Id: History,v 1.1 8 2010/06/07 05:40:46 perlExp $1 $Id: History,v 1.19 2010/10/25 13:32:02 gunter Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 15 15 * Reverse chronological order (last date on top), please * 16 16 ---------------------------------------------------------- 17 18 25-10-2010 G.Folger (fano2-V09-03-04) 19 - Correct initialisation of directinIn in ctor; needed by clhep 2.1... 17 20 18 21 06-06-10 J.Perl (fano2-V09-03-03) -
trunk/examples/extended/medical/fanoCavity2/fanoCavity2.out
r1337 r1342 5 5 6 6 ************************************************************* 7 Geant4 version Name: geant4-09-03-ref-0 6(25-June-2010)7 Geant4 version Name: geant4-09-03-ref-09 (25-June-2010) 8 8 Copyright : Geant4 Collaboration 9 9 Reference : NIM A 506 (2003), 250-303 … … 14 14 ***** Table : Nb of materials = 6 ***** 15 15 16 Material: Water density: 1.000 g/cm3 RadL: 36.092 cm Nucl.Int.Length: 75. 416cm Imean: 75.000 eV16 Material: Water density: 1.000 g/cm3 RadL: 36.092 cm Nucl.Int.Length: 75.537 cm Imean: 75.000 eV 17 17 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 11.21 % ElmAbundance 66.67 % 18 18 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 88.79 % ElmAbundance 33.33 % 19 19 20 Material: Water_gas density: 1.000 mg/cm3 RadL: 360.924 m Nucl.Int.Length: 75 4.163m Imean: 75.000 eV temperature: 273.15 K pressure: 1.00 atm20 Material: Water_gas density: 1.000 mg/cm3 RadL: 360.924 m Nucl.Int.Length: 755.365 m Imean: 75.000 eV temperature: 273.15 K pressure: 1.00 atm 21 21 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 11.21 % ElmAbundance 66.67 % 22 22 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 88.79 % ElmAbundance 33.33 % 23 23 24 Material: Graphite density: 2.265 g/cm3 RadL: 18.850 cm Nucl.Int.Length: 35. 387 cm Imean: 81.000 eV24 Material: Graphite density: 2.265 g/cm3 RadL: 18.850 cm Nucl.Int.Length: 35.407 cm Imean: 81.000 eV 25 25 ---> Element: Graphite ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 26 26 27 Material: Graphite_gas density: 2.265 mg/cm3 RadL: 188.496 m Nucl.Int.Length: 35 3.873m Imean: 81.000 eV temperature: 273.15 K pressure: 1.00 atm27 Material: Graphite_gas density: 2.265 mg/cm3 RadL: 188.496 m Nucl.Int.Length: 354.070 m Imean: 81.000 eV temperature: 273.15 K pressure: 1.00 atm 28 28 ---> Element: Graphite_gas ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 29 29 30 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Nucl.Int.Length: 38.8 79cm Imean: 166.000 eV30 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Nucl.Int.Length: 38.860 cm Imean: 166.000 eV 31 31 ---> Element: Aluminium ( ) Z = 13.0 N = 27.0 A = 26.98 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 32 32 33 Material: Aluminium_gas density: 2.700 mg/cm3 RadL: 88.925 m Nucl.Int.Length: 388. 793m Imean: 166.000 eV temperature: 273.15 K pressure: 1.00 atm33 Material: Aluminium_gas density: 2.700 mg/cm3 RadL: 88.925 m Nucl.Int.Length: 388.601 m Imean: 166.000 eV temperature: 273.15 K pressure: 1.00 atm 34 34 ---> Element: Aluminium_gas ( ) Z = 13.0 N = 27.0 A = 26.98 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 35 35 … … 63 63 phot: for gamma SubType= 12 64 64 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 65 PhotoElectric : Emin= 0 eV Emax=10 GeV65 PhotoElectric : Emin= 0 eV Emax= 10 GeV 66 66 67 67 compt: for gamma SubType= 13 68 68 Lambda tables from 100 eV to 10 GeV in 160 bins, spline: 1 69 69 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 70 Klein-Nishina : Emin= 0 eV Emax=10 GeV70 Klein-Nishina : Emin= 0 eV Emax= 10 GeV 71 71 72 72 conv: for gamma SubType= 14 73 73 Lambda tables from 1.022 MeV to 10 GeV in 160 bins, spline: 1 74 74 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 75 Bethe-Heitler : Emin= 0 eV Emax=10 GeV75 BetheHeitler : Emin= 0 eV Emax= 10 GeV 76 76 77 77 msc: for e- SubType= 10 … … 79 79 RangeFactor= 0.02, stepLimitType: 2, latDisplacement: 1, skin= 3, geomFactor= 2.5 80 80 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 81 UrbanMsc93 : Emin= 0 eV Emax=10 GeV81 UrbanMsc93 : Emin= 0 eV Emax= 10 GeV 82 82 83 83 eIoni: for e- SubType= 2 … … 86 86 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 87 87 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 88 myMollerBhabha : Emin= 0 eV Emax=10 GeV88 myMollerBhabha : Emin= 0 eV Emax= 10 GeV 89 89 CSDA range table up to 10 GeV in 160 bins 90 90 … … 94 94 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 95 95 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 96 myMollerBhabha : Emin= 0 eV Emax=10 GeV96 myMollerBhabha : Emin= 0 eV Emax= 10 GeV 97 97 CSDA range table up to 10 GeV in 160 bins 98 98 … … 100 100 Lambda tables from 100 eV to 10 GeV in 160 bins, spline: 1 101 101 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 102 eplus2gg : Emin= 0 eV Emax=10 GeV102 eplus2gg : Emin= 0 eV Emax= 10 GeV 103 103 104 104 msc: for proton SubType= 10 … … 106 106 RangeFactor= 0.02, stepLimitType: 2, latDisplacement: 1, skin= 3, geomFactor= 2.5 107 107 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 108 UrbanMsc90 : Emin= 0 eV Emax=10 GeV108 UrbanMsc90 : Emin= 0 eV Emax= 10 GeV 109 109 110 110 hIoni: for proton SubType= 2 … … 113 113 finalRange(mm)= 0.01, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 114 114 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 115 Bragg : Emin= 0 eV Emax=2 MeV116 BetheBloch : Emin= 2 MeV Emax=10 GeV115 Bragg : Emin= 0 eV Emax= 2 MeV 116 BetheBloch : Emin= 2 MeV Emax= 10 GeV 117 117 CSDA range table up to 10 GeV in 160 bins 118 118 … … 167 167 Start Run processing. 168 168 169 --->evntNb= 10000 Nwall= 10000 Ncav= 1 Ic/Iw= 0.52456 Ne-_cav= 2 787 doseCavity/Ebeam= 1.12338 (100*(ratio-1) = 12.33820%)170 171 --->evntNb= 20000 Nwall= 1999 9 Ncav= 2 Ic/Iw= 0.52458 Ne-_cav= 5507 doseCavity/Ebeam= 1.00206 (100*(ratio-1) = 0.20619%)172 173 --->evntNb= 30000 Nwall= 2999 8 Ncav= 3 Ic/Iw= 0.52459 Ne-_cav= 8236 doseCavity/Ebeam= 0.98084 (100*(ratio-1) = -1.91610%)169 --->evntNb= 10000 Nwall= 10000 Ncav= 1 Ic/Iw= 0.52456 Ne-_cav= 2835 doseCavity/Ebeam= 1.14829 (100*(ratio-1) = 14.82897 %) 170 171 --->evntNb= 20000 Nwall= 19998 Ncav= 3 Ic/Iw= 0.78691 Ne-_cav= 5661 doseCavity/Ebeam= 1.07086 (100*(ratio-1) = 7.08553 %) 172 173 --->evntNb= 30000 Nwall= 29993 Ncav= 8 Ic/Iw= 1.39915 Ne-_cav= 8509 doseCavity/Ebeam= 1.07081 (100*(ratio-1) = 7.08078 %) 174 174 Run terminated. 175 175 Run Summary 176 176 Number of events processed : 40000 177 User= 9.6s Real=12s Sys=0s178 179 Process calls frequency ---> msc= 5 07867 eIoni= 620396 Transportation= 22034177 User=8.75s Real=8.77s Sys=0s 178 179 Process calls frequency ---> msc= 519961 eIoni= 617649 Transportation= 22736 180 180 181 181 Charged particle flow in cavity : 182 Enter --> nbParticles = 11 019 Energy = 7.036GeV183 Exit --> nbParticles = 11 015 Energy = 7.034GeV184 185 beamFluence in wall = 3999 4 in cavity = 6 Icav/Iwall = 0.78695energyFluence = 38.12014 MeV*cm2/mg186 187 Total edep in cavity = 7.76475 MeV +- 5.14221%188 Total dose in cavity = 38.82375 MeV*cm2/mg +- 5.14221%189 190 DoseCavity/EnergyFluence = 1. 01846 +- 0.05237191 192 Total charged trackLength in cavity = 3 3.1218 m (mean value = 3.0059mm )193 194 StepSize of ch. tracks in wall = 15 8.8831 um +- 182.9748 um (nbSteps/track = 27.6011)195 StepSize of ch. tracks in cavity = 7 13.5388 um +- 1.1439 mm (nbSteps/track = 4.2126)182 Enter --> nbParticles = 11369 Energy = 7.189 GeV 183 Exit --> nbParticles = 11367 Energy = 7.188 GeV 184 185 beamFluence in wall = 39992 in cavity = 8 Icav/Iwall = 1.04932 energyFluence = 38.12014 MeV*cm2/mg 186 187 Total edep in cavity = 8.39970 MeV +- 4.91012 % 188 Total dose in cavity = 41.99852 MeV*cm2/mg +- 4.91012 % 189 190 DoseCavity/EnergyFluence = 1.10174 +- 0.05410 191 192 Total charged trackLength in cavity = 35.5852 m (mean value = 3.1300 mm ) 193 194 StepSize of ch. tracks in wall = 157.7745 um +- 182.3099 um (nbSteps/track = 27.8124) 195 StepSize of ch. tracks in cavity = 740.2164 um +- 1.3352 mm (nbSteps/track = 4.2285) 196 196 197 197 --------- Ranecu engine status --------- 198 198 Initial seed (index) = 0 199 Current couple of seeds = 991846787, 685450694199 Current couple of seeds = 1735359298, 2093100031 200 200 ---------------------------------------- 201 201 UserDetectorConstruction deleted. -
trunk/examples/extended/medical/fanoCavity2/src/SteppingAction.cc
r1337 r1342 24 24 // ******************************************************************** 25 25 // 26 // $Id: SteppingAction.cc,v 1. 2 2007/10/31 16:16:20 maireExp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: SteppingAction.cc,v 1.3 2010/10/25 13:31:14 gunter Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 51 51 first = true; 52 52 trackSegm = 0.; 53 directionIn = 0.;53 directionIn = G4ThreeVector(0.,0.,0.); 54 54 } 55 55
Note: See TracChangeset
for help on using the changeset viewer.