Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashEnergySpot.cc,v 1.5 2006/06/29 19:14:10 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashEnergySpot.cc,v 1.5 2006-06-29 19:14:10 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -42,7 +42,7 @@
#include "G4Step.hh"
#include "GFlashEnergySpot.hh"
GFlashEnergySpot::GFlashEnergySpot() {}
GFlashEnergySpot::GFlashEnergySpot() : Energy (0.) {}
GFlashEnergySpot::GFlashEnergySpot(const G4ThreeVector& point, G4double E)
{
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashHitMaker.cc,v 1.7 2006/06/29 19:14:12 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashHitMaker.cc,v 1.7 2006-06-29 19:14:12 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashHomoShowerParameterisation.cc,v 1.5 2006/06/29 19:14:14 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashHomoShowerParameterisation.cc,v 1.5 2006-06-29 19:14:14 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -46,10 +46,14 @@
GFlashHomoShowerParameterisation::
GFlashHomoShowerParameterisation(G4Material * aMat,
GVFlashHomoShowerTuning * aPar)
: GVFlashShowerParameterisation()
: GVFlashShowerParameterisation(),
ConstantResolution(0.), NoiseResolution(0.), SamplingResolution(0.),
AveLogAlphah(0.), AveLogTmaxh(0.), SigmaLogAlphah(0.), SigmaLogTmaxh(0.),
Rhoh(0.), Alphah(0.), Tmaxh(0.), Betah(0.)
{
if(!aPar) { thePar = new GVFlashHomoShowerTuning; }
else { thePar = aPar; }
if(!aPar) { thePar = new GVFlashHomoShowerTuning; owning = true; }
else { thePar = aPar; owning = false; }
SetMaterial(aMat);
PrintMaterial(aMat);
@@ -144,7 +148,9 @@ void GFlashHomoShowerParameterisation::SetMaterial(G4Material *mat)
}
GFlashHomoShowerParameterisation::~GFlashHomoShowerParameterisation()
{}
{
if(owning) { delete thePar; }
}
void GFlashHomoShowerParameterisation::
GenerateLongitudinalProfile(G4double Energy)
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashParticleBounds.cc,v 1.4 2006/06/29 19:14:17 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashParticleBounds.cc,v 1.4 2006-06-29 19:14:17 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashSamplingShowerParameterisation.cc,v 1.6 2006/06/29 19:14:20 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashSamplingShowerParameterisation.cc,v 1.6 2006-06-29 19:14:20 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -35,9 +35,9 @@
// Authors: E.Barberio & Joanna Weng - 11.2005
// ------------------------------------------------------------
#include <cmath>
#include "GVFlashShowerParameterisation.hh"
#include "GFlashSamplingShowerParameterisation.hh"
#include <cmath>
#include "Randomize.hh"
#include "G4ios.hh"
#include "G4Material.hh"
@@ -47,10 +47,15 @@ GFlashSamplingShowerParameterisation::
GFlashSamplingShowerParameterisation(G4Material* aMat1, G4Material* aMat2,
G4double dd1, G4double dd2,
GFlashSamplingShowerTuning* aPar)
: GVFlashShowerParameterisation()
: GVFlashShowerParameterisation(),
ParAveT2(0.), ParSigLogT1(0.), ParSigLogT2(0.),
ParSigLogA1(0.), ParSigLogA2(0.), ParRho1(0.), ParRho2(0.), ParsAveA2(0.),
AveLogAlphah(0.), AveLogTmaxh(0.), SigmaLogAlphah(0.), SigmaLogTmaxh(0.),
Rhoh(0.), Alphah(0.), Tmaxh(0.), Betah(0.), AveLogAlpha(0.), AveLogTmax(0.),
SigmaLogAlpha(0.), SigmaLogTmax(0.), Rho(0.), Alpha(0.), Tmax(0.), Beta(0.)
{
if(!aPar) { thePar = new GFlashSamplingShowerTuning; }
else { thePar = aPar; }
if(!aPar) { thePar = new GFlashSamplingShowerTuning; owning = true; }
else { thePar = aPar; owning = false; }
SetMaterial(aMat1,aMat2 );
d1=dd1;
@@ -135,7 +140,9 @@ GFlashSamplingShowerParameterisation(G4Material* aMat1, G4Material* aMat2,
// ------------------------------------------------------------
GFlashSamplingShowerParameterisation::~GFlashSamplingShowerParameterisation()
{}
{
if(owning) { delete thePar; }
}
// ------------------------------------------------------------
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashShowerModel.cc,v 1.13 2006/06/29 19:14:22 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashShowerModel.cc,v 1.13 2006-06-29 19:14:22 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -102,7 +102,7 @@ G4bool GFlashShowerModel::ModelTrigger(const G4FastTrack & fastTrack )
G4double ParticleEnergy = fastTrack.GetPrimaryTrack()->GetKineticEnergy();
G4ParticleDefinition &ParticleType =
*(fastTrack.GetPrimaryTrack()->GetDefinition());
if(ParticleEnergy > PBound->GetMinEneToParametrise(ParticleType) ||
if(ParticleEnergy > PBound->GetMinEneToParametrise(ParticleType) &&
ParticleEnergy < PBound->GetMaxEneToParametrise(ParticleType) )
{
// check conditions depending on particle flavour
@@ -112,6 +112,7 @@ G4bool GFlashShowerModel::ModelTrigger(const G4FastTrack & fastTrack )
if (select) EnergyStop= PBound->GetEneToKill(ParticleType);
}
}
return select;
}
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GFlashShowerModelMessenger.cc,v 1.6 2006/06/29 19:14:24 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GFlashShowerModelMessenger.cc,v 1.6 2006-06-29 19:14:24 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: GVFlashShowerParameterisation.cc,v 1.2 2006/06/29 19:14:26 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: GVFlashShowerParameterisation.cc,v 1.2 2006-06-29 19:14:26 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -44,7 +44,7 @@
#include "G4MaterialTable.hh"
GVFlashShowerParameterisation::GVFlashShowerParameterisation()
: thePar(0)
: thePar(0), density(0.), A(0.), Z(0.), X0(0.), Ec(0.), Rm(0.), NSpot(0.)
{
}
+2 -2
View File
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: Gamma.cc,v 1.6 2006/06/29 19:14:28 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: Gamma.cc,v 1.6 2006-06-29 19:14:28 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------