Changeset 1228 for trunk/source/processes/electromagnetic/utils/src
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (15 years ago)
- Location:
- trunk/source/processes/electromagnetic/utils/src
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/utils/src/G4AtomicShell.cc
r1197 r1228 26 26 // 27 27 // $Id: G4AtomicShell.cc,v 1.2 ???? 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it) -
trunk/source/processes/electromagnetic/utils/src/G4DummyModel.cc
r1196 r1228 25 25 // 26 26 // $Id: G4DummyModel.cc,v 1.4 2009/04/07 18:39:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4ElectronIonPair.cc
r1196 r1228 25 25 // 26 26 // $Id: G4ElectronIonPair.cc,v 1.2 2008/10/17 14:46:16 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmCalculator.cc
r1196 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4EmCalculator.cc,v 1.4 8 2009/11/11 23:59:48vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-03 -cand-01$26 // $Id: G4EmCalculator.cc,v 1.49 2009/11/22 17:58:39 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 127 127 if(couple && UpdateParticle(p, kinEnergy) ) { 128 128 res = manager->GetDEDX(p, kinEnergy, couple); 129 /*129 130 130 if(isIon) { 131 131 if(FindEmModel(p, currentProcessName, kinEnergy)) { 132 G4double length = 1.*um; 133 G4cout << "### GetDEDX: E= " << kinEnergy << " res= " << res; 132 G4double length = CLHEP::nm; 134 133 G4double eloss = res*length; 134 //G4cout << "### GetDEDX: E= " << kinEnergy << " dedx0= " << res 135 // << " de= " << eloss << G4endl;; 135 136 G4double niel = 0.0; 137 dynParticle.SetKineticEnergy(kinEnergy); 138 currentModel->GetChargeSquareRatio(p, mat, kinEnergy); 136 139 currentModel->CorrectionsAlongStep(couple,&dynParticle,eloss,niel,length); 137 140 res = eloss/length; 138 139 //G4cout << "### GetDEDX: E= " << kinEnergy << " res= " << res; 140 G4cout << " res1= " << res << G4endl;; 141 //G4cout << " de1= " << eloss << " res1= " << res 142 // << " " << p->GetParticleName() <<G4endl;; 141 143 } 142 144 } 143 */145 144 146 if(verbose>0) { 145 147 G4cout << "G4EmCalculator::GetDEDX: E(MeV)= " << kinEnergy/MeV … … 466 468 467 469 // low energy correction for ions 468 /*469 470 if(isIon) { 470 G4double length = 1.*nm;471 G4double length = CLHEP::nm; 471 472 const G4Region* r = 0; 472 473 const G4MaterialCutsCouple* couple = FindCouple(mat, r); 473 474 G4double eloss = res*length; 474 475 G4double niel = 0.0; 476 dynParticle.SetKineticEnergy(kinEnergy); 477 currentModel->GetChargeSquareRatio(p, mat, kinEnergy); 475 478 currentModel->CorrectionsAlongStep(couple,&dynParticle,eloss,niel,length); 476 479 res = eloss/length; … … 482 485 } 483 486 } 484 */485 487 } 486 488 … … 971 973 G4double kinEnergy) 972 974 { 973 G4bool res= false;975 isApplicable = false; 974 976 if(!p) { 975 977 G4cout << "G4EmCalculator::FindEmModel WARNING: no particle defined" 976 978 << G4endl; 977 return res;979 return isApplicable; 978 980 } 979 981 G4String partname = p->GetParticleName(); … … 985 987 G4cout << "G4EmCalculator::FindEmModel for " << partname 986 988 << " (type= " << p->GetParticleType() 987 << ") and " << processName << " at e(MeV)= " << scaledEnergy;989 << ") and " << processName << " at E(MeV)= " << scaledEnergy; 988 990 if(p != part) G4cout << " GenericIon is the base particle"; 989 991 G4cout << G4endl; … … 1019 1021 } 1020 1022 if(elproc) { 1021 isApplicable = true;1022 1023 currentModel = elproc->SelectModelForMaterial(scaledEnergy, idx); 1023 1024 G4double eth = currentModel->LowEnergyLimit(); 1024 if(eth > 0.0) { loweModel = elproc->SelectModelForMaterial(eth-keV, idx); }1025 loweModel = elproc->SelectModelForMaterial(eth - CLHEP::eV, idx); 1025 1026 } 1026 1027 … … 1035 1036 currentModel = (vem[i])->SelectModelForMaterial(kinEnergy, idx); 1036 1037 G4double eth = currentModel->LowEnergyLimit(); 1037 if(eth > 0.0) { loweModel = (vem[i])->SelectModelForMaterial(eth-keV, idx); } 1038 isApplicable = true; 1038 loweModel = (vem[i])->SelectModelForMaterial(eth - CLHEP::eV, idx); 1039 1039 break; 1040 1040 } … … 1053 1053 currentModel = (vmsc[i])->SelectModelForMaterial(kinEnergy, idx); 1054 1054 G4double eth = currentModel->LowEnergyLimit(); 1055 if(eth > 0.0) { loweModel = (vmsc[i])->SelectModelForMaterial(eth-keV, idx); } 1056 isApplicable = true; 1055 loweModel = (vmsc[i])->SelectModelForMaterial(eth - CLHEP::eV, idx); 1057 1056 break; 1058 1057 } 1059 1058 } 1060 1059 } 1061 if(currentModel) res = true; 1062 return res; 1060 if(currentModel) { 1061 if(loweModel == currentModel) { loweModel = 0; } 1062 isApplicable = true; 1063 if(verbose > 1) { 1064 G4cout << "Model <" << currentModel->GetName() 1065 << "> Emin(MeV)= " << currentModel->LowEnergyLimit()/MeV; 1066 if(loweModel) { 1067 G4cout << " LowEnergy model <" << loweModel->GetName() << ">"; 1068 } 1069 G4cout << G4endl; 1070 } 1071 } 1072 return isApplicable; 1063 1073 } 1064 1074 -
trunk/source/processes/electromagnetic/utils/src/G4EmConfigurator.cc
r1196 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4EmConfigurator.cc,v 1. 5 2009/07/20 17:06:48vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-03 -cand-01$26 // $Id: G4EmConfigurator.cc,v 1.6 2009/11/22 19:48:30 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 67 67 G4EmConfigurator::G4EmConfigurator() 68 68 { 69 index = 1;69 index = -10; 70 70 } 71 71 … … 156 156 157 157 // new set 158 index--;158 --index; 159 159 160 160 G4ParticleTable::G4PTblDicIterator* theParticleIterator = … … 258 258 mod->SetHighEnergyLimit(e2); 259 259 260 //G4cout << " e1= " << e1 << " e2= " << e2 << G4endl;260 //G4cout << "index= " << index << " e1= " << e1 << " e2= " << e2 << G4endl; 261 261 262 262 // added model … … 270 270 p->AddEmModel(index,mod,reg); 271 271 } else if(ptype == msc) { 272 //G4cout << "### Added msc model order= " << index << " for " 273 // << particleName << " and " << processName << " " << mod << G4endl; 272 274 G4VMultipleScattering* p = static_cast<G4VMultipleScattering*>(proc); 273 275 p->AddEmModel(index,mod,reg); -
trunk/source/processes/electromagnetic/utils/src/G4EmCorrections.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmCorrections.cc,v 1.54 2009/10/29 17:56:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmElementSelector.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmElementSelector.cc,v 1.11 2009/09/29 11:31:37 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmModelManager.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmModelManager.cc,v 1.58 2009/10/29 18:07:08 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmMultiModel.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmMultiModel.cc,v 1.6 2007/05/22 17:31:58 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmProcessOptions.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmProcessOptions.cc,v 1.27 2009/10/29 19:25:28 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EmSaturation.cc
r1196 r1228 25 25 // 26 26 // $Id: G4EmSaturation.cc,v 1.10 2009/09/25 09:16:40 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EnergyLossMessenger.cc
r1196 r1228 26 26 // 27 27 // $Id: G4EnergyLossMessenger.cc,v 1.38 2009/10/29 19:25:28 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4EnergyLossTables.cc
r1196 r1228 26 26 // 27 27 // $Id: G4EnergyLossTables.cc,v 1.34 2008/07/08 10:57:22 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4LossTableBuilder.cc
r1196 r1228 25 25 // 26 26 // $Id: G4LossTableBuilder.cc,v 1.32 2009/08/11 17:24:53 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4LossTableManager.cc
r1196 r1228 25 25 // 26 26 // $Id: G4LossTableManager.cc,v 1.97 2009/10/29 19:25:28 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VEmFluctuationModel.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VEmFluctuationModel.cc,v 1.4 2009/02/19 11:25:50 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VEmModel.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VEmModel.cc,v 1.30 2009/09/23 14:42:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VEmProcess.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VEmProcess.cc,v 1.79 2009/11/10 20:30:55 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VEnergyLoss.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VEnergyLoss.cc,v 1.46 2006/06/29 19:55:21 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 -
trunk/source/processes/electromagnetic/utils/src/G4VEnergyLossProcess.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VEnergyLossProcess.cc,v 1.158 2009/10/29 18:07:08 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VMscModel.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VMscModel.cc,v 1.13 2009/07/20 17:32:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4VMultipleScattering.cc
r1196 r1228 25 25 // 26 26 // $Id: G4VMultipleScattering.cc,v 1.77 2009/10/29 18:07:08 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/utils/src/G4ionEffectiveCharge.cc
r1196 r1228 25 25 // 26 26 // $Id: G4ionEffectiveCharge.cc,v 1.25 2009/10/29 16:57:39 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // -------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.