Ignore:
Timestamp:
Nov 19, 2009, 2:53:25 PM (15 years ago)
Author:
garnier
Message:

update par rapport a CVS

File:
1 edited

Legend:

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

    r1058 r1192  
    2424// ********************************************************************
    2525//
    26 // $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.5 2009/02/16 12:46:58 sincerti Exp $
    27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
     26// $Id: G4DNAEmfietzoglouExcitationModel.cc,v 1.8 2009/08/13 11:32:47 sincerti Exp $
     27// GEANT4 tag $Name: emlowen-V09-02-64 $
    2828//
    2929
     
    5656  if (verboseLevel > 3)
    5757
    58   G4cout << "Emfietzoglou Excitation model is constructed " << G4endl
    59          << "Energy range: "
    60          << lowEnergyLimit / eV << " eV - "
    61          << highEnergyLimit / MeV << " MeV"
    62          << G4endl;
    63  
     58  if( verboseLevel>0 )
     59  {
     60    G4cout << "Emfietzoglou Excitation model is constructed " << G4endl
     61           << "Energy range: "
     62           << lowEnergyLimit / eV << " eV - "
     63           << highEnergyLimit / MeV << " MeV"
     64           << G4endl;
     65  }
    6466}
    6567
     
    99101
    100102  //
    101  
    102   G4cout << "Emfietzoglou Excitation model is initialized " << G4endl
    103          << "Energy range: "
    104          << LowEnergyLimit() / eV << " eV - "
    105          << HighEnergyLimit() / MeV << " MeV"
    106          << G4endl;
     103  if( verboseLevel>0 )
     104  {
     105    G4cout << "Emfietzoglou Excitation model is initialized " << G4endl
     106           << "Energy range: "
     107           << LowEnergyLimit() / eV << " eV - "
     108           << HighEnergyLimit() / MeV << " MeV"
     109           << G4endl;
     110  }
    107111
    108112  if(!isInitialised)
     
    136140            const G4Material* material = couple->GetMaterial();
    137141
    138             size_t j = material->GetNumberOfElements();
    139             while (j>0)
     142            if (material->GetName() == "G4_WATER")
    140143            {
    141                j--;
    142                const G4Element* element(material->GetElement(j));
    143                if (element->GetZ() == 8.)
    144                {
    145                   G4double density = material->GetAtomicNumDensityVector()[j];
    146                   if (density > 0.)
    147                   {
    148                     flagMaterialIsWater = true;
    149                     densityWater = density;
    150                    
    151                     if (verboseLevel > 3)
    152                     G4cout << "Water material is found with density(cm^-3)=" << density/(cm*cm*cm) << G4endl;
    153                   }
    154                }
     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;
    155150            }
    156151 
    157152          }
    158    } // if(numOfCouples>0)
     153
     154    } // if(numOfCouples>0)
    159155
    160156  } // if (theCoupleTable)
Note: See TracChangeset for help on using the changeset viewer.