Import Geant4 8.1.0 source tree
This commit is contained in:
@@ -1,27 +1,30 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * License and 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 *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4hIonisation.cc,v 1.61 2005/10/02 16:38:11 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
// $Id: G4hIonisation.cc,v 1.65 2006/06/29 19:54:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -70,6 +73,8 @@
|
||||
// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
|
||||
// 24-03-05 Optimize internal interfaces (V.Ivantchenko)
|
||||
// 12-08-05 SetStepLimits(0.2, 0.1*mm) (mma)
|
||||
// 10-01-06 SetStepLimits -> SetStepFunction (V.Ivanchenko)
|
||||
// 26-05-06 scale negative particles from pi- and pbar, positive from pi+ and p (VI)
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -85,6 +90,11 @@
|
||||
#include "G4UniversalFluctuation.hh"
|
||||
#include "G4BohrFluctuations.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4PionPlus.hh"
|
||||
#include "G4PionMinus.hh"
|
||||
#include "G4KaonPlus.hh"
|
||||
#include "G4KaonMinus.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -100,9 +110,12 @@ G4hIonisation::G4hIonisation(const G4String& name)
|
||||
SetLambdaBinning(120);
|
||||
SetMinKinEnergy(0.1*keV);
|
||||
SetMaxKinEnergy(100.0*TeV);
|
||||
SetVerboseLevel(0);
|
||||
SetStepFunction(0.2, 1*mm);
|
||||
SetIntegral(true);
|
||||
SetVerboseLevel(1);
|
||||
mass = 0.0;
|
||||
ratio = 0.0;
|
||||
corr = G4LossTableManager::Instance()->EmCorrections();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -110,23 +123,39 @@ G4hIonisation::G4hIonisation(const G4String& name)
|
||||
G4hIonisation::~G4hIonisation()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4hIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part,
|
||||
const G4ParticleDefinition* bpart)
|
||||
void G4hIonisation::InitialiseEnergyLossProcess(
|
||||
const G4ParticleDefinition* part,
|
||||
const G4ParticleDefinition* bpart)
|
||||
{
|
||||
if(isInitialised) return;
|
||||
|
||||
theParticle = part;
|
||||
|
||||
if(part == bpart || part == G4Proton::Proton()) theBaseParticle = 0;
|
||||
else if(bpart == 0) theBaseParticle = G4Proton::Proton();
|
||||
else theBaseParticle = bpart;
|
||||
if(part == bpart ||
|
||||
part == G4Proton::Proton() ||
|
||||
part == G4AntiProton::AntiProton() ||
|
||||
part == G4PionPlus::PionPlus() ||
|
||||
part == G4PionMinus::PionMinus() ) theBaseParticle = 0;
|
||||
|
||||
else if(bpart == 0) {
|
||||
if(part == G4KaonPlus::KaonPlus())
|
||||
theBaseParticle = G4PionPlus::PionPlus();
|
||||
else if(part == G4KaonMinus::KaonMinus())
|
||||
theBaseParticle = G4PionMinus::PionMinus();
|
||||
else if(part->GetPDGCharge() > 0.0)
|
||||
theBaseParticle = G4Proton::Proton();
|
||||
else theBaseParticle = G4AntiProton::AntiProton();
|
||||
|
||||
} else theBaseParticle = bpart;
|
||||
|
||||
SetBaseParticle(theBaseParticle);
|
||||
SetSecondaryParticle(G4Electron::Electron());
|
||||
mass = theParticle->GetPDGMass();
|
||||
ratio = electron_mass_c2/mass;
|
||||
massratio = 1.0;
|
||||
if(theBaseParticle) massratio = theBaseParticle->GetPDGMass()/mass;
|
||||
|
||||
G4VEmModel* em = new G4BraggModel();
|
||||
em->SetLowEnergyLimit(0.1*keV);
|
||||
@@ -141,9 +170,6 @@ void G4hIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part
|
||||
em1->SetHighEnergyLimit(100.0*TeV);
|
||||
AddEmModel(2, em1, flucModel);
|
||||
|
||||
SetStepLimits(0.2, 1*mm);
|
||||
SetIntegral(true);
|
||||
|
||||
isInitialised = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user