Import Geant4 3.2.0 source tree
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4IonisParamMat.cc,v 1.6 2001/03/12 17:48:48 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// $Id: G4IonisParamMat.cc,v 1.7.2.1 2001/06/28 19:10:30 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
||||
@@ -40,7 +56,7 @@ void G4IonisParamMat::ComputeMeanParameters()
|
||||
fTaul = (*(fMaterial->GetElementVector()))[0]->GetIonisation()->GetTaul();
|
||||
fLogMeanExcEnergy = 0.;
|
||||
|
||||
for (G4int i=0; i < fMaterial->GetNumberOfElements(); i++)
|
||||
for (size_t i=0; i < fMaterial->GetNumberOfElements(); i++)
|
||||
fLogMeanExcEnergy += (fMaterial->GetVecNbOfAtomsPerVolume())[i]
|
||||
*((*(fMaterial->GetElementVector()))[i]->GetZ())
|
||||
*log((*(fMaterial->GetElementVector()))[i]->GetIonisation()
|
||||
@@ -54,7 +70,7 @@ void G4IonisParamMat::ComputeMeanParameters()
|
||||
{
|
||||
fShellCorrectionVector[j] = 0.;
|
||||
|
||||
for (G4int k=0; k<fMaterial->GetNumberOfElements(); k++)
|
||||
for (size_t k=0; k<fMaterial->GetNumberOfElements(); k++)
|
||||
fShellCorrectionVector[j] += (fMaterial->GetVecNbOfAtomsPerVolume())[k]
|
||||
*((*(fMaterial->GetElementVector()))[k]->GetIonisation()
|
||||
->GetShellCorrectionVector()[j]);
|
||||
@@ -157,7 +173,7 @@ void G4IonisParamMat::ComputeFluctModel()
|
||||
|
||||
// need an 'effective Z' ?????
|
||||
G4double Zeff = 0.;
|
||||
for (G4int i=0;i<fMaterial->GetNumberOfElements();i++)
|
||||
for (size_t i=0;i<fMaterial->GetNumberOfElements();i++)
|
||||
Zeff += (fMaterial->GetFractionVector())[i]
|
||||
*((*(fMaterial->GetElementVector()))[i]->GetZ());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user