Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Cerenkov.hh,v 1.5 2001/07/11 10:03:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4Cerenkov.hh,v 1.7 2005/07/28 23:57:07 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -34,7 +34,8 @@
|
||||
// Version: 2.0
|
||||
// Created: 1996-02-21
|
||||
// Author: Juliet Armstrong
|
||||
// Updated: 1999-10-29 add method and class descriptors
|
||||
// Updated: 2005-07-28 add G4ProcessType to constructor
|
||||
// 1999-10-29 add method and class descriptors
|
||||
// 1997-04-09 by Peter Gumplinger
|
||||
// > G4MaterialPropertiesTable; new physics/tracking scheme
|
||||
// mail: gum@triumf.ca
|
||||
@@ -88,7 +89,8 @@ public: // Without description
|
||||
// Constructors and Destructor
|
||||
////////////////////////////////
|
||||
|
||||
G4Cerenkov(const G4String& processName = "Cerenkov");
|
||||
G4Cerenkov(const G4String& processName = "Cerenkov",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
// G4Cerenkov(const G4Cerenkov &right);
|
||||
|
||||
@@ -169,7 +171,11 @@ private:
|
||||
inline
|
||||
G4bool G4Cerenkov::IsApplicable(const G4ParticleDefinition& aParticleType)
|
||||
{
|
||||
return (aParticleType.GetPDGCharge() != 0);
|
||||
if (aParticleType.GetParticleName() != "chargedgeantino" ) {
|
||||
return (aParticleType.GetPDGCharge() != 0);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ForwardXrayTR.hh,v 1.13 2004/08/11 14:41:31 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4ForwardXrayTR -- header file
|
||||
//
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4GammaXTRadiator.hh,v 1.3 2005/04/05 08:27:21 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4RegularXTRadiator.hh,v 1.2 2002/01/18 17:26:20 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Scintillation.hh,v 1.11 2002/11/25 18:48:51 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4Scintillation.hh,v 1.12 2005/07/28 23:56:53 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -34,7 +34,8 @@
|
||||
// Version: 1.0
|
||||
// Created: 1998-11-07
|
||||
// Author: Peter Gumplinger
|
||||
// Updated: 2002-11-21 change to user G4Poisson for small MeanNumPotons
|
||||
// Updated: 2005-07-28 add G4ProcessType to constructor
|
||||
// 2002-11-21 change to user G4Poisson for small MeanNumPotons
|
||||
// 2002-11-07 allow for fast and slow scintillation
|
||||
// 2002-11-05 make use of constant material properties
|
||||
// 2002-05-16 changed to inherit from VRestDiscreteProcess
|
||||
@@ -93,7 +94,8 @@ public: // Without description
|
||||
// Constructors and Destructor
|
||||
////////////////////////////////
|
||||
|
||||
G4Scintillation(const G4String& processName = "Scintillation");
|
||||
G4Scintillation(const G4String& processName = "Scintillation",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
// G4Scintillation(const G4Scintillation &right);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4StrawTubeXTRadiator.hh,v 1.1 2005/04/22 09:44:18 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TransitionRadiation.hh,v 1.7 2003/06/03 08:11:01 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4TransitionRadiation.hh,v 1.8 2005/07/28 23:56:30 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4TransitionRadiation -- header file
|
||||
//
|
||||
@@ -43,6 +43,7 @@
|
||||
// 02.02.00, V.Grichine, new data fEnergy and fVarAngle for double
|
||||
// numerical integration in inherited classes
|
||||
// 03.06.03, V.Ivanchenko fix compilation warnings
|
||||
// 28.07.05, P.Gumplinger add G4ProcessType to constructor
|
||||
|
||||
#ifndef G4TransitionRadiation_h
|
||||
#define G4TransitionRadiation_h
|
||||
@@ -59,7 +60,8 @@ public:
|
||||
// Constructors
|
||||
|
||||
|
||||
G4TransitionRadiation( const G4String& processName = "TR") ;
|
||||
G4TransitionRadiation( const G4String& processName = "TR",
|
||||
G4ProcessType type = fElectromagnetic) ;
|
||||
|
||||
|
||||
// G4TransitionRadiation(const G4TransitionRadiation& right) ;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4TransparentRegXTRadiator.hh,v 1.1 2005/04/05 08:28:04 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VTRModel.hh,v 1.1 2004/03/01 11:49:49 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4VTRModel -- header file
|
||||
//
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VTransitionRadiation.hh,v 1.1 2004/03/01 11:49:49 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4VTransitionRadiation.hh,v 1.2 2005/07/28 23:56:07 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4VTransitionRadiation -- header file
|
||||
//
|
||||
@@ -30,6 +30,7 @@
|
||||
//
|
||||
// History:
|
||||
// 29.02.04, V.Ivanchenko created
|
||||
// 28.07.05, P.Gumplinger add G4ProcessType to constructor
|
||||
|
||||
#ifndef G4VTransitionRadiation_h
|
||||
#define G4VTransitionRadiation_h
|
||||
@@ -51,7 +52,8 @@ class G4VTransitionRadiation : public G4VDiscreteProcess
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
G4VTransitionRadiation( const G4String& processName = "TR");
|
||||
G4VTransitionRadiation( const G4String& processName = "TR",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VXTRenergyLoss.hh,v 1.8 2005/04/05 08:27:21 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4VXTRenergyLoss.hh,v 1.12 2005/10/07 16:19:14 grichine Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@@ -32,12 +32,14 @@
|
||||
// method
|
||||
//
|
||||
// History:
|
||||
// 15.01.02 V. Grichine first version
|
||||
// 06.10.05 V. Grichine first step to discrete process
|
||||
// 15.01.02 V. Grichine first version
|
||||
// 28.07.05, P.Gumplinger add G4ProcessType to constructor
|
||||
//
|
||||
|
||||
|
||||
#ifndef G4VXTRenergyLoss_h
|
||||
#define G4VXTRenergyLoss_h 1
|
||||
#ifndef G4XTRenergyLoss_h
|
||||
#define G4XTRenergyLoss_h 1
|
||||
|
||||
|
||||
#include <complex>
|
||||
@@ -54,27 +56,34 @@
|
||||
#include "G4Step.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4VContinuousProcess.hh"
|
||||
#include "G4VDiscreteProcess.hh"
|
||||
#include "G4DynamicParticle.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4MaterialPropertiesTable.hh"
|
||||
#include "G4PhysicsOrderedFreeVector.hh"
|
||||
#include "G4Integrator.hh"
|
||||
#include "G4ParticleChange.hh"
|
||||
|
||||
|
||||
class G4VXTRenergyLoss : public G4VContinuousProcess
|
||||
|
||||
class G4VParticleChange;
|
||||
|
||||
|
||||
class G4XTRenergyLoss : public G4VDiscreteProcess // G4VContinuousProcess
|
||||
{
|
||||
public:
|
||||
|
||||
G4VXTRenergyLoss (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
|
||||
G4XTRenergyLoss (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
|
||||
G4double,G4double,G4int,
|
||||
const G4String & processName = "XTRenergyLoss");
|
||||
virtual ~G4VXTRenergyLoss ();
|
||||
const G4String & processName = "XTRenergyLoss",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
virtual ~G4XTRenergyLoss ();
|
||||
|
||||
// Pure virtuals must be implemented in inherited particular TR radiators
|
||||
// These virtual has to be implemented in inherited particular TR radiators
|
||||
|
||||
virtual G4double GetStackFactor( G4double energy, G4double gamma,
|
||||
G4double varAngle ) = 0 ;
|
||||
G4double varAngle );
|
||||
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
@@ -87,6 +96,13 @@ public:
|
||||
|
||||
G4VParticleChange* AlongStepDoIt(const G4Track& aTrack,
|
||||
const G4Step& aStep);
|
||||
|
||||
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
|
||||
const G4Step& aStep);
|
||||
|
||||
G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
|
||||
void BuildTable() ;
|
||||
void BuildEnergyTable() ;
|
||||
@@ -168,25 +184,28 @@ protected:
|
||||
static G4PhysicsLogVector* fProtonEnergyVector ;
|
||||
|
||||
|
||||
static G4double fTheMinEnergyTR ; // static min TR energy
|
||||
static G4double fTheMaxEnergyTR ; // static max TR energy
|
||||
G4double fMinEnergyTR ; // min TR energy in material
|
||||
G4double fMaxEnergyTR ; // max TR energy in material
|
||||
static G4double fTheMaxAngle ; // max theta of TR quanta
|
||||
static G4double fTheMinAngle ; // max theta of TR quanta
|
||||
G4double fMaxThetaTR ; // max theta of TR quanta
|
||||
static G4int fBinTR ; // number of bins in TR vectors
|
||||
static G4double fTheMinEnergyTR; // static min TR energy
|
||||
static G4double fTheMaxEnergyTR; // static max TR energy
|
||||
G4double fMinEnergyTR; // min TR energy in material
|
||||
G4double fMaxEnergyTR; // max TR energy in material
|
||||
static G4double fTheMaxAngle; // max theta of TR quanta
|
||||
static G4double fTheMinAngle; // max theta of TR quanta
|
||||
G4double fMaxThetaTR; // max theta of TR quanta
|
||||
static G4int fBinTR; // number of bins in TR vectors
|
||||
|
||||
static G4double fMinProtonTkin ; // min Tkin of proton in tables
|
||||
static G4double fMaxProtonTkin ; // max Tkin of proton in tables
|
||||
static G4int fTotBin ; // number of bins in log scale
|
||||
G4double fGamma ; // current Lorentz factor
|
||||
G4double fEnergy ; // energy and
|
||||
G4double fVarAngle ; // angle squared
|
||||
static G4double fMinProtonTkin; // min Tkin of proton in tables
|
||||
static G4double fMaxProtonTkin; // max Tkin of proton in tables
|
||||
static G4int fTotBin; // number of bins in log scale
|
||||
G4double fGamma; // current Lorentz factor
|
||||
G4double fEnergy; // energy and
|
||||
G4double fVarAngle; // angle squared
|
||||
G4double fLambda;
|
||||
|
||||
static G4double fPlasmaCof ; // physical consts for plasma energy
|
||||
static G4double fCofTR ;
|
||||
static G4double fCofTR ;
|
||||
|
||||
|
||||
G4bool fExitFlux;
|
||||
G4double fSigma1, fSigma2 ; // plasma energy Sq of matter1/2
|
||||
|
||||
G4int fMatIndex1, fMatIndex2 ;
|
||||
@@ -201,6 +220,10 @@ protected:
|
||||
G4int fGasIntervalNumber ;
|
||||
G4double fGasThick ;
|
||||
G4double fAlphaPlate, fAlphaGas ;
|
||||
|
||||
G4ParticleChange fParticleChange;
|
||||
};
|
||||
|
||||
typedef G4XTRenergyLoss G4VXTRenergyLoss;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Rough model describing a gamma function distributed radiator of X-ray
|
||||
// transition radiation. XTR is considered to flux after radiator!
|
||||
// Thicknesses of plates and gas gaps are distributed according to gamma
|
||||
// distribution. x are thicknesses of plates or gas gaps:
|
||||
//
|
||||
// p(x) = (alpha/<x>)^alpha * x^(alpha-1) * std::exp(-alpha*x/<x>) / G(alpha)
|
||||
//
|
||||
// G(alpha) is Euler's gamma function.
|
||||
// Plates have mean <x> = fPlateThick > 0 and power alpha = fAlphaPlate > 0 :
|
||||
// Gas gaps have mean <x> = fGasThick > 0 and power alpha = fAlphaGas > 0 :
|
||||
// We suppose that:
|
||||
// formation zone ~ mean thickness << absorption length
|
||||
// for each material and in the range 1-100 keV. This allows us to simplify
|
||||
// interference effects in radiator stack (GetStackFactor method).
|
||||
//
|
||||
//
|
||||
// History:
|
||||
//
|
||||
// 03.10.05 V. Grichine, first version
|
||||
//
|
||||
|
||||
|
||||
#ifndef G4XTRGammaRadModel_h
|
||||
#define G4XTRGammaRadModel_h 1
|
||||
|
||||
#include "G4VXTRenergyLoss.hh"
|
||||
|
||||
class G4XTRGammaRadModel : public G4XTRenergyLoss
|
||||
{
|
||||
public:
|
||||
|
||||
G4XTRGammaRadModel (G4LogicalVolume *anEnvelope,
|
||||
G4double,G4double,
|
||||
G4Material*,G4Material*,
|
||||
G4double,G4double,G4int,
|
||||
const G4String & processName = "XTRgammaRadiator" );
|
||||
~G4XTRGammaRadModel ();
|
||||
|
||||
// Pure virtual function from base class
|
||||
|
||||
G4double GetStackFactor( G4double energy, G4double gamma, G4double varAngle);
|
||||
|
||||
private:
|
||||
|
||||
// G4double fAlphaPlate, fAlphaGas ;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Model describing a regular radiator of X-ray transition radiation.
|
||||
// It is Garibian like model for XTR after radiator
|
||||
// Thicknesses of plates and gas gaps are fixed.
|
||||
// We suppose that:
|
||||
// formation zone ~ mean thickness << absorption length
|
||||
// for each material and in the range 1-100 keV. This allows us to simplify
|
||||
// interference effects in radiator stack (GetStackFactor method).
|
||||
//
|
||||
//
|
||||
// History:
|
||||
// 10.10.05 V. Grichine, first version
|
||||
//
|
||||
|
||||
|
||||
#ifndef G4XTRRegularRadModel_h
|
||||
#define G4XTRRegularRadModel_h 1
|
||||
|
||||
#include "G4VXTRenergyLoss.hh"
|
||||
|
||||
|
||||
class G4XTRRegularRadModel : public G4XTRenergyLoss
|
||||
{
|
||||
public:
|
||||
|
||||
G4XTRRegularRadModel (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
|
||||
G4double,G4double,G4int,
|
||||
const G4String & processName = "XTRegularModel");
|
||||
~G4XTRRegularRadModel ();
|
||||
|
||||
// Pure virtual function from base class
|
||||
|
||||
G4double GetStackFactor( G4double energy, G4double gamma, G4double varAngle);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Process describing a radiator of X-ray transition radiation.
|
||||
// Thicknesses of plates and gas gaps are fixed.
|
||||
// We suppose that:
|
||||
// formation zone ~ mean thickness << absorption length
|
||||
// for each material and in the range 1-100 keV. This allows us to simplify
|
||||
// interference effects in radiator stack (GetStackFactor method).
|
||||
//
|
||||
//
|
||||
// History:
|
||||
//
|
||||
// 05.04.05 V. Grichine, first version
|
||||
//
|
||||
|
||||
|
||||
#ifndef G4XTRTransparentRegRadModel_h
|
||||
#define G4XTRTransparentRegRadModel_h 1
|
||||
|
||||
#include "G4VXTRenergyLoss.hh"
|
||||
|
||||
class G4XTRTransparentRegRadModel : public G4VXTRenergyLoss
|
||||
{
|
||||
public:
|
||||
|
||||
G4XTRTransparentRegRadModel (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
|
||||
G4double,G4double,G4int,
|
||||
const G4String & processName = "XTRTransparentRegRadModel");
|
||||
~G4XTRTransparentRegRadModel ();
|
||||
|
||||
// reimplementation of base class function in analytical way
|
||||
|
||||
G4double SpectralXTRdEdx(G4double energy);
|
||||
|
||||
// Pure virtual function from base class
|
||||
|
||||
G4double GetStackFactor( G4double energy, G4double gamma, G4double varAngle);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user