Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4AtomicTransitionManager.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
// Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
@@ -45,7 +45,6 @@
#include "globals.hh"
#include "g4std/vector"
#include "G4AtomicTransitionManager.hh"
#include "G4DynamicParticle.hh"
class G4AtomicDeexcitation {
@@ -57,8 +56,18 @@ public:
// Returns a vector contains the photons generated by radiative transitions
// (non zero particles) or by non radiative transitions (zero particles)
G4std::vector<G4DynamicParticle*>* GenerateParticles(G4int Z, G4int shellId);
G4std::vector<G4DynamicParticle*>* GenerateParticles(G4int Z, G4int shellId);
void SetCutForSecondaryPhotons(G4double cut);
// Set threshold energy for fluorescence
void SetCutForAugerElectrons(G4double cut);
// Set threshold energy for Auger electron production
void ActivateAugerElectronProduction(G4bool val);
// Activate Auger electron production
private:
// Decides wether a radiative transition is possible and, if it is,
@@ -74,6 +83,14 @@ private:
// Data member which stores the shells to be filled by
// the radiative transition
G4int newShellId;
G4double minGammaEnergy;
G4double minElectronEnergy;
G4bool fAuger;
// Data member wich stores the id of the shell where is the vacancy
// left from the Auger electron
G4int augerVacancyId;
};
@@ -22,7 +22,7 @@
//
//
// $Id: G4AtomicShell.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
// Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
@@ -22,7 +22,7 @@
//
//
// $Id: G4AtomicTransition.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
//
@@ -51,8 +51,10 @@ class G4AtomicTransition {
public:
G4AtomicTransition(G4int,const G4std::vector<G4int>&,const G4DataVector&,
const G4DataVector&);
G4AtomicTransition(G4int finalShell,
const G4std::vector<G4int>& ids,
const G4DataVector& energies,
const G4DataVector& probabilities);
~G4AtomicTransition();
// All the data stored and provided by this class are relative to a
@@ -22,7 +22,7 @@
//
//
// $Id: G4AtomicTransitionManager.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Authors: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
// Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
@@ -36,8 +36,8 @@
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics, fills and manages G4AtomicShell
// and G4AtomicTransition objects
// Low Energy Electromagnetic Physics: create or fills and manages G4AtomicShell,
// G4FluoTransition, G4AugerTransition objects.
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// -------------------------------------------------------------------
@@ -47,9 +47,10 @@
#include "G4ShellData.hh"
#include "G4FluoData.hh"
#include "G4AtomicTransition.hh"
#include "G4AugerData.hh"
#include "G4FluoTransition.hh"
#include "G4AtomicShell.hh"
#include "g4std/map"
// #include "g4std/map"
#include "g4std/vector"
#include "globals.hh"
@@ -64,20 +65,37 @@ public:
// Z is the atomic number of the element, shellIndex is the
// index (in EADL) of the shell
const G4AtomicShell* Shell(G4int Z, size_t shellIndex);
G4AtomicShell* Shell(G4int Z, size_t shellIndex) const;
// Z is the atomic number of the element, shellIndex is the
// index (in EADL) of the final shell for the transition
const G4AtomicTransition* ReachableShell(G4int Z, size_t shellIndex);
// This function gives, upon Z and the Index of the initial shell where te vacancy is,
// the radiative transition that can happen (originating shell, energy, probability)
const G4FluoTransition* ReachableShell(G4int Z, size_t shellIndex) const ;
// This function gives, upon Z and the Index of the initial shell where te vacancy is,
// the NON-radiative transition that can happen with originating shell for the transition, and the
// data for the possible auger electrons emitted (originating vacancy, energy amnd probability)
const G4AugerTransition* ReachableAugerShell(G4int Z, G4int shellIndex) const ;
// This function returns the number of shells of the element
// whose atomic number is Z
G4int NumberOfShells(G4int Z);
G4int NumberOfShells(G4int Z) const;
// This function returns the number of those shells of the element
// whose atomic number is Z which are reachable through a radiative
// transition
G4int NumberOfReachableShells(G4int Z);
// This function returns the number of possible radiative transitions for the atom with atomic number Z
// i.e. the number of shell in wich a vacancy can be filled with a radiative transition
G4int NumberOfReachableShells(G4int Z)const ;
// This function returns the number of possible NON-radiative transitions for the atom with atomic number Z
// i.e. the number of shell in wich a vacancy can be filled by a NON-radiative transition
G4int NumberOfReachableAugerShells(G4int Z)const ;
// Gives the sum of the probabilities of radiative transition towards the
// shell whose index is shellIndex
@@ -94,6 +112,9 @@ protected:
~G4AtomicTransitionManager();
private:
// Hide copy constructor and assignment operator
G4AtomicTransitionManager& operator=(const G4AtomicTransitionManager& right);
G4AtomicTransitionManager(const G4AtomicTransitionManager&);
static G4AtomicTransitionManager* instance;
@@ -103,8 +124,12 @@ private:
// the first element of the map is the atomic number Z.
// the second element is a vector of G4AtomicTransition*.
G4std::map<G4int,G4std::vector<G4AtomicTransition*>,G4std::less<G4int> > transitionTable;
G4std::map<G4int,G4std::vector<G4FluoTransition*>,G4std::less<G4int> > transitionTable;
// since Augereffect data r stored as a table in G4AugerData, we have here a pointer to an element of that class itself.
G4AugerData* augerData;
// Minimum and maximum Z in EADL table containing identities and binding
// energies of shells
G4int zMin;
@@ -0,0 +1,132 @@
//
// ********************************************************************
// * 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: G4AugerData.hh
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
//
// History:
// -----------
// 2 June 2002 First committed to cvs
//
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics
// This Class loads and stores all the information of auger effect (shellIds,
// probabilities and energies of the electrons emitted)
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// -------------------------------------------------------------------
#ifndef G4AUGERDATA_HH
#define G4AUGERDATA_HH 1
#include "globals.hh"
#include "g4std/vector"
#include "g4std/map"
#include "G4AugerTransition.hh"
class G4DataVector;
class G4AugerData
{
public:
G4AugerData();
~G4AugerData();
// The method returns the number of shells in wich a
// vacancy can be filled by a NON-radiative transition, given the atomic number
size_t NumberOfVacancies(G4int Z) const;
// Given the index of the vacancy (and the atomic number Z) returns its identity
G4int VacancyId(G4int Z, G4int vacancyIndex) const;
// Given the index of a vacancy in the atom with the atomc number Z, returns the number of
//shells starting from wich an electron can fill the vacancy
size_t NumberOfTransitions(G4int Z, G4int vacancyIndex) const;
// Given the atomic number Z, the Index of the initial vacancy shell
// and the index of the starting shell for the
// transition, returns the identity of the shell originating the electron transition
G4int StartShellId(G4int Z, G4int initialVacancyIndex, G4int transitionShellIndex) const;
// Given the atomic number , the indexes of the starting, the auger originating shell,
// and the transition shell Id, returns the transition energy
G4double StartShellEnergy(G4int Z, G4int vacancyIndex, G4int transitionId, G4int augerIndex) const;
// Given the atomic number, the index of the starting shell, the auger originating shells,
// and the transition shell Id, returns the transition probability
G4double StartShellProb(G4int Z, G4int vacancyIndex,G4int transitionId,G4int augerIndex) const;
// Given the atomic number, the index of the starting vacancy shell and the transition shell Id,
// returns the number of shells wich an auger electron can come from.
size_t NumberOfAuger(G4int Z, G4int initIndex, G4int vacancyId) const;
// Given the atomic number, th index of the starting and the auger originating shell,
// and the transition shell Id, returns the ager originating shell Id
size_t AugerShellId(G4int Z, G4int vacancyIndex, G4int transId, G4int augerIndex) const;
G4std::vector<G4AugerTransition> LoadData(G4int Z);
void BuildAugerTransitionTable();
void PrintData(G4int Z);
// Given the atomic number and the vacancy intial shell index returns
// the AugerTransition object related to that shell
G4AugerTransition* GetAugerTransition(G4int Z, G4int vacancyShellIndex);
// Given the atomic number returns a vector of possible AugerTransition objects
G4std::vector<G4AugerTransition>* GetAugerTransitions(G4int Z);
private:
// G4std::map<G4int,G4DataVector*,G4std::less<G4int> > idMap;
typedef G4std::map<G4int,G4std::vector<G4AugerTransition>,G4std::less<G4int> > trans_Table;
trans_Table augerTransitionTable;
/*
G4std::map<G4int,G4std::map<G4Int,G4DataVector*,G4std::less<G4int> >,G4std::less<G4int> > transProbabilityMap;
G4std::map<G4int,G4std::map<G4Int,G4DataVector*,G4std::less<G4int> >,G4std::less<G4int> > transAugerIdMap;
*/
G4std::vector<G4int> nInitShells;
G4std::vector<G4int> numberOfVacancies;
};
#endif
@@ -0,0 +1,122 @@
//
// ********************************************************************
// * 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: G4AugerTransition.hh v0.1
//
//
// Author: Alfonso Mantero (Alfosno.Mantero@ge.infn.it)
//
// History:
// -----------
// 1 Jun 2002: first Commited to CVS
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics
// This Class stores all the information of auger effect relative
// to one main vacancy in a atom, like possible auger emission with
// relative probabilites, originating shell's Ids, probabilities of
// transition and auger electron energies.
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// -------------------------------------------------------------------
#ifndef G4AugerTransition_h
#define G4AugerTransition_h 1
#include "G4DataVector.hh"
#include "globals.hh"
#include "g4std/vector"
#include "g4std/map"
class G4AugerTransition {
public:
G4AugerTransition(G4int finalShell, G4std::vector<G4int> transIds,
const G4std::map<G4int, G4std::vector<G4int>, G4std::less<G4int> >* idMap,
const G4std::map<G4int, G4DataVector, G4std::less<G4int> >* energyMap,
const G4std::map<G4int, G4DataVector, G4std::less<G4int> >* probabilityMap);
~G4AugerTransition();
// All the data stored and provided by this class are relative to a
// given vacancy, whose identity is provided by the FinalShellId() method,
// in an atom of a given material
// Returns the ids of the shells from wich an auger electron culd came from, given the shell
// from wich the transition electron comes from.
const G4std::vector<G4int>* AugerOriginatingShellIds(G4int startShellId) const;
// Returns the ids of the shells from wich an electron cuuld fill the vacancy in finalShellId
const G4std::vector<G4int>* TransitionOriginatingShellIds() const;
// Returns the energiess of the possible auger electrons, given th shell
// from wich the transition electron comes from.
const G4DataVector* AugerTransitionEnergies(G4int startShellId) const;
// Returns the emission probabilities of the auger electrons, given th shell
// from wich the transition electron comes from.
const G4DataVector* AugerTransitionProbabilities(G4int startShellId) const;
// returns the id of the shell in wich the transition electron arrives
const G4int FinalShellId() const;
// Returns the id of the shell from wich come the auger electron , given the shell
// from wich the transition electron comes from and the index number.
G4int AugerOriginatingShellId(G4int index, G4int startShellId) const;
// Returns the energy of the auger electron, given the shell
// from wich the transition electron comes from and the index number.
G4double AugerTransitionEnergy(G4int index, G4int startShellId) const;
// Returns the probability of the auger emission, given the shell
// from wich the transition electron comes from and the index number.
G4double AugerTransitionProbability(G4int index, G4int startShellId) const;
// Returns the id of the shell form wich the transition electron come from
G4int TransitionOriginatingShellId(G4int index) const;
private:
G4int finalShellId;
G4std::map<G4int,G4std::vector<G4int>,G4std::less<G4int> > augerOriginatingShellIdsMap;
G4std::map<G4int,G4DataVector,G4std::less<G4int> > augerTransitionEnergiesMap;
G4std::map<G4int,G4DataVector,G4std::less<G4int> > augerTransitionProbabilitiesMap;
G4std::vector<G4int> transitionOriginatingShellIds;
};
#endif
@@ -71,9 +71,12 @@ protected:
G4std::vector<G4VEMDataSet*>* BuildCrossSectionsForMaterials(const G4DataVector& energyVector,
const G4DataVector* energyCuts);
private:
// Hide copy constructor and assignment operator
G4BremsstrahlungCrossSectionHandler& operator=(const G4BremsstrahlungCrossSectionHandler& right);
G4BremsstrahlungCrossSectionHandler(const G4BremsstrahlungCrossSectionHandler&);
const G4VEnergySpectrum* theBR;
G4VDataSetAlgorithm* interp;
@@ -22,7 +22,7 @@
//
//
// $Id: G4BremsstrahlungParameters.hh,v 1.6 2001/11/29 19:01:44 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
// V. Ivanchenko (Vladimir.Ivantchenko@cern.ch)
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4CompositeEMDataSet.hh,v 1.3 2001/10/08 15:27:01 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4CompositeEMDataSet.hh,v 1.4 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -81,6 +81,10 @@ public:
private:
// Hide copy constructor and assignment operator
G4CompositeEMDataSet& operator=(const G4CompositeEMDataSet& right);
G4CompositeEMDataSet(const G4CompositeEMDataSet&);
void LoadData(const G4String& fileName);
G4VDataSetAlgorithm* algorithm;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4CrossSectionHandler.hh,v 1.6 2001/10/05 18:25:19 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4CrossSectionHandler.hh,v 1.7 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4CutsPerMaterialWarning.hh,v 1.1 2001/11/07 22:38:47 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4EMDataSet.hh,v 1.2 2001/10/08 07:45:32 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4EMDataSet.hh,v 1.3 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -56,18 +56,24 @@ public:
G4EMDataSet(G4int Z,
G4DataVector* points,
G4DataVector* values,
G4VDataSetAlgorithm* interpolation,
const G4VDataSetAlgorithm* interpolation,
G4double unitE = MeV, G4double unitData = barn);
G4EMDataSet(G4int Z,
const G4String& dataFile,
G4VDataSetAlgorithm* interpolation,
const G4VDataSetAlgorithm* interpolation,
G4double unitE = MeV, G4double unitData = barn);
~G4EMDataSet();
G4double FindValue(G4double e, G4int id = 0) const;
virtual const G4VEMDataSet* GetComponent(G4int i) const;
virtual void AddComponent(G4VEMDataSet* dataSet);
virtual size_t NumberOfComponents() const;
void PrintData() const;
const G4DataVector& GetEnergies(G4int i) const { return *energies; }
@@ -75,6 +81,10 @@ public:
private:
// Hide copy constructor and assignment operator
G4EMDataSet& operator=(const G4EMDataSet& right);
G4EMDataSet(const G4EMDataSet&);
void LoadData(const G4String& dataFile);
G4int FindBinLocation(G4double energy) const;
@@ -84,7 +94,7 @@ private:
G4DataVector* energies; // Owned pointer
G4DataVector* data; // Owned pointer
G4VDataSetAlgorithm* algorithm; // Owned pointer
const G4VDataSetAlgorithm* algorithm; // Owned pointer
G4double unit1;
G4double unit2;
@@ -22,8 +22,6 @@
//
//
// $Id: G4FluoData.hh,v 1.1 ?????
// GEANT4 tag $Name: geant4-04-00 $
//
// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
//
@@ -48,7 +46,7 @@
#include "g4std/vector"
#include "g4std/map"
class G4FluoTransition;
class G4DataVector;
class G4FluoData
@@ -72,28 +70,37 @@ public:
// Given the indexes of the starting and final shells for the
// transition, returns the identity of the starting one
G4int StartShellId(G4int initIndex,G4int vacancyIndex);
G4int StartShellId(G4int initIndex, G4int vacancyIndex) const;
// Given the indexes of the starting and final shells for the
// transition, returns the transition energy
G4double StartShellEnergy(G4int initIndex,G4int vacancyIndex);
G4double StartShellEnergy(G4int initIndex, G4int vacancyIndex) const;
// Given the indexes of the starting and final shells for the
// transition, returns the probability of this transition
G4double StartShellProb(G4int initIndex,G4int vacancyIndex);
G4double StartShellProb(G4int initIndex, G4int vacancyIndex) const;
void LoadData( G4int Z);
void LoadData(G4int Z);
void PrintData();
//void BuildFluoTransitionTable();
//G4std::vector<G4FluoTransition*> GetFluoTransitions(G4int Z);
//G4FluoTransition GetFluoTransition(G4int Z, G4int shellId);
private:
// Hide copy constructor and assignment operator
G4FluoData& operator=(const G4FluoData& right);
G4FluoData(const G4FluoData&);
G4std::map<G4int,G4DataVector*,G4std::less<G4int> > idMap;
G4std::map<G4int,G4DataVector*,G4std::less<G4int> > energyMap;
G4std::map<G4int,G4DataVector*,G4std::less<G4int> > probabilityMap;
G4std::vector<G4int> nInitShells;
G4int numberOfVacancies;
G4std::map<G4int,G4std::vector<G4FluoTransition*>,G4std::less<G4int> > fluoTransitionTable;
};
#endif
@@ -0,0 +1,96 @@
//
// ********************************************************************
// * 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: G4FluoTransition.hh,v 1.2 ????
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
//
// History:
// -----------
// 16 Sept 2001 Modofied according to a design iteration in the
// LowEnergy category
//
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics, a data container
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// -------------------------------------------------------------------
#ifndef G4FluoTransition_h
#define G4FluoTransition_h 1
#include "G4DataVector.hh"
#include "globals.hh"
#include "g4std/vector"
class G4FluoTransition {
public:
G4FluoTransition(G4int,const G4std::vector<G4int>&,const G4DataVector&,
const G4DataVector&);
~G4FluoTransition();
// All the data stored and provided by this class are relative to a
// given vacancy, whose identity is provided by the FinalShellId() method,
// in an atom of a given material
// Returns the identities of the originating shells for the transitions
const G4std::vector<G4int>& OriginatingShellIds() const;
// Return the energies of the transitions
const G4DataVector& TransitionEnergies() const;
// Return the probabilities of the transitions
const G4DataVector& TransitionProbabilities() const;
// Return the identity if the vacancy
const G4int FinalShellId() const;
// Given the index of the originating shells returns its identity
G4int OriginatingShellId(G4int index) const;
// Given the index of the originating shells returns the energy
// of the transition starting from it
G4double TransitionEnergy(G4int index) const;
// Given the index of the originating shells returns the probability
// of the transition starting from it
G4double TransitionProbability(G4int index) const;
private:
G4int finalShellId;
G4std::vector<G4int> originatingShellIds;
G4DataVector transitionEnergies;
G4DataVector transitionProbabilities;
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LinInterpolation.hh,v 1.1 2001/11/29 19:01:44 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4LinInterpolation.hh,v 1.2 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -57,10 +57,9 @@ public:
const G4DataVector& energies,
const G4DataVector& data) const;
virtual G4VDataSetAlgorithm* Clone() const { return new G4LinInterpolation; }
G4VDataSetAlgorithm* Clone() const;
private:
// Hide copy constructor and assignment operator
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
//
// Author: Vladimir Ivanchenko (Vladimir.Ivantchenko@cern.ch)
//
// History:
// -----------
// 27 May 2002 VI Created
//
// -------------------------------------------------------------------
// Class description:
// Lin-Log interpolation of a data set
// -------------------------------------------------------------------
#ifndef G4LINLOGINTERPOLATION_HH
#define G4LINLOGINTERPOLATION_HH 1
#include "globals.hh"
#include "G4VDataSetAlgorithm.hh"
#include "G4DataVector.hh"
class G4LinLogInterpolation : public G4VDataSetAlgorithm {
public:
G4LinLogInterpolation();
~G4LinLogInterpolation();
G4double Calculate(G4double point, G4int bin,
const G4DataVector& energies,
const G4DataVector& data) const;
virtual G4VDataSetAlgorithm* Clone() const { return new G4LinLogInterpolation; }
private:
// Hide copy constructor and assignment operator
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// Author: Vladimir Ivanchenko (Vladimir.Ivantchenko@cern.ch)
//
// History:
// -----------
// 27 May 2002 VI Created
//
// -------------------------------------------------------------------
// Class description:
// Lin-Log-Log interpolation of a data set
// -------------------------------------------------------------------
#ifndef G4LINLOGLOGINTERPOLATION_HH
#define G4LINLOGLOGINTERPOLATION_HH 1
#include "globals.hh"
#include "G4VDataSetAlgorithm.hh"
#include "G4DataVector.hh"
class G4LinLogLogInterpolation : public G4VDataSetAlgorithm {
public:
G4LinLogLogInterpolation();
~G4LinLogLogInterpolation();
G4double Calculate(G4double point, G4int bin,
const G4DataVector& energies,
const G4DataVector& data) const;
virtual G4VDataSetAlgorithm* Clone() const;
private:
// Hide copy constructor and assignment operator
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LogLogInterpolation.hh,v 1.2 2001/10/08 07:45:33 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4LogLogInterpolation.hh,v 1.3 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -57,7 +57,7 @@ public:
const G4DataVector& energies,
const G4DataVector& data) const;
virtual G4VDataSetAlgorithm* Clone() const { return new G4LogLogInterpolation; }
virtual G4VDataSetAlgorithm* Clone() const;
private:
@@ -23,7 +23,7 @@
//
// -------------------------------------------------------------------
// $Id: G4LowEnergyBremsstrahlung.hh,v 1.28 2001/11/29 22:47:27 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: A. Forti
//
@@ -21,7 +21,7 @@
// ********************************************************************
// $Id: G4LowEnergyCompton.hh,v 1.19 2001/12/13 12:04:13 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: A. Forti
// Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
@@ -22,7 +22,7 @@
//
//
// $Id: G4LowEnergyGammaConversion.hh,v 1.14 2001/10/08 07:45:33 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: A. Forti
// Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
@@ -21,8 +21,8 @@
// ********************************************************************
//
// -------------------------------------------------------------------
// $Id: G4LowEnergyIonisation.hh,v 1.34 2001/11/29 22:47:27 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4LowEnergyIonisation.hh,v 1.36 2002/06/01 03:14:18 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: A. Forti
//
@@ -35,6 +35,7 @@
// 18 Oct 2001 M.G. Pia Revision to improve code quality and
// consistency with design
// 29 Nov 2001 V.Ivanchenko New parametrisation of EEDL data
// 31 May 2002 V.Ivanchenko Add Auger flag
//
// -------------------------------------------------------------------
@@ -46,7 +47,7 @@
// --------------------------------------------------------------
#ifndef G4lOWENERGYIONISATION_HH
#ifndef G4LOWENERGYIONISATION_HH
#define G4LOWENERGYIONISATION_HH 1
#include "G4eLowEnergyLoss.hh"
@@ -83,6 +84,8 @@ public:
void SetCutForLowEnSecPhotons(G4double cut);
void SetCutForLowEnSecElectrons(G4double cut);
void ActivateAuger(G4bool val);
protected:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LowEnergyPhotoElectric.hh,v 1.23 2001/10/08 07:45:34 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4LowEnergyPhotoElectric.hh,v 1.25 2002/06/01 03:14:18 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: A. Forti
// Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
@@ -32,6 +32,7 @@
// 02 Mar 1999 A. Forti 1st implementation
// 12 Aug 2001 MGP Major revision according to a design iteration
// 16 Sept 2001 E. Guardincerri Added fluorescence generation
// 31 May 2002 V.Ivanchenko Add cut on Auger electrons
//
// -------------------------------------------------------------------
@@ -72,6 +73,10 @@ public:
void SetCutForLowEnSecPhotons(G4double);
void SetCutForLowEnSecElectrons(G4double);
void ActivateAuger(G4bool);
// For testing purpose only
G4double DumpMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
@@ -104,6 +109,7 @@ private:
const G4double intrinsicHighEnergyLimit;
G4double cutForLowEnergySecondaryPhotons;
G4double cutForLowEnergySecondaryElectrons;
G4AtomicDeexcitation deexcitationManager;
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LowEnergyPolarizedCompton.hh,v 1.7 2001/10/24 09:07:20 flongo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4LowEnergyPolarizedCompton.hh,v 1.8 2002/05/31 18:11:45 flongo Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -37,6 +37,11 @@
//
// 17 October 2001 - F.Longo Major revision according to design iteration
//
// 21 February 2002 - F.Longo Revisions with A.Zoglauer and G.Depaola
// - better description of parallelism
// - system of ref change method improved
//
//
// Class description:
// Low Energy electromagnetic process, Polarised Compton scattering
// Further documentation available from http://www.ge.infn.it/geant4/lowE
@@ -100,18 +105,15 @@ private:
G4VCrossSectionHandler* crossSectionHandler;
G4VRangeTest* rangeTest;
const G4double intrinsicLowEnergyLimit; // intrinsic validity range
const G4double intrinsicHighEnergyLimit;
// specific methods for polarization
G4ThreeVector SetRandomPolarization(G4ThreeVector& direction0); // Random Polarization
G4ThreeVector GetRandomPolarization(G4ThreeVector& direction0); // Random Polarization
G4ThreeVector GetPerpendicularPolarization(const G4ThreeVector& direction0, const G4ThreeVector& polarization0) const;
G4ThreeVector SetPerpendicularVector(G4ThreeVector& a); // temporary
G4ThreeVector SetNewPolarization(G4double epsilon, G4double sinSqrTheta,
G4double phi, G4double cosTheta);
G4double SetPhi(G4double, G4double);
@@ -22,7 +22,7 @@
//
//
// $Id: G4LowEnergyRayleigh.hh,v 1.15 2001/10/08 07:45:35 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4RangeNoTest.hh,v 1.1 2001/10/08 07:51:41 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RangeTest.hh,v 1.1 2001/10/08 07:51:42 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4RangeTest.hh,v 1.2 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -53,7 +53,7 @@ public:
G4RangeTest() { }
virtual ~G4RangeTest() { }
virtual ~G4RangeTest();
virtual G4bool Escape(const G4ParticleDefinition* particle,
const G4Material* material,
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4SemiLogInterpolation.hh,v 1.2 2001/10/08 07:45:35 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4SemiLogInterpolation.hh,v 1.3 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -57,7 +57,7 @@ public:
const G4DataVector& energies,
const G4DataVector& data) const;
virtual G4VDataSetAlgorithm* Clone() const { return new G4SemiLogInterpolation; }
virtual G4VDataSetAlgorithm* Clone() const;
private:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ShellData.hh,v 1.1 2001/08/20 16:36:01 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4ShellData.hh,v 1.2 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -69,7 +69,11 @@ public:
private:
G4int zMin;
// Hide copy constructor and assignment operator
G4ShellData& operator=(const G4ShellData& right);
G4ShellData(const G4ShellData&);
G4int zMin;
G4int zMax;
G4std::map<G4int,G4DataVector*,G4std::less<G4int> > idMap;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ShellEMDataSet.hh,v 1.3 2001/09/10 18:05:16 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4ShellEMDataSet.hh,v 1.4 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -81,6 +81,10 @@ public:
private:
// Hide copy constructor and assignment operator
G4ShellEMDataSet& operator=(const G4ShellEMDataSet& right);
G4ShellEMDataSet(const G4ShellEMDataSet&);
void LoadData(const G4String& fileName);
G4int z;
@@ -29,6 +29,7 @@
// History:
// -----------
// 21 Sept 2001 Elena Guardincerri Created
// 25 Mar 2002 V.Ivanchenko Change AverageNOfIonisations int->double
//
// -------------------------------------------------------------------
@@ -43,7 +44,6 @@
#include "globals.hh"
#include "g4std/vector"
//#include "g4std/map"
class G4VEMDataSet;
class G4Material;
@@ -64,13 +64,12 @@ public:
private:
G4int AverageNOfIonisations(const G4Material* material,
const G4Element* element,
G4double energy,
G4double eLoss) const;
G4double AverageNOfIonisations(const G4Material* material,
G4int index,
G4double energy,
G4double eLoss) const;
G4std::vector<G4VEMDataSet*> xsis;
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VCrossSectionHandler.hh,v 1.9 2001/10/10 09:49:29 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4VCrossSectionHandler.hh,v 1.11 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -30,6 +30,7 @@
// -----------
// 16 Sep 2001 MGP Created
// 26 Sep 2001 V.Ivanchenko Hide copy constructor and assignement operator
// 18 Apr 2002 V.Ivanchenko Move member function ValueForMaterial to public
//
// -------------------------------------------------------------------
@@ -86,6 +87,8 @@ public:
G4double FindValue(G4int Z, G4double e, G4int shellIndex) const;
G4double ValueForMaterial(const G4Material* material, G4double e) const;
void LoadData(const G4String& dataFile);
void LoadShellData(const G4String& dataFile);
@@ -98,19 +101,16 @@ protected:
G4int NumberOfComponents(G4int Z) const;
G4double ValueForMaterial(const G4Material* material, G4double e) const;
void ActiveElements();
// Factory method
virtual G4std::vector<G4VEMDataSet*>* BuildCrossSectionsForMaterials(
const G4DataVector& energyVector,
const G4DataVector* energyCuts = 0) = 0;
virtual G4std::vector<G4VEMDataSet*>* BuildCrossSectionsForMaterials(const G4DataVector& energyVector,
const G4DataVector* energyCuts = 0) = 0;
// Factory method
virtual G4VDataSetAlgorithm* CreateInterpolation();
G4VDataSetAlgorithm* GetInterpolation() const { return interpolation; }
const G4VDataSetAlgorithm* GetInterpolation() const { return interpolation; }
private:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VDataSetAlgorithm.hh,v 1.5 2001/10/09 12:13:48 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4VDataSetAlgorithm.hh,v 1.6 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -62,7 +62,7 @@ private:
// Hide copy constructor and assignment operator
G4VDataSetAlgorithm(const G4VDataSetAlgorithm&);
G4VDataSetAlgorithm & operator=(const G4VDataSetAlgorithm &right);
G4VDataSetAlgorithm& operator=(const G4VDataSetAlgorithm& right);
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VEMDataSet.hh,v 1.5 2001/10/04 14:03:57 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4VEMDataSet.hh,v 1.6 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -60,11 +60,11 @@ public:
virtual void PrintData() const = 0;
virtual const G4VEMDataSet* GetComponent(G4int i) const { return 0; }
virtual const G4VEMDataSet* GetComponent(G4int i) const = 0;
virtual void AddComponent(G4VEMDataSet* dataSet) { }
virtual void AddComponent(G4VEMDataSet* dataSet) = 0;
virtual size_t NumberOfComponents() const { return 0; }
virtual size_t NumberOfComponents() const = 0;
virtual const G4DataVector& GetEnergies(G4int i) const = 0;
virtual const G4DataVector& GetData(G4int i) const = 0;
@@ -86,9 +86,8 @@ public:
virtual G4double MaxEnergyOfSecondaries(G4double kineticEnergy,
G4int Z = 0,
const G4ParticleDefinition* pd = 0) const = 0;
virtual G4double Excitation(G4int Z, G4double kineticEnergy) const
{return 0.0;};
virtual G4double Excitation(G4int Z, G4double kineticEnergy) const = 0;
virtual void PrintData() const = 0;
@@ -97,8 +96,8 @@ protected:
private:
// Hide copy constructor and assignment operator
G4VEnergySpectrum(const G4VEnergySpectrum&);
G4VEnergySpectrum & operator=(const G4VEnergySpectrum &right);
G4VEnergySpectrum(const G4VEnergySpectrum&);
G4VEnergySpectrum& operator=(const G4VEnergySpectrum &right);
};
@@ -22,7 +22,7 @@
//
//
// $Id: G4VRangeTest.hh,v 1.1 2001/10/08 07:51:42 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4VeLowEnergyLoss.hh,v 1.7 2001/11/23 11:45:20 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// 3.4.2000 Veronique Lefebure:
// Move utils/include/G4VEnergyLoss.hh to
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4eBremsstrahlungSpectrum.hh,v 1.2 2001/11/29 19:01:45 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eBremsstrahlungSpectrum.hh,v 1.3 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// -------------------------------------------------------------------
//
@@ -88,8 +88,9 @@ public:
G4double MaxEnergyOfSecondaries(G4double kineticEnergy,
G4int Z = 0,
const G4ParticleDefinition* pd=0) const
{ return kineticEnergy; }
const G4ParticleDefinition* pd=0) const;
G4double Excitation(G4int Z, G4double kineticEnergy) const;
void PrintData() const;
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4eIonisationCrossSectionHandler.hh,v 1.2 2001/10/10 17:37:27 pia Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eIonisationCrossSectionHandler.hh,v 1.4 2002/05/28 09:15:26 pia Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// -------------------------------------------------------------------
//
@@ -47,7 +47,7 @@
//
#ifndef G4EIONISATIONCROSSSECTIONHANDLER_HH
#define GG4EIONISATIONCROSSSECTIONHANDLER_HH 1
#define G4EIONISATIONCROSSSECTIONHANDLER_HH 1
#include "G4VCrossSectionHandler.hh"
#include "globals.hh"
@@ -78,7 +78,11 @@ protected:
private:
const G4VEnergySpectrum* theParam;
// Hide copy constructor and assignment operator
G4eIonisationCrossSectionHandler& operator=(const G4eIonisationCrossSectionHandler& right);
G4eIonisationCrossSectionHandler(const G4eIonisationCrossSectionHandler&);
const G4VEnergySpectrum* theParam;
G4VDataSetAlgorithm* interp;
};
@@ -22,7 +22,7 @@
//
//
// $Id: G4eIonisationParameters.hh,v 1.6 2001/11/29 19:01:45 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
// V. Ivanchenko
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4eIonisationSpectrum.hh,v 1.3 2001/11/29 19:01:45 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eIonisationSpectrum.hh,v 1.4 2002/05/30 19:52:23 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// -------------------------------------------------------------------
//
@@ -38,6 +38,7 @@
// 10.10.01 MGP Revision to improve code quality and
// consistency with design
// 29.11.01 V.Ivanchenko Parametrisation is updated
// 30.05.02 VI Add inline functions
//
// -------------------------------------------------------------------
@@ -50,11 +51,12 @@
// -------------------------------------------------------------------
#ifndef G4EIONISATIONSPECTRUM_HH
#define GG4EIONISATIONSPECTRUM_HH 1
#define G4EIONISATIONSPECTRUM_HH 1
#include "G4VEnergySpectrum.hh"
#include "G4eIonisationParameters.hh"
class G4eIonisationParameters;
//class G4eIonisationParameters;
class G4DataVector;
class G4eIonisationSpectrum : public G4VEnergySpectrum
@@ -108,8 +110,25 @@ private:
G4eIonisationParameters* theParam;
G4double lowestE;
G4double factor;
G4int verbose;
G4int iMax;
G4int verbose;
};
inline G4double G4eIonisationSpectrum::Function(G4double x,
const G4DataVector& p) const
{
G4double f = 1.0 - p[0] - p[iMax]*x
+ x*x*(1.0 - p[iMax] + (1.0/(1.0 - x) - p[iMax])/(1.0 - x))
+ 0.5*p[0]/x;
return f;
}
inline G4double G4eIonisationSpectrum::Excitation(G4int Z, G4double e) const
{
return theParam->Excitation(Z, e);
}
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4eLowEnergyLoss.hh,v 1.7 2001/11/23 11:45:20 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eLowEnergyLoss.hh,v 1.8 2002/03/28 11:48:56 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// -------------------------------------------------------------------
@@ -56,6 +56,7 @@
// 10.02.00 modifications, new e.m. structure , L.Urban
// 18.10.01 Revision to improve code quality and consistency with design
// 23.11.01 V.Ivanchenko Move static member-functions from header to source
// 28.03.02 V.Ivanchenko add fluorescence flag
// ------------------------------------------------------------
#ifndef G4eLowEnergyLoss_h
@@ -137,7 +138,12 @@ class G4eLowEnergyLoss : public G4VeLowEnergyLoss
static G4double GetLowerBoundEloss();
static G4double GetUpperBoundEloss();
static G4int GetNbinEloss();
void ActivateFluorescence(G4bool val);
// Set fluorescence flag on/off
G4bool Fluorescence() const;
// Get flurescence flag
protected:
@@ -225,6 +231,8 @@ class G4eLowEnergyLoss : public G4VeLowEnergyLoss
static G4PhysicsTable* thepRangeCoeffCTable;
static G4EnergyLossMessenger* eLossMessenger;
G4bool theFluo; // Fluorescence flag
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4eLowEnergyLoss.icc,v 1.3 2001/07/11 10:02:39 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eLowEnergyLoss.icc,v 1.4 2002/03/28 11:48:58 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ---------------------------------------------------------------
// GEANT 4 class inlined methods file
@@ -37,6 +37,7 @@
// -------------------------------------------------------------
//
// 08-09-98: cleanup
// 28-03-02 V.Ivanchenko add fluorescence flag
//
// ---------------------------------------------------------------
@@ -99,9 +100,19 @@ inline G4double G4eLowEnergyLoss::GetContinuousStepLimit(
inline G4bool G4eLowEnergyLoss::IsApplicable(const G4ParticleDefinition&
particle)
{
return( (&particle == G4Electron::Electron())
return( (&particle == G4Electron::Electron())
||(&particle == G4Positron::Positron()) );
}
inline void G4eLowEnergyLoss::ActivateFluorescence(G4bool val)
{
theFluo = val;
}
inline G4bool G4eLowEnergyLoss::Fluorescence() const
{
return theFluo;
}
//
@@ -44,6 +44,7 @@
// 23 Oct 2000 V.Ivanchenko Renew comments
// 30 Oct 2001 V.Ivanchenko Add minGammaEnergy and minElectronEnergy
// 07 Dec 2001 V.Ivanchenko Add SetFluorescence method
// 26 Feb 2002 V.Ivanchenko Add initialMass for GenericIons
// ------------------------------------------------------------
// Class Description:
@@ -186,6 +187,9 @@ public: // With description
void SetCutForAugerElectrons(G4double cut);
// Set threshold energy for Auger electron production
void ActivateAugerElectronProduction(G4bool val);
// Set Auger electron production flag on/off
protected:
@@ -294,6 +298,7 @@ private:
G4double fRangeNow ; //
G4double charge; //
G4double chargeSquare; //
G4double initialMass; // mass to calculate Lambda tables
G4AtomicDeexcitation deexcitationManager;
G4ShellVacancy* shellVacancy;
@@ -22,7 +22,7 @@
//
//
// $Id: G4hLowEnergyLoss.hh,v 1.13 2001/11/23 11:45:20 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// $Id:
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4hLowEnergyLoss.icc,v 1.2 2001/07/11 10:02:40 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
// $Id:
// ---------------------------------------------------------------