Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

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

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.8 2009/08/13 11:32:47 sincerti Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.10 2010/06/08 21:50:00 sincerti Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929
     
    4545  SetLowEnergyLimit(lowEnergyLimit);
    4646  SetHighEnergyLimit(highEnergyLimit);
     47
     48  nLevels = waterExcitation.NumberOfLevels();
    4749
    4850  verboseLevel= 0;
     
    9799
    98100  //
    99  
    100   nLevels = waterExcitation.NumberOfLevels();
    101 
    102   //
    103101  if( verboseLevel>0 )
    104102  {
     
    122120  // InitialiseElementSelectors(particle,cuts);
    123121
    124   // Test if water material
    125 
    126   flagMaterialIsWater= false;
    127   densityWater = 0;
    128 
    129   const G4ProductionCutsTable* theCoupleTable = G4ProductionCutsTable::GetProductionCutsTable();
    130 
    131   if(theCoupleTable)
    132   {
    133     G4int numOfCouples = theCoupleTable->GetTableSize();
    134  
    135     if(numOfCouples>0)
    136     {
    137           for (G4int i=0; i<numOfCouples; i++)
    138           {
    139             const G4MaterialCutsCouple* couple = theCoupleTable->GetMaterialCutsCouple(i);
    140             const G4Material* material = couple->GetMaterial();
    141 
    142             if (material->GetName() == "G4_WATER")
    143             {
    144               G4double density = material->GetAtomicNumDensityVector()[1];
    145               flagMaterialIsWater = true;
    146               densityWater = density;
    147              
    148               if (verboseLevel > 3)
    149               G4cout << "****** Water material is found with density(cm^-3)=" << density/(cm*cm*cm) << G4endl;
    150             }
    151  
    152           }
    153 
    154     } // if(numOfCouples>0)
    155 
    156   } // if (theCoupleTable)
    157 
    158 }
    159 
    160 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
    161 
    162 G4double G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(const G4Material*,
     122}
     123
     124//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     125
     126G4double G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(const G4Material* material,
    163127                                           const G4ParticleDefinition* particleDefinition,
    164128                                           G4double ekin,
     
    173137 G4double sigma=0;
    174138 
    175  if (flagMaterialIsWater)
     139 if (material->GetName() == "G4_WATER")
    176140 {
    177141
     
    188152    G4cout << "---> Kinetic energy(eV)=" << ekin/eV << G4endl;
    189153    G4cout << " - Cross section per water molecule (cm^2)=" << sigma/cm/cm << G4endl;
    190     G4cout << " - Cross section per water molecule (cm^-1)=" << sigma*densityWater/(1./cm) << G4endl;
     154    G4cout << " - Cross section per water molecule (cm^-1)=" << sigma*material->GetAtomicNumDensityVector()[1]/(1./cm) << G4endl;
    191155  }
    192156
    193  } // if (flagMaterialIsWater)
    194         
    195  return sigma*densityWater;               
     157 }
     158       
     159 return sigma*material->GetAtomicNumDensityVector()[1];           
    196160}
    197161
     
    271235      sigma = excitationSigma / density;
    272236  }
     237
    273238  return sigma;
    274239}
Note: See TracChangeset for help on using the changeset viewer.