Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -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: G4AnnihiToMuPair.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// ------------ G4AnnihiToMuPair physics process ------
|
||||
// by H.Burkhardt, S. Kelner and R. Kokoulin, November 2002
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// class description
|
||||
//
|
||||
// (high energy) e+ (atomic) e- ---> mu+ mu-
|
||||
// inherit from G4VDiscreteProcess
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......//
|
||||
//
|
||||
// 04.02.03 : cosmetic simplifications (mma)
|
||||
// 27.01.03 : first implementation (hbu)
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef G4AnnihiToMuPair_h
|
||||
#define G4AnnihiToMuPair_h 1
|
||||
|
||||
#include "G4VDiscreteProcess.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ParticleDefinition;
|
||||
class G4Track;
|
||||
class G4Step;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4AnnihiToMuPair : public G4VDiscreteProcess
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4AnnihiToMuPair(const G4String& processName ="AnnihiToMuPair",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
~G4AnnihiToMuPair();
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
// true for positron only.
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
// here dummy, just calling PrintInfoDefinition
|
||||
// the total cross section is calculated analytically
|
||||
|
||||
void PrintInfoDefinition();
|
||||
// Print few lines of informations about the process: validity range,
|
||||
// origine ..etc..
|
||||
// Invoked by BuildPhysicsTable().
|
||||
|
||||
void SetCrossSecFactor(G4double fac);
|
||||
// Set the factor to artificially increase the crossSection (default 1)
|
||||
|
||||
G4double GetCrossSecFactor() {return CrossSecFactor;};
|
||||
// Get the factor to artificially increase the cross section
|
||||
|
||||
virtual
|
||||
G4double ComputeCrossSectionPerAtom(G4double PositronEnergy,
|
||||
G4double AtomicZ);
|
||||
// Compute total cross section
|
||||
|
||||
G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* );
|
||||
// It returns the MeanFreePath of the process for the current track :
|
||||
// (energy, material)
|
||||
// The previousStepSize and G4ForceCondition* are not used.
|
||||
// This function overloads a virtual function of the base class.
|
||||
// It is invoked by the ProcessManager of the Particle.
|
||||
|
||||
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
|
||||
const G4Step& aStep);
|
||||
// It computes the final state of the process (at end of step),
|
||||
// returned as a ParticleChange object.
|
||||
// This function overloads a virtual function of the base class.
|
||||
// It is invoked by the ProcessManager of the Particle.
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator as private
|
||||
G4AnnihiToMuPair& operator=(const G4AnnihiToMuPair &right);
|
||||
G4AnnihiToMuPair(const G4AnnihiToMuPair& );
|
||||
|
||||
private:
|
||||
|
||||
G4double LowestEnergyLimit; // Energy threshold of e+
|
||||
G4double HighestEnergyLimit; // Limit of validity of the model
|
||||
|
||||
G4double CrossSecFactor; // factor to artificially increase
|
||||
// the cross section, static to make sure
|
||||
// to have single value
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4GammaConversionToMuons.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// ------------ G4GammaConversionToMuons physics process ------
|
||||
// by H.Burkhardt, S. Kelner and R. Kokoulin, April 2002
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
// 05-08-04: suppression of .icc file (mma)
|
||||
// 13-08-04, public ComputeCrossSectionPerAtom() and ComputeMeanFreePath() (mma)
|
||||
//
|
||||
// class description
|
||||
//
|
||||
// gamma ---> mu+ mu-
|
||||
// inherit from G4VDiscreteProcess
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef G4GammaConversionToMuons_h
|
||||
#define G4GammaConversionToMuons_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4VDiscreteProcess.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
#include "G4Element.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "G4Step.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4GammaConversionToMuons : public G4VDiscreteProcess
|
||||
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4GammaConversionToMuons(const G4String& processName ="GammaToMuPair",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
~G4GammaConversionToMuons();
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&);
|
||||
// true for Gamma only.
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
// here dummy, the total cross section parametrization is used rather
|
||||
// than tables, just calling PrintInfoDefinition
|
||||
|
||||
void PrintInfoDefinition();
|
||||
// Print few lines of informations about the process: validity range,
|
||||
// origine ..etc..
|
||||
// Invoked by BuildThePhysicsTable().
|
||||
|
||||
void SetCrossSecFactor(G4double fac);
|
||||
// Set the factor to artificially increase the crossSection (default 1)
|
||||
|
||||
G4double GetCrossSecFactor() { return CrossSecFactor;}
|
||||
// Get the factor to artificially increase the cross section
|
||||
|
||||
G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition);
|
||||
// It returns the MeanFreePath of the process for the current track :
|
||||
// (energy, material)
|
||||
// The previousStepSize and G4ForceCondition* are not used.
|
||||
// This function overloads a virtual function of the base class.
|
||||
// It is invoked by the ProcessManager of the Particle.
|
||||
|
||||
G4double GetCrossSectionPerAtom(const G4DynamicParticle* aDynamicGamma,
|
||||
G4Element* anElement);
|
||||
// It returns the total CrossSectionPerAtom of the process,
|
||||
// for the current DynamicGamma (energy), in anElement.
|
||||
|
||||
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
|
||||
const G4Step& aStep);
|
||||
// It computes the final state of the process (at end of step),
|
||||
// returned as a ParticleChange object.
|
||||
// This function overloads a virtual function of the base class.
|
||||
// It is invoked by the ProcessManager of the Particle.
|
||||
|
||||
virtual
|
||||
G4double ComputeCrossSectionPerAtom(G4double GammaEnergy,
|
||||
G4double AtomicZ,G4double AtomicA);
|
||||
|
||||
G4double ComputeMeanFreePath (G4double GammaEnergy,
|
||||
G4Material* aMaterial);
|
||||
|
||||
private:
|
||||
|
||||
G4Element* SelectRandomAtom(const G4DynamicParticle* aDynamicGamma,
|
||||
G4Material* aMaterial);
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator as private
|
||||
G4GammaConversionToMuons& operator=(const G4GammaConversionToMuons &right);
|
||||
G4GammaConversionToMuons(const G4GammaConversionToMuons& );
|
||||
|
||||
private:
|
||||
|
||||
G4double LowestEnergyLimit ; // low energy limit of the tables
|
||||
G4double HighestEnergyLimit ; // high energy limit of the tables
|
||||
|
||||
G4double fminimalEnergy; // minimalEnergy of produced particles
|
||||
|
||||
G4double MeanFreePath; // actual MeanFreePath (current medium)
|
||||
G4double CrossSecFactor; // factor to artificially increase
|
||||
// the cross section
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4Vee2hadrons.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4Vee2hadrons
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 12.08.2004
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4Vee2hadrons_h
|
||||
#define G4Vee2hadrons_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include <vector>
|
||||
|
||||
class G4DynamicParticle;
|
||||
class G4PhysicsVector;
|
||||
|
||||
class G4Vee2hadrons
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4Vee2hadrons() {};
|
||||
|
||||
virtual ~G4Vee2hadrons() {};
|
||||
|
||||
virtual G4double ThresholdEnergy() const = 0;
|
||||
|
||||
virtual G4double PeakEnergy() const = 0;
|
||||
|
||||
virtual G4double ComputeCrossSection(G4double) const = 0;
|
||||
|
||||
virtual G4PhysicsVector* PhysicsVector(G4double, G4double) const = 0;
|
||||
|
||||
virtual std::vector<G4DynamicParticle*>* SampleSecondaries(
|
||||
G4double, const G4ThreeVector&) const = 0;
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4Vee2hadrons & operator=(const G4Vee2hadrons &right);
|
||||
G4Vee2hadrons(const G4Vee2hadrons&);
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,130 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4eeCrossSections.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4eeCrossSections
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 15.08.2004
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4eeCrossSections_h
|
||||
#define G4eeCrossSections_h 1
|
||||
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "globals.hh"
|
||||
#include <complex>
|
||||
|
||||
class G4PhysicsVector;
|
||||
|
||||
class G4eeCrossSections
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4eeCrossSections();
|
||||
|
||||
virtual ~G4eeCrossSections();
|
||||
|
||||
G4double CrossSection2pi(G4double);
|
||||
|
||||
G4double CrossSection3pi(G4double);
|
||||
|
||||
G4double CrossSection2Kcharged(G4double);
|
||||
|
||||
G4double CrossSection2Kneutral(G4double);
|
||||
|
||||
private:
|
||||
|
||||
void Initialise();
|
||||
|
||||
G4double Width2p(G4double s, G4double mres, G4double g,
|
||||
G4double br, G4double mp);
|
||||
|
||||
G4double Width3p(G4double s, G4double mres, G4double g,
|
||||
G4double br);
|
||||
|
||||
G4double PhaseSpace3p(G4double e);
|
||||
|
||||
G4double WidthPg(G4double s, G4double mres, G4double g,
|
||||
G4double br, G4double mp);
|
||||
|
||||
G4double WidthRho(G4double e);
|
||||
|
||||
G4double WidthOm(G4double e);
|
||||
|
||||
G4double WidthPhi(G4double e);
|
||||
|
||||
std::complex<G4double> DpRho(G4double e);
|
||||
|
||||
std::complex<G4double> DpOm(G4double e);
|
||||
|
||||
std::complex<G4double> DpPhi(G4double e);
|
||||
|
||||
|
||||
// hide assignment operator
|
||||
G4eeCrossSections & operator=(const G4eeCrossSections &right);
|
||||
G4eeCrossSections(const G4eeCrossSections&);
|
||||
|
||||
G4double MsPi, MsPi0, MsEta, MsEtap, MsKs, MsKc, MsRho, MsOm;
|
||||
G4double MsF0, MsA0, MsPhi, MsK892, MsK0892;
|
||||
G4double GRho, GOm, GPhi, GK892, GK0892, PhRho, PhOm, PhPhi, PhRhoPi;
|
||||
G4double BrRhoPiG, BrRhoPi0G, BrRhoEtaG, BrRhoEe, BrOm3Pi;
|
||||
G4double BrOmPi0G, BrOmEtaG, BrOm2Pi, PhOm2Pi, BrOmEe;
|
||||
G4double BrPhi2Kc, BrPhiKsKl, BrPhi3Pi, BrPhiPi0G, BrPhiEtaG;
|
||||
G4double BrPhi2Pi, PhPhi2Pi, BrPhiEe, MeVnb, Alpha;
|
||||
G4double AOmRho, ARhoPRho, cterm, mssig, gsig, brsigpipi;
|
||||
G4double msrho1450, msrho1700, grho1450, grho1700;
|
||||
G4double arhoompi0, arho1450ompi0, arho1700ompi0, phrhoompi0;
|
||||
G4double phrho1450ompi0, phrho1700ompi0, aomrhopi0, phomrhopi0;
|
||||
G4double arhopi0pi0g, aompi0pi0g, phrhopi0pi0g, phompi0pi0g;
|
||||
G4double brrho1450ompi0, brrho1450pipi, brrho1700ompi0;
|
||||
G4double brrho1700pipi, aphirhopi0, phphirhopi0;
|
||||
G4double arhosigg, phrhosigg, aomsigg, phomsigg;
|
||||
|
||||
G4double MsRho3, MsOm3, MsPhi3;
|
||||
|
||||
G4PhysicsVector* ph3p;
|
||||
|
||||
};
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,214 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4eeToHadrons.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4eeToHadrons
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 12.08.2004
|
||||
//
|
||||
// Modifications:
|
||||
// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
|
||||
//
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// This class manages the process of e+ annihilation into hadrons
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4eeToHadrons_h
|
||||
#define G4eeToHadrons_h 1
|
||||
|
||||
#include "G4VEmProcess.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "G4eeToHadronsModel.hh"
|
||||
#include <vector>
|
||||
|
||||
class G4eeCrossSections;
|
||||
|
||||
class G4eeToHadrons : public G4VEmProcess
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4eeToHadrons(const G4String& name = "ee2hadr");
|
||||
|
||||
virtual ~G4eeToHadrons();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
|
||||
|
||||
virtual std::vector<G4DynamicParticle*>* SecondariesPostStep(
|
||||
G4VEmModel*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*);
|
||||
|
||||
G4double CrossSection(G4double kineticEnergy, const G4MaterialCutsCouple* couple);
|
||||
// It returns the cross section of the process for energy/ material
|
||||
|
||||
virtual G4double RecalculateLambda(G4double kinEnergy,
|
||||
const G4MaterialCutsCouple* couple);
|
||||
|
||||
virtual void PrintInfoDefinition();
|
||||
// Print out of the class parameters
|
||||
|
||||
virtual G4PhysicsVector* LambdaPhysicsVector(const G4MaterialCutsCouple*);
|
||||
|
||||
void SetCrossSecFactor(G4double fac);
|
||||
// Set the factor to artificially increase the crossSection (default 1)
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseProcess(const G4ParticleDefinition*);
|
||||
|
||||
G4double GetMeanFreePath(const G4Track&,G4double,G4ForceCondition*);
|
||||
|
||||
virtual void ResetNumberOfInteractionLengthLeft();
|
||||
|
||||
virtual G4double MaxSecondaryEnergy(const G4DynamicParticle* dp);
|
||||
|
||||
private:
|
||||
|
||||
G4double ComputeMeanFreePath(G4double kineticEnergy,
|
||||
const G4MaterialCutsCouple* couple);
|
||||
|
||||
std::vector<G4DynamicParticle*>* GenerateSecondaries(const G4DynamicParticle*);
|
||||
|
||||
|
||||
// hide assignment operator
|
||||
G4eeToHadrons & operator=(const G4eeToHadrons &right);
|
||||
G4eeToHadrons(const G4eeToHadrons&);
|
||||
|
||||
G4eeCrossSections* cross;
|
||||
|
||||
std::vector<G4eeToHadronsModel*> models;
|
||||
std::vector<G4double> ekinMin;
|
||||
std::vector<G4double> ekinPeak;
|
||||
std::vector<G4double> ekinMax;
|
||||
std::vector<G4double> cumSum;
|
||||
|
||||
G4double thKineticEnergy;
|
||||
G4double maxKineticEnergy;
|
||||
G4double mfpKineticEnergy;
|
||||
G4double preStepMFP;
|
||||
G4double preStepCS;
|
||||
G4double lambdaFactor;
|
||||
G4double csFactor;
|
||||
|
||||
const G4MaterialCutsCouple* currentCouple;
|
||||
|
||||
G4int nModels;
|
||||
|
||||
G4bool isInitialised;
|
||||
G4bool abovePeak;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4bool G4eeToHadrons::IsApplicable(const G4ParticleDefinition& p)
|
||||
{
|
||||
return (&p == G4Positron::Positron());
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadrons::MaxSecondaryEnergy(const G4DynamicParticle* dp)
|
||||
{
|
||||
return dp->GetKineticEnergy();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline std::vector<G4DynamicParticle*>* G4eeToHadrons::SecondariesPostStep(
|
||||
G4VEmModel*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle* dp)
|
||||
{
|
||||
std::vector<G4DynamicParticle*>* newp = 0;
|
||||
G4double kinEnergy = dp->GetKineticEnergy();
|
||||
if (kinEnergy > thKineticEnergy) newp = GenerateSecondaries(dp);
|
||||
return newp;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadrons::GetMeanFreePath(const G4Track& track,
|
||||
G4double,
|
||||
G4ForceCondition* condition)
|
||||
{
|
||||
*condition = NotForced;
|
||||
G4double kinEnergy = track.GetKineticEnergy();
|
||||
G4double x = DBL_MAX;
|
||||
if (kinEnergy > thKineticEnergy)
|
||||
x = ComputeMeanFreePath(kinEnergy, track.GetMaterialCutsCouple());
|
||||
return x;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadrons::CrossSection(G4double kineticEnergy,
|
||||
const G4MaterialCutsCouple* couple)
|
||||
{
|
||||
G4double cross = 0.0;
|
||||
if (kineticEnergy > thKineticEnergy) {
|
||||
for(G4int i=0; i<nModels; i++) {
|
||||
if(kineticEnergy >= ekinMin[i] && kineticEnergy <= ekinMax[i])
|
||||
cross += csFactor*(models[i])->CrossSection(couple,0,kineticEnergy,0.0,0.0);
|
||||
cumSum[i] = cross;
|
||||
}
|
||||
}
|
||||
return cross;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadrons::RecalculateLambda(G4double kinEnergy,
|
||||
const G4MaterialCutsCouple* couple)
|
||||
{
|
||||
return CrossSection(kinEnergy, couple);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline void G4eeToHadrons::ResetNumberOfInteractionLengthLeft()
|
||||
{
|
||||
currentCouple = 0;
|
||||
abovePeak = false;
|
||||
preStepCS = 0.0;
|
||||
G4VProcess::ResetNumberOfInteractionLengthLeft();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,172 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4eeToHadronsModel.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4eeToHadronsModel
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 25.10.2003
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4eeToHadronsModel_h
|
||||
#define G4eeToHadronsModel_h 1
|
||||
|
||||
#include "G4VEmModel.hh"
|
||||
|
||||
class G4PhysicsVector;
|
||||
class G4Vee2hadrons;
|
||||
|
||||
class G4eeToHadronsModel : public G4VEmModel
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4eeToHadronsModel(const G4Vee2hadrons*, G4int ver=0,
|
||||
const G4String& nam = "eeToHadrons");
|
||||
|
||||
virtual ~G4eeToHadronsModel();
|
||||
|
||||
void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
|
||||
G4double HighEnergyLimit(const G4ParticleDefinition* p = 0);
|
||||
|
||||
G4double LowEnergyLimit(const G4ParticleDefinition* p = 0);
|
||||
|
||||
G4double PeakEnergy() const;
|
||||
|
||||
void SetHighEnergyLimit(G4double e);
|
||||
|
||||
void SetLowEnergyLimit(G4double e);
|
||||
|
||||
G4double MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*);
|
||||
|
||||
G4bool IsInCharge(const G4ParticleDefinition*);
|
||||
|
||||
G4double ComputeDEDX(const G4MaterialCutsCouple*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy);
|
||||
|
||||
G4double CrossSection(const G4MaterialCutsCouple*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy);
|
||||
|
||||
G4DynamicParticle* SampleSecondary(
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
|
||||
std::vector<G4DynamicParticle*>* SampleSecondaries(
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
|
||||
G4double MaxSecondaryEnergy(const G4DynamicParticle*);
|
||||
|
||||
G4DynamicParticle* GenerateCMPhoton(G4double);
|
||||
|
||||
protected:
|
||||
|
||||
G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
|
||||
G4double kinEnergy);
|
||||
|
||||
private:
|
||||
|
||||
void ComputeCMCrossSectionPerElectron();
|
||||
|
||||
// hide assignment operator
|
||||
G4eeToHadronsModel & operator=(const G4eeToHadronsModel &right);
|
||||
G4eeToHadronsModel(const G4eeToHadronsModel&);
|
||||
|
||||
const G4Vee2hadrons* model;
|
||||
G4ParticleDefinition* theGamma;
|
||||
G4PhysicsVector* crossPerElectron;
|
||||
G4PhysicsVector* crossBornPerElectron;
|
||||
G4bool isInitialised;
|
||||
G4int nbins;
|
||||
G4int verbose;
|
||||
|
||||
G4double lowKinEnergy;
|
||||
G4double peakKinEnergy;
|
||||
G4double highKinEnergy;
|
||||
|
||||
G4double emin;
|
||||
G4double epeak;
|
||||
G4double emax;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadronsModel::MaxSecondaryEnergy(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kinEnergy)
|
||||
{
|
||||
return kinEnergy;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadronsModel::MaxSecondaryEnergy(const G4DynamicParticle* dp)
|
||||
{
|
||||
return dp->GetKineticEnergy();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadronsModel::MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToHadronsModel::PeakEnergy() const
|
||||
{
|
||||
return peakKinEnergy;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,117 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4eeToTwoPiModel.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4eeToTwoPiModel
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 25.10.2003
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4eeToTwoPiModel_h
|
||||
#define G4eeToTwoPiModel_h 1
|
||||
|
||||
#include "G4Vee2hadrons.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4eeCrossSections.hh"
|
||||
|
||||
class G4DynamicParticle;
|
||||
class G4PhysicsVector;
|
||||
|
||||
class G4eeToTwoPiModel : public G4Vee2hadrons
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
G4eeToTwoPiModel(G4eeCrossSections*);
|
||||
|
||||
virtual ~G4eeToTwoPiModel();
|
||||
|
||||
G4double ThresholdEnergy() const;
|
||||
|
||||
G4double PeakEnergy() const;
|
||||
|
||||
G4double ComputeCrossSection(G4double) const;
|
||||
|
||||
G4PhysicsVector* PhysicsVector(G4double, G4double) const;
|
||||
|
||||
virtual std::vector<G4DynamicParticle*>* SampleSecondaries(
|
||||
G4double, const G4ThreeVector&) const;
|
||||
|
||||
private:
|
||||
|
||||
void Initialise();
|
||||
|
||||
// hide assignment operator
|
||||
G4eeToTwoPiModel & operator=(const G4eeToTwoPiModel &right);
|
||||
G4eeToTwoPiModel(const G4eeToTwoPiModel&);
|
||||
|
||||
G4eeCrossSections* cross;
|
||||
|
||||
G4double massPi;
|
||||
G4double massRho;
|
||||
G4double highEnergy;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToTwoPiModel::ThresholdEnergy() const
|
||||
{
|
||||
return 2.0*massPi;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToTwoPiModel::PeakEnergy() const
|
||||
{
|
||||
return massRho;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4eeToTwoPiModel::ComputeCrossSection(G4double e) const
|
||||
{
|
||||
G4double ee = std::min(GeV,e);
|
||||
return cross->CrossSection2pi(ee);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user