Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4AnnihiToMuPair.cc,v 1.2 2004/12/01 18:13:44 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// ------------ G4AnnihiToMuPair physics process ------
|
||||
// by H.Burkhardt, S. Kelner and R. Kokoulin, November 2002
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4BetheBlochNoDeltaModel.cc,v 1.2 2005/10/29 20:09:35 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4BetheBlochNoDeltaModel
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 05.08.2005
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Ionisation of heavy charged particles
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "G4BetheBlochNoDeltaModel.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4BetheBlochNoDeltaModel::G4BetheBlochNoDeltaModel(
|
||||
const G4ParticleDefinition*p, const G4String& nam) :
|
||||
G4BetheBlochModel(p, nam)
|
||||
{}
|
||||
|
||||
G4BetheBlochNoDeltaModel::~G4BetheBlochNoDeltaModel()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4BraggNoDeltaModel.cc,v 1.2 2005/10/29 20:09:36 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4BraggNoDeltaModel
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 05.08.2005
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Ionisation of heavy charged particles
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "G4BraggNoDeltaModel.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
|
||||
G4BraggNoDeltaModel::G4BraggNoDeltaModel(const G4ParticleDefinition*p,
|
||||
const G4String& nam) :
|
||||
G4BraggIonModel(p, nam)
|
||||
{}
|
||||
|
||||
G4BraggNoDeltaModel::~G4BraggNoDeltaModel()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4GammaConversionToMuons.cc,v 1.3 2005/05/18 16:01:03 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// ------------ G4GammaConversionToMuons physics process ------
|
||||
// by H.Burkhardt, S. Kelner and R. Kokoulin, April 2002
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeCrossSections.cc,v 1.2 2004/12/01 18:13:44 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4eeCrossSections.cc,v 1.5 2005/11/29 08:21:33 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -157,8 +157,11 @@ void G4eeCrossSections::Initialise()
|
||||
aomsigg = 0.;
|
||||
phomsigg = 0.;
|
||||
|
||||
G4double emin, emax;
|
||||
G4String w0, w1, w2;
|
||||
ph3p = 0;
|
||||
|
||||
/*
|
||||
G4double emin, emax;
|
||||
G4int nbins;
|
||||
const G4String fname = "wrhopi.wid";
|
||||
ifstream fi(fname.c_str());
|
||||
@@ -177,6 +180,7 @@ void G4eeCrossSections::Initialise()
|
||||
ph3p->PutValue(5*i + 4, s4);
|
||||
}
|
||||
fi.close();
|
||||
*/
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -230,8 +234,10 @@ G4double G4eeCrossSections::Width3p(G4double s, G4double mres,
|
||||
|
||||
G4double G4eeCrossSections::PhaseSpace3p(G4double e)
|
||||
{
|
||||
G4bool b;
|
||||
G4double x = ph3p->GetValue(e, b);
|
||||
|
||||
// G4bool b;
|
||||
// G4double x = ph3p->GetValue(e, b);
|
||||
G4double x = 1.0;
|
||||
G4double emev = e/MeV;
|
||||
G4double y = 414.12/emev;
|
||||
x *= pow(e/MsOm, 5.0) * pow(emev*0.1, 3.0)*(1.0 - y*y);
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToHadrons.cc,v 1.4 2005/05/18 10:12:32 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4eeToHadrons.cc,v 1.6 2005/11/29 08:15:20 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -37,6 +37,7 @@
|
||||
// Modifications:
|
||||
// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
|
||||
// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
|
||||
// 23-11-05 Istert AddEmModel which was lost (V.Ivantchenko)
|
||||
//
|
||||
|
||||
//
|
||||
@@ -55,15 +56,17 @@ using namespace std;
|
||||
|
||||
G4eeToHadrons::G4eeToHadrons(const G4String& name)
|
||||
: G4VEmProcess(name),
|
||||
multimodel(0),
|
||||
csFactor(1.0),
|
||||
isInitialised(false)
|
||||
{}
|
||||
{
|
||||
SetVerboseLevel(1);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4eeToHadrons::~G4eeToHadrons()
|
||||
{
|
||||
delete multimodel;
|
||||
}
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -74,11 +77,14 @@ void G4eeToHadrons::InitialiseProcess(const G4ParticleDefinition*)
|
||||
|
||||
SetBuildTableFlag(false);
|
||||
SetIntegral(true);
|
||||
SetMaxKinEnergy(10.0*TeV);
|
||||
|
||||
SetSecondaryParticle(G4Gamma::Gamma());
|
||||
SetParticle(G4Positron::Positron());
|
||||
|
||||
multimodel = new G4eeToHadronsMultiModel(verboseLevel);
|
||||
if(csFactor > 1.0) multimodel->SetCrossSecFactor(csFactor);
|
||||
AddEmModel(1, multimodel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +99,8 @@ void G4eeToHadrons::PrintInfo()
|
||||
|
||||
void G4eeToHadrons::SetCrossSecFactor(G4double fac)
|
||||
{
|
||||
multimodel->SetCrossSecFactor(fac);
|
||||
if(multimodel) multimodel->SetCrossSecFactor(fac);
|
||||
csFactor = fac;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToHadronsModel.cc,v 1.4 2005/05/18 10:12:33 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4eeToHadronsModel.cc,v 1.5 2005/11/23 19:17:26 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -127,7 +127,7 @@ void G4eeToHadronsModel::Initialise(const G4ParticleDefinition*,
|
||||
}
|
||||
ComputeCMCrossSectionPerElectron();
|
||||
}
|
||||
if(verbose>0) {
|
||||
if(verbose>1) {
|
||||
G4cout << "G4eeToHadronsModel: Cross secsions per electron"
|
||||
<< " nbins= " << nbins
|
||||
<< " emin(MeV)= " << emin/MeV
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToHadronsMultiModel.cc,v 1.1 2005/05/18 10:12:33 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4eeToHadronsMultiModel.cc,v 1.2 2005/11/23 19:17:26 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -66,8 +66,8 @@ G4eeToHadronsMultiModel::G4eeToHadronsMultiModel(G4int ver, const G4String& name
|
||||
G4eeToHadronsMultiModel::~G4eeToHadronsMultiModel()
|
||||
{
|
||||
G4int n = models.size();
|
||||
if(n>1) {
|
||||
for(G4int i=1; i<n; i++) {
|
||||
if(n>0) {
|
||||
for(G4int i=0; i<n; i++) {
|
||||
delete models[i];
|
||||
}
|
||||
}
|
||||
@@ -103,9 +103,11 @@ void G4eeToHadronsMultiModel::Initialise(const G4ParticleDefinition* p, const G4
|
||||
|
||||
void G4eeToHadronsMultiModel::PrintInfo()
|
||||
{
|
||||
G4cout << " e+ annihilation into hadrons active above "
|
||||
<< thKineticEnergy/GeV << " GeV"
|
||||
<< G4endl;
|
||||
if(verbose > 0) {
|
||||
G4cout << " e+ annihilation into hadrons active above "
|
||||
<< thKineticEnergy/GeV << " GeV"
|
||||
<< G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -114,8 +116,9 @@ void G4eeToHadronsMultiModel::SetCrossSecFactor(G4double fac)
|
||||
{
|
||||
if(fac > 1.0) {
|
||||
csFactor = fac;
|
||||
G4cout << "### G4eeToHadronsMultiModel: The cross section for G4eeToHadronsMultiModel is "
|
||||
<< "increased by the Factor= " << csFactor << G4endl;
|
||||
if(verbose > 0)
|
||||
G4cout << "### G4eeToHadronsMultiModel: The cross section for G4eeToHadronsMultiModel is "
|
||||
<< "increased by the Factor= " << csFactor << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4eeToTwoPiModel.cc,v 1.2 2004/12/01 18:13:44 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4eeToTwoPiModel.cc,v 1.3 2005/11/29 08:13:07 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -85,7 +85,7 @@ G4PhysicsVector* G4eeToTwoPiModel::PhysicsVector(G4double emin,
|
||||
{
|
||||
G4double tmin = max(emin, 2.0*massPi);
|
||||
G4double tmax = max(tmin, emax);
|
||||
G4int nbins = (G4int)((tmax - tmin)/MeV);
|
||||
G4int nbins = (G4int)((tmax - tmin)/(5.*MeV));
|
||||
G4PhysicsVector* v = new G4PhysicsLinearVector(emin,emax,nbins);
|
||||
return v;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4hhIonisation.cc,v 1.2 2005/11/29 08:13:48 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4hhIonisation
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 30.09.2005
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#include "G4hhIonisation.hh"
|
||||
#include "G4BraggNoDeltaModel.hh"
|
||||
#include "G4BetheBlochNoDeltaModel.hh"
|
||||
#include "G4UniversalFluctuation.hh"
|
||||
#include "G4BohrFluctuations.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4Electron.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4hhIonisation::G4hhIonisation(const G4String& name)
|
||||
: G4VEnergyLossProcess(name),
|
||||
theParticle(0),
|
||||
theBaseParticle(0),
|
||||
isInitialised(false)
|
||||
{
|
||||
minKinEnergy = 0.1*keV;
|
||||
SetDEDXBinning(120);
|
||||
SetLambdaBinning(120);
|
||||
SetMinKinEnergy(minKinEnergy);
|
||||
SetMaxKinEnergy(100.0*TeV);
|
||||
SetVerboseLevel(2);
|
||||
mass = 0.0;
|
||||
ratio = 0.0;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4hhIonisation::~G4hhIonisation()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4hhIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part,
|
||||
const G4ParticleDefinition* bpart)
|
||||
{
|
||||
if(isInitialised) return;
|
||||
|
||||
theParticle = part;
|
||||
if(bpart) G4cout << "G4hhIonisation::InitialiseEnergyLossProcess WARNING: no "
|
||||
<< "base particle should be defined for the process "
|
||||
<< GetProcessName() << G4endl;
|
||||
|
||||
SetBaseParticle(0);
|
||||
SetSecondaryParticle(G4Electron::Electron());
|
||||
mass = theParticle->GetPDGMass();
|
||||
ratio = electron_mass_c2/mass;
|
||||
eth = 2.0*MeV*mass/proton_mass_c2;
|
||||
flucModel = new G4BohrFluctuations();
|
||||
|
||||
G4int nm = 1;
|
||||
|
||||
if(eth > minKinEnergy) {
|
||||
G4VEmModel* em = new G4BraggNoDeltaModel();
|
||||
em->SetLowEnergyLimit(minKinEnergy);
|
||||
em->SetHighEnergyLimit(eth);
|
||||
AddEmModel(nm, em, flucModel);
|
||||
nm++;
|
||||
}
|
||||
|
||||
G4VEmModel* em1 = new G4BetheBlochNoDeltaModel();
|
||||
em1->SetLowEnergyLimit(std::max(eth,minKinEnergy));
|
||||
em1->SetHighEnergyLimit(100.0*TeV);
|
||||
AddEmModel(nm, em1, flucModel);
|
||||
|
||||
SetStepLimits(0.1, 0.1*mm);
|
||||
|
||||
G4cout << "G4hhIonisation is initialised: nm= " << nm << G4endl;
|
||||
|
||||
isInitialised = true;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4hhIonisation::PrintInfo()
|
||||
{
|
||||
G4cout << " Delta-ray will not be produced; "
|
||||
<< "Bether-Bloch model for E > " << std::max(eth,minKinEnergy)
|
||||
<< G4endl;
|
||||
if(eth > minKinEnergy) G4cout
|
||||
<< " ICRU49 parametrisation scaled from protons below.";
|
||||
G4cout << G4endl;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
Reference in New Issue
Block a user