Ignore:
Timestamp:
Apr 17, 2009, 12:17:14 PM (15 years ago)
Author:
garnier
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/lowenergy/src/G4eIonisationCrossSectionHandler.cc

    r961 r991  
    2424// ********************************************************************
    2525//
    26 // $Id: G4eIonisationCrossSectionHandler.cc,v 1.12 2009/01/29 08:13:34 pandola Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     26// $Id: G4eIonisationCrossSectionHandler.cc,v 1.11 2006/06/29 19:42:00 gunter Exp $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    4242// 19 Jul 2002   VI          Create composite data set for material
    4343// 21 Jan 2003  V.Ivanchenko Cut per region
    44 // 28 Jan 2009  L.Pandola    Added public method to make a easier migration of
    45 //                           G4LowEnergyIonisation to G4LivermoreIonisationModel
    4644//
    4745// -------------------------------------------------------------------
     
    10098    G4int nElements = material->GetNumberOfElements();
    10199
    102     if(verbose > 0)
    103       {
    104         G4cout << "eIonisation CS for " << m << "th material "
    105                << material->GetName()
    106                << "  eEl= " << nElements << G4endl;
    107       }
     100    if(verbose > 0) {
     101      G4cout << "eIonisation CS for " << m << "th material "
     102             << material->GetName()
     103             << "  eEl= " << nElements << G4endl;
     104    }
    108105
    109106    G4double tcut  = (*energyCuts)[m];
     
    132129            value += cross * p * density;
    133130
    134             if(verbose>0 && m == 0 && e>=1. && e<=0.)
    135             {
     131            if(verbose>0 && m == 0 && e>=1. && e<=0.) {
    136132              G4cout << "G4eIonCrossSH: e(MeV)= " << e/MeV
    137133                     << " n= " << n
     
    143139                     << " Z= " << Z
    144140                     << G4endl;
    145               }
     141            }
    146142
    147143          }
     
    159155}
    160156
    161 G4double G4eIonisationCrossSectionHandler::GetCrossSectionAboveThresholdForElement(G4double energy,
    162                                                                                    G4double cutEnergy,
    163                                                                                    G4int Z)
    164 {
    165   G4int nShells = NumberOfComponents(Z);
    166   G4double value = 0.;
    167   if(energy > cutEnergy)
    168     {
    169       for (G4int n=0; n<nShells; n++) {
    170         G4double cross = FindValue(Z, energy, n);
    171         G4double p = theParam->Probability(Z, cutEnergy, energy, energy, n);
    172         value += cross * p;
    173       }
    174     }
    175   return value;
    176 }
     157
Note: See TracChangeset for help on using the changeset viewer.