Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuBremsstrahlung.hh,v 1.1.10.1 1999/12/07 20:50:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuBremsstrahlung.hh,v 1.3 2000/04/25 14:18:57 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4IMuEnergyLoss.hh"
|
||||
#include "G4VIMuEnergyLoss.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4Gamma.hh"
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
|
||||
class G4IMuBremsstrahlung : public G4IMuEnergyLoss
|
||||
class G4IMuBremsstrahlung : public G4VIMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuBremsstrahlung.icc,v 1.1.10.1.2.1 1999/12/08 17:34:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuBremsstrahlung.icc,v 1.2 1999/12/15 14:51:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
// GEANT 4 class inlined methods file
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuIonisation.hh,v 1.1.10.1 1999/12/07 20:50:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuIonisation.hh,v 1.3 2000/04/25 14:18:58 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
|
||||
// ------------------------------------------------------------
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4IMuEnergyLoss.hh"
|
||||
#include "G4VIMuEnergyLoss.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "G4PhysicsLinearVector.hh"
|
||||
|
||||
|
||||
class G4IMuIonisation : public G4IMuEnergyLoss
|
||||
class G4IMuIonisation : public G4VIMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuIonisation.icc,v 1.1.10.1.2.1 1999/12/08 17:34:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuIonisation.icc,v 1.2 1999/12/15 14:51:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuPairProduction.hh,v 1.1.10.1 1999/12/07 20:50:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuPairProduction.hh,v 1.3 2000/04/25 14:18:58 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// ------------------------------------------------------------
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4IMuEnergyLoss.hh"
|
||||
#include "G4VIMuEnergyLoss.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4Electron.hh"
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
|
||||
class G4IMuPairProduction : public G4IMuEnergyLoss
|
||||
class G4IMuPairProduction : public G4VIMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuPairProduction.icc,v 1.1.10.1.2.1 1999/12/08 17:34:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4IMuPairProduction.icc,v 1.2 1999/12/15 14:51:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung.hh,v 1.2.8.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4MuBremsstrahlung.hh,v 1.8 2000/05/23 09:55:37 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
@@ -18,6 +18,8 @@
|
||||
// -------- G4MuBremsstrahlung physics process ---------
|
||||
// by Laszlo Urban, September 1997
|
||||
// ************************************************************
|
||||
// 10/02/00 modifications , new e.m. structure, L.Urban
|
||||
//
|
||||
|
||||
#ifndef G4MuBremsstrahlung_h
|
||||
#define G4MuBremsstrahlung_h 1
|
||||
@@ -25,14 +27,14 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4MuEnergyLoss.hh"
|
||||
#include "G4VMuEnergyLoss.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4OrderedTable.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
|
||||
class G4MuBremsstrahlung : public G4MuEnergyLoss
|
||||
class G4MuBremsstrahlung : public G4VMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
@@ -43,8 +45,6 @@ class G4MuBremsstrahlung : public G4MuEnergyLoss
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
|
||||
void SetPhysicsTableBining(G4double lowE, G4double highE, G4int nBins);
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition& ParticleType);
|
||||
|
||||
void BuildLossTable(const G4ParticleDefinition& ParticleType);
|
||||
@@ -60,6 +60,13 @@ class G4MuBremsstrahlung : public G4MuEnergyLoss
|
||||
G4VParticleChange *PostStepDoIt(const G4Track& track,
|
||||
const G4Step& Step ) ;
|
||||
|
||||
G4double GetDMicroscopicCrossSection(
|
||||
const G4ParticleDefinition* ParticleType,
|
||||
G4double KineticEnergy,
|
||||
G4double AtomicNumber,
|
||||
G4double AtomicMass,
|
||||
G4double GammaEnergy);
|
||||
|
||||
protected:
|
||||
|
||||
G4double ComputeMeanFreePath( const G4ParticleDefinition* ParticleType,
|
||||
@@ -103,9 +110,11 @@ class G4MuBremsstrahlung : public G4MuEnergyLoss
|
||||
|
||||
G4OrderedTable PartialSumSigma;
|
||||
|
||||
G4double LowestKineticEnergy;
|
||||
G4double HighestKineticEnergy;
|
||||
G4int TotBin;
|
||||
static G4double LowerBoundLambda ; // bining for lambda table
|
||||
static G4double UpperBoundLambda ;
|
||||
static G4int NbinLambda ;
|
||||
G4double LowestKineticEnergy,HighestKineticEnergy ;
|
||||
G4int TotBin ;
|
||||
|
||||
const G4double* GammaCutInKineticEnergy;
|
||||
|
||||
@@ -114,8 +123,17 @@ class G4MuBremsstrahlung : public G4MuEnergyLoss
|
||||
// tables for sampling ..............
|
||||
static G4int nzdat,ntdat,NBIN ;
|
||||
static G4double zdat[5],adat[5],tdat[8] ;
|
||||
static G4double ya[1000],proba[5][8][1000] ;
|
||||
static G4double ya[1001],proba[5][8][1001] ;
|
||||
static G4double CutFixed ;
|
||||
|
||||
public:
|
||||
|
||||
static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;};
|
||||
static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;};
|
||||
static void SetNbinLambda(G4int n) {NbinLambda = n;};
|
||||
static G4double GetLowerBoundLambda() { return LowerBoundLambda;};
|
||||
static G4double GetUpperBoundLambda() { return UpperBoundLambda;};
|
||||
static G4int GetNbinLambda() {return NbinLambda;};
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung.icc,v 1.2.8.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4MuBremsstrahlung.icc,v 1.3 1999/12/15 14:51:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
// GEANT 4 class inlined methods file
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuIonisation.hh,v 1.3.8.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id: G4MuIonisation.hh,v 1.8 2000/04/25 14:18:58 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
@@ -24,6 +23,7 @@
|
||||
// It calculates the ionisation for muons.
|
||||
// ************************************************************
|
||||
//
|
||||
// 10/02/00 modifications , new e.m. structure, L.Urban
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#ifndef G4MuIonisation_h
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4MuEnergyLoss.hh"
|
||||
#include "G4VMuEnergyLoss.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "G4PhysicsLinearVector.hh"
|
||||
|
||||
|
||||
class G4MuIonisation : public G4MuEnergyLoss
|
||||
class G4MuIonisation : public G4VMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
@@ -49,8 +49,6 @@ class G4MuIonisation : public G4MuEnergyLoss
|
||||
|
||||
~G4MuIonisation();
|
||||
|
||||
void SetPhysicsTableBining(G4double lowE, G4double highE, G4int nBins);
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
|
||||
@@ -93,13 +91,25 @@ class G4MuIonisation : public G4MuEnergyLoss
|
||||
|
||||
G4PhysicsTable* theMeanFreePathTable;
|
||||
|
||||
G4double LowestKineticEnergy;
|
||||
G4double HighestKineticEnergy;
|
||||
G4int TotBin;
|
||||
static G4double LowerBoundLambda ; // bining for lambda table
|
||||
static G4double UpperBoundLambda ;
|
||||
static G4int NbinLambda ;
|
||||
G4double LowestKineticEnergy,HighestKineticEnergy ;
|
||||
G4int TotBin ;
|
||||
|
||||
const G4double* DeltaCutInKineticEnergy ;
|
||||
|
||||
G4double DeltaCutInKineticEnergyNow ;
|
||||
|
||||
public:
|
||||
|
||||
static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;};
|
||||
static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;};
|
||||
static void SetNbinLambda(G4int n) {NbinLambda = n;};
|
||||
static G4double GetLowerBoundLambda() { return LowerBoundLambda;};
|
||||
static G4double GetUpperBoundLambda() { return UpperBoundLambda;};
|
||||
static G4int GetNbinLambda() {return NbinLambda;};
|
||||
|
||||
};
|
||||
|
||||
#include "G4MuIonisation.icc"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuIonisation.icc,v 1.1.10.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4MuIonisation.icc,v 1.2 1999/12/15 14:51:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuPairProduction.hh,v 1.2.8.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4MuPairProduction.hh,v 1.8 2000/05/23 16:03:25 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -19,6 +18,8 @@
|
||||
// -------- G4MuPairProduction physics process ---------
|
||||
// by Laszlo Urban, May 1998
|
||||
// ************************************************************
|
||||
// 10/02/00 modifications , new e.m. structure, L.Urban
|
||||
//
|
||||
|
||||
#ifndef G4MuPairproduction_h
|
||||
#define G4MuPairproduction_h 1
|
||||
@@ -26,14 +27,14 @@
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4MuEnergyLoss.hh"
|
||||
#include "G4VMuEnergyLoss.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4OrderedTable.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
|
||||
class G4MuPairProduction : public G4MuEnergyLoss
|
||||
class G4MuPairProduction : public G4VMuEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
@@ -44,8 +45,6 @@ class G4MuPairProduction : public G4MuEnergyLoss
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
|
||||
void SetPhysicsTableBining(G4double lowE,G4double highE,G4int nBins);
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition& ParticleType);
|
||||
|
||||
void BuildLossTable(const G4ParticleDefinition& ParticleType);
|
||||
@@ -61,6 +60,12 @@ class G4MuPairProduction : public G4MuEnergyLoss
|
||||
G4VParticleChange *PostStepDoIt(const G4Track& track,
|
||||
const G4Step& Step ) ;
|
||||
|
||||
G4double GetDMicroscopicCrossSection(
|
||||
const G4ParticleDefinition* ParticleType,
|
||||
G4double KineticEnergy,
|
||||
G4double AtomicNumber,
|
||||
G4double PairEnergy);
|
||||
|
||||
protected:
|
||||
|
||||
G4double ComputeMeanFreePath(const G4ParticleDefinition* ParticleType,
|
||||
@@ -110,9 +115,11 @@ class G4MuPairProduction : public G4MuEnergyLoss
|
||||
|
||||
G4OrderedTable PartialSumSigma;
|
||||
|
||||
G4double LowestKineticEnergy;
|
||||
G4double HighestKineticEnergy;
|
||||
G4int TotBin;
|
||||
static G4double LowerBoundLambda ; // bining for lambda table
|
||||
static G4double UpperBoundLambda ;
|
||||
static G4int NbinLambda ;
|
||||
G4double LowestKineticEnergy,HighestKineticEnergy ;
|
||||
G4int TotBin ;
|
||||
|
||||
const G4double* ElectronCutInKineticEnergy;
|
||||
const G4double* PositronCutInKineticEnergy;
|
||||
@@ -123,7 +130,17 @@ class G4MuPairProduction : public G4MuEnergyLoss
|
||||
// tables for sampling ..............
|
||||
static G4int nzdat,ntdat,NBIN ;
|
||||
static G4double zdat[5],tdat[8] ;
|
||||
static G4double ya[1000],proba[5][8][1000] ;
|
||||
static G4double ya[1001],proba[5][8][1001] ;
|
||||
static G4double MinPairEnergy ;
|
||||
|
||||
public:
|
||||
|
||||
static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;};
|
||||
static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;};
|
||||
static void SetNbinLambda(G4int n) {NbinLambda = n;};
|
||||
static G4double GetLowerBoundLambda() { return LowerBoundLambda;};
|
||||
static G4double GetUpperBoundLambda() { return UpperBoundLambda;};
|
||||
static G4int GetNbinLambda() {return NbinLambda;};
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuPairProduction.icc,v 1.1.10.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4MuPairProduction.icc,v 1.3 2000/02/10 08:29:13 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// ---------------------------------------------------------------
|
||||
// GEANT 4 class inlined methods file
|
||||
//
|
||||
|
||||
+12
-12
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuEnergyLoss.hh,v 1.2.8.1.2.2 1999/12/14 07:08:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VIMuEnergyLoss.hh,v 1.2 2000/06/07 16:50:21 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// -------------------------------------------------------------------
|
||||
@@ -16,7 +16,7 @@
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// ---------- G4IMuEnergyLoss physics process -----------
|
||||
// ---------- G4VIMuEnergyLoss physics process -----------
|
||||
// by Laszlo Urban, September 1997
|
||||
// ********************************************************************
|
||||
// It is the implementation of the NEW UNIFIED ENERGY LOSS PROCESS.
|
||||
@@ -32,8 +32,8 @@
|
||||
// some corrections by L.Urban on 27/05/98 , (but other corrections come soon!)
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#ifndef G4IMuEnergyLoss_h
|
||||
#define G4IMuEnergyLoss_h 1
|
||||
#ifndef G4VIMuEnergyLoss_h
|
||||
#define G4VIMuEnergyLoss_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/fstream"
|
||||
@@ -56,21 +56,21 @@
|
||||
#include "G4PhysicsLinearVector.hh"
|
||||
|
||||
|
||||
class G4IMuEnergyLoss : public G4IVContinuousDiscreteProcess
|
||||
class G4VIMuEnergyLoss : public G4IVContinuousDiscreteProcess
|
||||
|
||||
{
|
||||
public:
|
||||
G4IMuEnergyLoss(const G4String& );
|
||||
G4IMuEnergyLoss(G4IMuEnergyLoss &);
|
||||
G4VIMuEnergyLoss(const G4String& );
|
||||
G4VIMuEnergyLoss(G4VIMuEnergyLoss &);
|
||||
|
||||
~G4IMuEnergyLoss();
|
||||
virtual ~G4VIMuEnergyLoss();
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4IMuEnergyLoss & operator=(const G4IMuEnergyLoss &right);
|
||||
G4VIMuEnergyLoss & operator=(const G4VIMuEnergyLoss &right);
|
||||
|
||||
public:
|
||||
|
||||
@@ -141,7 +141,7 @@ class G4IMuEnergyLoss : public G4IVContinuousDiscreteProcess
|
||||
static G4double CutInmupluslossTable;
|
||||
static G4double CutInmuminuslossTable;
|
||||
|
||||
// processes inherited from G4IMuEnergyLoss
|
||||
// processes inherited from G4VIMuEnergyLoss
|
||||
// register themselves in the static array Recorder
|
||||
// nb of contributing processes = NUMBEROFPROCESSES
|
||||
static G4int NUMBEROFPROCESSES ;
|
||||
@@ -271,6 +271,6 @@ class G4IMuEnergyLoss : public G4IVContinuousDiscreteProcess
|
||||
|
||||
};
|
||||
|
||||
#include "G4IMuEnergyLoss.icc"
|
||||
#include "G4VIMuEnergyLoss.icc"
|
||||
|
||||
#endif
|
||||
+6
-6
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4IMuEnergyLoss.icc,v 1.1.10.1 1999/12/07 20:50:40 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VIMuEnergyLoss.icc,v 1.1 2000/04/25 14:18:59 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// $Id:
|
||||
// ---------------------------------------------------------------
|
||||
@@ -16,7 +16,7 @@
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// ------------ G4IMuEnergyLoss physics process ------------
|
||||
// ------------ G4VIMuEnergyLoss physics process ------------
|
||||
// by Laszlo Urban, September 1997
|
||||
// ***************************************************************
|
||||
// It is the implementation of the NEW UNIFIED ENERGY LOSS PROCESS.
|
||||
@@ -26,7 +26,7 @@
|
||||
// corrections by L. Urban on 27/05/98 ( other corrs come soon!)
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
inline G4double G4IMuEnergyLoss::GetConstraints(const G4DynamicParticle *aParticle,
|
||||
inline G4double G4VIMuEnergyLoss::GetConstraints(const G4DynamicParticle *aParticle,
|
||||
G4Material *aMaterial)
|
||||
{
|
||||
|
||||
@@ -121,7 +121,7 @@ inline G4double G4IMuEnergyLoss::GetConstraints(const G4DynamicParticle *aPartic
|
||||
}
|
||||
|
||||
|
||||
inline G4double G4IMuEnergyLoss::GetContinuousStepLimit(
|
||||
inline G4double G4VIMuEnergyLoss::GetContinuousStepLimit(
|
||||
const G4Track& track,
|
||||
G4double,
|
||||
G4double currentMinimumStep,
|
||||
@@ -137,7 +137,7 @@ inline G4double G4IMuEnergyLoss::GetContinuousStepLimit(
|
||||
return Step ;
|
||||
}
|
||||
|
||||
inline G4bool G4IMuEnergyLoss::IsApplicable(const G4ParticleDefinition&
|
||||
inline G4bool G4VIMuEnergyLoss::IsApplicable(const G4ParticleDefinition&
|
||||
particle)
|
||||
{
|
||||
return ( (&particle == (const G4ParticleDefinition *)theMuonPlus)
|
||||
+47
-104
@@ -5,10 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuEnergyLoss.hh,v 1.3.8.1.2.2 1999/12/14 07:08:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id:
|
||||
// $Id: G4VMuEnergyLoss.hh,v 1.2 2000/06/07 16:50:21 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -16,7 +14,7 @@
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// ---------- G4MuEnergyLoss physics process -----------
|
||||
// ---------- G4VMuEnergyLoss physics process -----------
|
||||
// by Laszlo Urban, September 1997
|
||||
// ********************************************************************
|
||||
// It is the implementation of the NEW UNIFIED ENERGY LOSS PROCESS.
|
||||
@@ -31,17 +29,18 @@
|
||||
// ************************************************************
|
||||
// some corrections by L.Urban on 27/05/98 , (but other corrections come soon!)
|
||||
// cleanup L.Urban on 23/10/98
|
||||
// corrections due to new e.m. structure L.Urban 10/02/00
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#ifndef G4MuEnergyLoss_h
|
||||
#define G4MuEnergyLoss_h 1
|
||||
#ifndef G4VMuEnergyLoss_h
|
||||
#define G4VMuEnergyLoss_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/fstream"
|
||||
#include "g4std/iomanip"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4VContinuousDiscreteProcess.hh"
|
||||
#include "G4VEnergyLoss.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4Element.hh"
|
||||
#include "G4VParticleChange.hh"
|
||||
@@ -58,13 +57,14 @@
|
||||
|
||||
class G4EnergyLossMessenger ;
|
||||
|
||||
class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
class G4VMuEnergyLoss : public G4VEnergyLoss
|
||||
|
||||
{
|
||||
public:
|
||||
|
||||
G4MuEnergyLoss(const G4String& );
|
||||
~G4MuEnergyLoss();
|
||||
G4VMuEnergyLoss(const G4String& );
|
||||
|
||||
virtual ~G4VMuEnergyLoss();
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
|
||||
@@ -93,47 +93,12 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4MuEnergyLoss(G4MuEnergyLoss &);
|
||||
G4MuEnergyLoss & operator=(const G4MuEnergyLoss &right);
|
||||
|
||||
void BuildRangeTable(const G4ParticleDefinition& aParticleType);
|
||||
|
||||
void BuildInverseRangeTable(
|
||||
const G4ParticleDefinition& aParticleType);
|
||||
|
||||
void BuildTimeTables(const G4ParticleDefinition& aParticleType);
|
||||
|
||||
void BuildLabTimeVector(G4int materialIndex,
|
||||
G4PhysicsLogVector* rangeVector);
|
||||
|
||||
void BuildProperTimeVector(G4int materialIndex,
|
||||
G4PhysicsLogVector* rangeVector);
|
||||
|
||||
void InvertRangeVector(G4int materialIndex,
|
||||
G4PhysicsLogVector* rangeVector);
|
||||
|
||||
|
||||
void BuildRangeVector(G4int materialIndex,
|
||||
G4PhysicsLogVector* rangeVector);
|
||||
|
||||
G4double LabTimeIntLog(G4PhysicsVector* physicsVector,G4int nbin);
|
||||
|
||||
G4double ProperTimeIntLog(G4PhysicsVector* physicsVector,G4int nbin);
|
||||
|
||||
G4double RangeIntLin(G4PhysicsVector* physicsVector,G4int nbin);
|
||||
|
||||
G4double RangeIntLog(G4PhysicsVector* physicsVector,G4int nbin);
|
||||
|
||||
void BuildRangeCoeffATable(const G4ParticleDefinition& aParticleType);
|
||||
void BuildRangeCoeffBTable(const G4ParticleDefinition& aParticleType);
|
||||
void BuildRangeCoeffCTable(const G4ParticleDefinition& aParticleType);
|
||||
G4VMuEnergyLoss(G4VMuEnergyLoss &);
|
||||
G4VMuEnergyLoss & operator=(const G4VMuEnergyLoss &right);
|
||||
|
||||
G4double GetConstraints(const G4DynamicParticle *aParticle,
|
||||
G4Material *aMaterial);
|
||||
|
||||
G4double GetLossWithFluct(const G4DynamicParticle *aParticle,
|
||||
G4Material *aMaterial,G4double MeanLoss) ;
|
||||
|
||||
// =====================================================================
|
||||
public:
|
||||
|
||||
@@ -149,37 +114,17 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
const G4MuonPlus* theMuonPlus;
|
||||
const G4MuonMinus* theMuonMinus;
|
||||
|
||||
// particle mass
|
||||
G4double ParticleMass;
|
||||
|
||||
// LowestKineticEnergy = lower limit of particle kinetic energy
|
||||
// HighestKineticEnergy = upper limit of particle kinetic energy
|
||||
// TotBin = number of bins
|
||||
// ---------in the energy loss/range tables-------------------
|
||||
G4double LowestKineticEnergy;
|
||||
G4double HighestKineticEnergy;
|
||||
G4int TotBin;// number of bins in table, calculated in BuildPhysicsTable
|
||||
// from LowestKineticEnergy,HighestKineticEnergy and
|
||||
// dToverTini
|
||||
G4double RTable,LOGRTable; // LOGRTable=log(HighestKineticEnergy
|
||||
// /LowestKineticEnergy)/TotBin
|
||||
// RTable = exp(LOGRTable)
|
||||
private:
|
||||
|
||||
G4PhysicsTable* theDEDXTable;
|
||||
|
||||
G4PhysicsTable* theRangeTable;
|
||||
G4PhysicsTable* theInverseRangeTable;
|
||||
|
||||
G4PhysicsTable* theLabTimeTable;
|
||||
G4PhysicsTable* theProperTimeTable;
|
||||
G4PhysicsTable* theDEDXTable ;
|
||||
G4PhysicsTable* theRangeTable ;
|
||||
G4PhysicsTable* theRangeCoeffATable ;
|
||||
G4PhysicsTable* theRangeCoeffBTable ;
|
||||
G4PhysicsTable* theRangeCoeffCTable ;
|
||||
|
||||
G4PhysicsTable** RecorderOfProcess;
|
||||
G4int CounterOfProcess;
|
||||
|
||||
G4PhysicsTable* theRangeCoeffATable;
|
||||
G4PhysicsTable* theRangeCoeffBTable;
|
||||
G4PhysicsTable* theRangeCoeffCTable;
|
||||
|
||||
// fdEdx=(-dE/dx)
|
||||
// computed in GetConstraints at every call;
|
||||
@@ -194,30 +139,29 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
G4double RangeCoeffA,RangeCoeffB,RangeCoeffC ;
|
||||
|
||||
|
||||
// variables for the integration routines
|
||||
G4double taulow,tauhigh,ltaulow,ltauhigh;
|
||||
|
||||
// data members to speed up the fluctuation calculation
|
||||
G4int imat ;
|
||||
G4Material *lastMaterial ;
|
||||
G4double f1Fluct,f2Fluct,e1Fluct,e2Fluct,rateFluct,ipotFluct;
|
||||
G4double e1LogFluct,e2LogFluct,ipotLogFluct;
|
||||
const G4double MaxExcitationNumber ;
|
||||
const G4double probLimFluct ;
|
||||
const long nmaxDirectFluct,nmaxCont1,nmaxCont2 ;
|
||||
|
||||
// static part of the class
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
static G4int GetNbOfProcesses() { return NbOfProcesses; };
|
||||
static void SetNbOfProcesses(G4int number){ NbOfProcesses=number ; };
|
||||
static void PlusNbOfProcesses() { NbOfProcesses++ ; };
|
||||
static void MinusNbOfProcesses() { NbOfProcesses-- ; };
|
||||
static void SetNbOfProcesses(G4int nb) {NbOfProcesses=nb;};
|
||||
// Sets number of processes giving contribution to the energy loss
|
||||
|
||||
static void SetRndmStep (G4bool value) {rndmStepFlag = value;}
|
||||
static void SetEnlossFluc (G4bool value) {EnlossFlucFlag = value;}
|
||||
static void SetStepFunction (G4double c1, G4double c2)
|
||||
{dRoverRange = c1; finalRange = c2;}
|
||||
static void PlusNbOfProcesses() {NbOfProcesses++ ;};
|
||||
// Increases number of processes giving contribution to the energy loss
|
||||
|
||||
static void MinusNbOfProcesses() {NbOfProcesses-- ;};
|
||||
// Decreases number of processes giving contribution to the energy loss
|
||||
|
||||
static G4int GetNbOfProcesses() {return NbOfProcesses;};
|
||||
// Gets number of processes giving contribution to the energy loss
|
||||
// ( default value = 3)
|
||||
|
||||
static void SetLowerBoundEloss(G4double val) {LowerBoundEloss=val;};
|
||||
static void SetUpperBoundEloss(G4double val) {UpperBoundEloss=val;};
|
||||
static void SetNbinEloss(G4int nb) {NbinEloss=nb;};
|
||||
|
||||
static G4double GetLowerBoundEloss() {return LowerBoundEloss;};
|
||||
static G4double GetUpperBoundEloss() {return UpperBoundEloss;};
|
||||
static G4int GetNbinEloss() {return NbinEloss;};
|
||||
|
||||
protected:
|
||||
|
||||
@@ -238,8 +182,7 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
|
||||
// processes inherited from G4muEnergyLoss
|
||||
// register themselves in the static array Recorder
|
||||
// nb of contributing processes = NbOfProcesses
|
||||
static G4int NbOfProcesses ;
|
||||
static G4int NbOfProcesses ;
|
||||
static G4PhysicsTable** RecorderOfmuplusProcess;
|
||||
static G4PhysicsTable** RecorderOfmuminusProcess;
|
||||
static G4int CounterOfmuplusProcess ;
|
||||
@@ -247,6 +190,13 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
|
||||
private:
|
||||
|
||||
static G4int NbinEloss; // number of bins in table
|
||||
static G4double LowerBoundEloss;
|
||||
static G4double UpperBoundEloss;
|
||||
static G4double RTable,LOGRTable; // LOGRTable=log(UpperBoundEloss-
|
||||
// LowerBoundEloss)/NbinEloss
|
||||
// RTable = exp(LOGRTable)
|
||||
|
||||
static G4PhysicsTable* themuplusRangeCoeffATable;
|
||||
static G4PhysicsTable* themuplusRangeCoeffBTable;
|
||||
static G4PhysicsTable* themuplusRangeCoeffCTable;
|
||||
@@ -254,17 +204,10 @@ class G4MuEnergyLoss : public G4VContinuousDiscreteProcess
|
||||
static G4PhysicsTable* themuminusRangeCoeffBTable;
|
||||
static G4PhysicsTable* themuminusRangeCoeffCTable;
|
||||
|
||||
static G4double dRoverRange; // dRoverRange is the maximum allowed
|
||||
// deltarange/range in one Step
|
||||
static G4double finalRange; // final step before stopping
|
||||
|
||||
static G4bool rndmStepFlag; // control the randomization of the step
|
||||
static G4bool EnlossFlucFlag; // control the energy loss fluctuation
|
||||
|
||||
static G4EnergyLossMessenger* eLossMessenger;
|
||||
|
||||
};
|
||||
|
||||
#include "G4MuEnergyLoss.icc"
|
||||
#include "G4VMuEnergyLoss.icc"
|
||||
|
||||
#endif
|
||||
+6
-8
@@ -5,10 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4MuEnergyLoss.icc,v 1.1.10.1 1999/12/07 20:50:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id:
|
||||
// $Id: G4VMuEnergyLoss.icc,v 1.1 2000/04/25 14:18:59 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// ---------------------------------------------------------------
|
||||
// GEANT 4 class inlined methods file
|
||||
//
|
||||
@@ -16,18 +14,18 @@
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// ------------ G4MuEnergyLoss physics process ------------
|
||||
// ------------ G4VMuEnergyLoss physics process ------------
|
||||
// by Laszlo Urban, September 1997
|
||||
// ***************************************************************
|
||||
// It is the implementation of the NEW UNIFIED ENERGY LOSS PROCESS.
|
||||
// It calculates the energy loss of muons.
|
||||
// ***************************************************************
|
||||
// correction for KineticEnergy< LowestKineticEnergy by L.Urban on 27/11/97
|
||||
// correction for KineticEnergy< LowerBoundEloss by L.Urban on 27/11/97
|
||||
// corrections by L. Urban on 27/05/98 ( other corrs come soon!)
|
||||
// cleanup L.Urban on 23/10/98
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
inline G4double G4MuEnergyLoss::GetContinuousStepLimit(
|
||||
inline G4double G4VMuEnergyLoss::GetContinuousStepLimit(
|
||||
const G4Track& track,
|
||||
G4double,
|
||||
G4double currentMinimumStep,
|
||||
@@ -43,7 +41,7 @@ inline G4double G4MuEnergyLoss::GetContinuousStepLimit(
|
||||
return Step ;
|
||||
}
|
||||
|
||||
inline G4bool G4MuEnergyLoss::IsApplicable(const G4ParticleDefinition&
|
||||
inline G4bool G4VMuEnergyLoss::IsApplicable(const G4ParticleDefinition&
|
||||
particle)
|
||||
{
|
||||
return ( (&particle == (const G4ParticleDefinition *)theMuonPlus)
|
||||
Reference in New Issue
Block a user