Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (15 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

Location:
trunk/source/processes/electromagnetic/utils/src
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/utils/src/G4AtomicShell.cc

    r1197 r1228  
    2626//
    2727// $Id: G4AtomicShell.cc,v 1.2 ????
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
  • trunk/source/processes/electromagnetic/utils/src/G4DummyModel.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4ElectronIonPair.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmCalculator.cc

    r1196 r1228  
    2424// ********************************************************************
    2525//
    26 // $Id: G4EmCalculator.cc,v 1.48 2009/11/11 23:59:48 vnivanch 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 $
    2828//
    2929// -------------------------------------------------------------------
     
    127127  if(couple && UpdateParticle(p, kinEnergy) ) {
    128128    res = manager->GetDEDX(p, kinEnergy, couple);
    129     /*
     129   
    130130    if(isIon) {
    131131      if(FindEmModel(p, currentProcessName, kinEnergy)) {
    132         G4double length = 1.*um;
    133         G4cout << "### GetDEDX: E= " << kinEnergy << " res= " << res;
     132        G4double length = CLHEP::nm;
    134133        G4double eloss = res*length;
     134        //G4cout << "### GetDEDX: E= " << kinEnergy << " dedx0= " << res
     135        //       << " de= " << eloss << G4endl;;
    135136        G4double niel  = 0.0;
     137        dynParticle.SetKineticEnergy(kinEnergy);
     138        currentModel->GetChargeSquareRatio(p, mat, kinEnergy);
    136139        currentModel->CorrectionsAlongStep(couple,&dynParticle,eloss,niel,length);
    137140        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;;
    141143      }
    142144    }
    143     */
     145   
    144146    if(verbose>0) {
    145147      G4cout << "G4EmCalculator::GetDEDX: E(MeV)= " << kinEnergy/MeV
     
    466468
    467469      // low energy correction for ions
    468       /*
    469470      if(isIon) {
    470         G4double length = 1.*nm;
     471        G4double length = CLHEP::nm;
    471472        const G4Region* r = 0;
    472473        const G4MaterialCutsCouple* couple = FindCouple(mat, r);
    473474        G4double eloss = res*length;
    474475        G4double niel  = 0.0;
     476        dynParticle.SetKineticEnergy(kinEnergy);
     477        currentModel->GetChargeSquareRatio(p, mat, kinEnergy);
    475478        currentModel->CorrectionsAlongStep(couple,&dynParticle,eloss,niel,length);
    476479        res = eloss/length;
     
    482485        }
    483486      }
    484       */
    485487    }
    486488     
     
    971973                                         G4double kinEnergy)
    972974{
    973   G4bool res = false;
     975  isApplicable = false;
    974976  if(!p) {
    975977    G4cout << "G4EmCalculator::FindEmModel WARNING: no particle defined"
    976978           << G4endl;
    977     return res;
     979    return isApplicable;
    978980  }
    979981  G4String partname =  p->GetParticleName();
     
    985987    G4cout << "G4EmCalculator::FindEmModel for " << partname
    986988           << " (type= " << p->GetParticleType()
    987            << ") and " << processName << " at e(MeV)= " << scaledEnergy;
     989           << ") and " << processName << " at E(MeV)= " << scaledEnergy;
    988990    if(p != part) G4cout << "  GenericIon is the base particle";       
    989991    G4cout << G4endl;
     
    10191021  }
    10201022  if(elproc) {
    1021     isApplicable = true;
    10221023    currentModel = elproc->SelectModelForMaterial(scaledEnergy, idx);
    10231024    G4double eth = currentModel->LowEnergyLimit();
    1024     if(eth > 0.0) { loweModel = elproc->SelectModelForMaterial(eth-keV, idx); }       
     1025    loweModel = elproc->SelectModelForMaterial(eth - CLHEP::eV, idx);
    10251026  }
    10261027
     
    10351036        currentModel = (vem[i])->SelectModelForMaterial(kinEnergy, idx);
    10361037        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);
    10391039        break;
    10401040      }
     
    10531053        currentModel = (vmsc[i])->SelectModelForMaterial(kinEnergy, idx);
    10541054        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); 
    10571056        break;
    10581057      }
    10591058    }
    10601059  }
    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;
    10631073}
    10641074
  • trunk/source/processes/electromagnetic/utils/src/G4EmConfigurator.cc

    r1196 r1228  
    2424// ********************************************************************
    2525//
    26 // $Id: G4EmConfigurator.cc,v 1.5 2009/07/20 17:06:48 vnivanch 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 $
    2828//
    2929// -------------------------------------------------------------------
     
    6767G4EmConfigurator::G4EmConfigurator()
    6868{
    69   index = 1;
     69  index = -10;
    7070}
    7171
     
    156156
    157157  // new set
    158   index--;
     158  --index;
    159159
    160160  G4ParticleTable::G4PTblDicIterator* theParticleIterator =
     
    258258          mod->SetHighEnergyLimit(e2);
    259259
    260           //G4cout << "e1= " << e1 << " e2= " << e2 << G4endl;
     260          //G4cout << "index= " << index << " e1= " << e1 << " e2= " << e2 << G4endl;
    261261
    262262          // added model
     
    270270            p->AddEmModel(index,mod,reg);
    271271          } else if(ptype == msc) {
     272            //G4cout << "### Added msc model order= " << index << " for "
     273            //     << particleName << " and " << processName << "  " << mod << G4endl;
    272274            G4VMultipleScattering* p = static_cast<G4VMultipleScattering*>(proc);
    273275            p->AddEmModel(index,mod,reg);
  • trunk/source/processes/electromagnetic/utils/src/G4EmCorrections.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmElementSelector.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmModelManager.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmMultiModel.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmProcessOptions.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EmSaturation.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EnergyLossMessenger.cc

    r1196 r1228  
    2626//
    2727// $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 $
    2929//
    3030// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4EnergyLossTables.cc

    r1196 r1228  
    2626//
    2727// $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 $
    2929//
    3030// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4LossTableBuilder.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4LossTableManager.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VEmFluctuationModel.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VEmModel.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VEmProcess.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VEnergyLoss.cc

    r1196 r1228  
    2626//
    2727// $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 $
    2929//
    3030
  • trunk/source/processes/electromagnetic/utils/src/G4VEnergyLossProcess.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VMscModel.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4VMultipleScattering.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/electromagnetic/utils/src/G4ionEffectiveCharge.cc

    r1196 r1228  
    2525//
    2626// $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 $
    2828//
    2929// -------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.