Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4AntiNeutrinoE.cc,v 2.3 1998/09/24 05:53:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4AntiNeutrinoE.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiNeutrinoE::G4AntiNeutrinoE(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
//
|
||||
G4AntiNeutrinoE G4AntiNeutrinoE::theAntiNeutrinoE(
|
||||
"anti_nu_e", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -12,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoEDefinition()
|
||||
{
|
||||
return &theAntiNeutrinoE;
|
||||
}
|
||||
// initialization for static cut values
|
||||
G4double G4AntiNeutrinoE::theAntiNeutrinoELengthCut = -1.0;
|
||||
G4double* G4AntiNeutrinoE::theAntiNeutrinoEKineticEnergyCuts = NULL;
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4AntiNeutrinoE::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theAntiNeutrinoELengthCut = theCutInMaxInteractionLength;
|
||||
theAntiNeutrinoEKineticEnergyCuts = theKineticEnergyCuts;
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4AntiNeutrinoMu.cc,v 2.3 1998/09/24 05:53:11 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4AntiNeutrinoMu.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI MU NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiNeutrinoMu::G4AntiNeutrinoMu(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
//
|
||||
G4AntiNeutrinoMu G4AntiNeutrinoMu::theAntiNeutrinoMu(
|
||||
"anti_nu_mu", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -14,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMuDefinition()
|
||||
{
|
||||
return &theAntiNeutrinoMu;
|
||||
}
|
||||
// initialization for static cut values
|
||||
G4double G4AntiNeutrinoMu::theAntiNeutrinoMuLengthCut = -1.0;
|
||||
G4double* G4AntiNeutrinoMu::theAntiNeutrinoMuKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4AntiNeutrinoMu::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theAntiNeutrinoMuLengthCut = theCutInMaxInteractionLength;
|
||||
theAntiNeutrinoMuKineticEnergyCuts = theKineticEnergyCuts;
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4AntiNeutrinoTau.cc,v 2.3 1998/09/24 05:53:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4AntiNeutrinoTau.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI TAU NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiNeutrinoTau::G4AntiNeutrinoTau(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
//
|
||||
G4AntiNeutrinoTau G4AntiNeutrinoTau::theAntiNeutrinoTau(
|
||||
"anti_nu_tau", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -16,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTauDefinition()
|
||||
{
|
||||
return &theAntiNeutrinoTau;
|
||||
}
|
||||
// initialization for static cut values
|
||||
G4double G4AntiNeutrinoTau::theAntiNeutrinoTauLengthCut = -1.0;
|
||||
G4double* G4AntiNeutrinoTau::theAntiNeutrinoTauKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4AntiNeutrinoTau::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theAntiNeutrinoTauLengthCut = theCutInMaxInteractionLength;
|
||||
theAntiNeutrinoTauKineticEnergyCuts = theKineticEnergyCuts;
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4Electron.cc,v 2.3 1998/10/11 15:18:33 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// **********************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts implementation, L.Urban, 30 May 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Code uses operators (+=, *=, ++, -> etc.) correctly, P. Urban, 26/6/96
|
||||
// Add ElectronDefinition() H.Kurashige 4 July 1996
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4Electron.hh"
|
||||
// ######################################################################
|
||||
// ### ELECTRON ###
|
||||
// ######################################################################
|
||||
|
||||
G4Electron::G4Electron(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4Electron G4Electron::theElectron(
|
||||
"e-", 0.51099906*MeV, 0.0*MeV, -1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 11,
|
||||
true, -1.0, NULL
|
||||
);
|
||||
|
||||
G4Electron* G4Electron::ElectronDefinition(){return &theElectron;}
|
||||
// initialization for static cut values
|
||||
G4double G4Electron::theElectronLengthCut = -1.0;
|
||||
G4double* G4Electron::theElectronKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// ************************* ComputeLoss ********************************
|
||||
// **********************************************************************
|
||||
G4double G4Electron::ComputeLoss(G4double AtomicNumber,
|
||||
G4double KineticEnergy) const
|
||||
{
|
||||
static G4double Z;
|
||||
static G4double taul, ionpot, ionpotlog;
|
||||
const G4double cbr1=0.02, cbr2=-5.7e-5, cbr3=1., cbr4=0.072;
|
||||
const G4double Tlow=10.*keV, Thigh=1.*GeV;
|
||||
|
||||
static G4double bremfactor= 0.1 ;
|
||||
|
||||
// calculate dE/dx for electrons
|
||||
if( abs(AtomicNumber-Z)>0.1 )
|
||||
{
|
||||
Z = AtomicNumber;
|
||||
taul = Tlow/GetPDGMass();
|
||||
ionpot = 1.6e-5*MeV*exp(0.9*log(Z))/GetPDGMass();
|
||||
ionpotlog = log(ionpot);
|
||||
}
|
||||
|
||||
|
||||
G4double tau = KineticEnergy/GetPDGMass();
|
||||
G4double dEdx;
|
||||
|
||||
if(tau<taul) {
|
||||
G4double t1 = taul+1.;
|
||||
G4double t2 = taul+2.;
|
||||
G4double tsq = taul*taul;
|
||||
G4double beta2 = taul*t2/(t1*t1);
|
||||
G4double f = 1.-beta2+log(tsq/2.)
|
||||
+(0.5+0.25*tsq+(1.+2.*taul)*log(0.5))/(t1*t1);
|
||||
dEdx = (log(2.*taul+4.)-2.*ionpotlog+f)/beta2;
|
||||
dEdx = twopi_mc2_rcl2*Z*dEdx;
|
||||
G4double clow = dEdx*sqrt(taul);
|
||||
dEdx = clow/sqrt(KineticEnergy/GetPDGMass());
|
||||
} else {
|
||||
G4double t1 = tau+1.;
|
||||
G4double t2 = tau+2.;
|
||||
G4double tsq = tau*tau;
|
||||
G4double beta2 = tau*t2/(t1*t1);
|
||||
G4double f = 1.-beta2+log(tsq/2.)
|
||||
+(0.5+0.25*tsq+(1.+2.*tau)*log(0.5))/(t1*t1);
|
||||
dEdx = (log(2.*tau+4.)-2.*ionpotlog+f)/beta2;
|
||||
dEdx = twopi_mc2_rcl2*Z*dEdx;
|
||||
|
||||
// loss from bremsstrahlung follows
|
||||
G4double cbrem = (cbr1+cbr2*Z)
|
||||
*(cbr3+cbr4*log(KineticEnergy/Thigh));
|
||||
cbrem = Z*(Z+1.)*cbrem*tau/beta2;
|
||||
|
||||
cbrem *= bremfactor ;
|
||||
|
||||
dEdx += twopi_mc2_rcl2*cbrem;
|
||||
}
|
||||
|
||||
return dEdx;
|
||||
}
|
||||
|
||||
// **********************************************************************
|
||||
// *********************** BuildRangeVector *****************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4Electron::BuildRangeVector(const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4PhysicsLogVector* rangeVector)
|
||||
{
|
||||
// create range vector for a material
|
||||
const G4double tlim = 10.*keV;
|
||||
const G4int maxnbint = 100;
|
||||
|
||||
const G4ElementVector* elementVector = aMaterial->GetElementVector();
|
||||
const G4double* atomicNumDensityVector = aMaterial->GetAtomicNumDensityVector();
|
||||
G4int NumEl = aMaterial->GetNumberOfElements();
|
||||
|
||||
// calculate parameters of the low energy part first
|
||||
G4int i;
|
||||
G4double loss=0.;
|
||||
for (i=0; i<NumEl; i++)
|
||||
{
|
||||
G4bool isOut;
|
||||
G4int IndEl = (*elementVector)(i)->GetIndex();
|
||||
loss += atomicNumDensityVector[i]*
|
||||
(*aLossTable)[IndEl]->GetValue(tlim,isOut);
|
||||
}
|
||||
G4double taulim = tlim/aMass;
|
||||
G4double clim = sqrt(taulim)*loss;
|
||||
G4double taumax = maxEnergy/aMass;
|
||||
|
||||
// now the range vector can be filled
|
||||
|
||||
for ( i=0; i<TotBin; i++)
|
||||
{
|
||||
G4double LowEdgeEnergy = rangeVector->GetLowEdgeEnergy(i);
|
||||
G4double tau = LowEdgeEnergy/aMass;
|
||||
|
||||
if ( tau <= taulim ) {
|
||||
G4double Value = 2.*aMass*tau*sqrt(tau)/(3.*clim);
|
||||
rangeVector->PutValue(i,Value);
|
||||
} else {
|
||||
G4double rangelim = 2.*aMass*taulim*sqrt(taulim)/(3.*clim);
|
||||
G4double ltaulow = log(taulim);
|
||||
G4double ltauhigh = log(tau);
|
||||
G4double ltaumax = log(taumax);
|
||||
G4int nbin = G4int(maxnbint*(ltauhigh-ltaulow)/(ltaumax-ltaulow));
|
||||
if( nbin < 1 ) nbin = 1;
|
||||
G4double Value = RangeLogSimpson(elementVector, atomicNumDensityVector,
|
||||
aLossTable, aMass,
|
||||
ltaulow, ltauhigh,
|
||||
nbin, NumEl) + rangelim;
|
||||
rangeVector->PutValue(i,Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4LeptonConstructor.cc,v 2.0 1998/07/02 17:25:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementatLepton file
|
||||
//
|
||||
|
||||
#include "G4LeptonConstructor.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
// Leptons
|
||||
#include "G4MuonPlus.hh"
|
||||
#include "G4MuonMinus.hh"
|
||||
#include "G4TauMinus.hh"
|
||||
#include "G4TauPlus.hh"
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "G4NeutrinoTau.hh"
|
||||
#include "G4AntiNeutrinoTau.hh"
|
||||
#include "G4NeutrinoMu.hh"
|
||||
#include "G4AntiNeutrinoMu.hh"
|
||||
#include "G4NeutrinoE.hh"
|
||||
#include "G4AntiNeutrinoE.hh"
|
||||
G4LeptonConstructor::G4LeptonConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
G4LeptonConstructor::~G4LeptonConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void G4LeptonConstructor::ConstructParticle()
|
||||
{
|
||||
ConstructELeptons();
|
||||
ConstructMuLeptons();
|
||||
ConstructTauLeptons();
|
||||
}
|
||||
|
||||
void G4LeptonConstructor::ConstructELeptons()
|
||||
{
|
||||
G4Electron::ElectronDefinition();
|
||||
G4Positron::PositronDefinition();
|
||||
G4NeutrinoE::NeutrinoEDefinition();
|
||||
G4AntiNeutrinoE::AntiNeutrinoEDefinition();
|
||||
}
|
||||
|
||||
void G4LeptonConstructor::ConstructMuLeptons()
|
||||
{
|
||||
G4MuonPlus::MuonPlusDefinition();
|
||||
G4MuonMinus::MuonMinusDefinition();
|
||||
G4NeutrinoMu::NeutrinoMuDefinition();
|
||||
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
|
||||
}
|
||||
|
||||
void G4LeptonConstructor::ConstructTauLeptons()
|
||||
{
|
||||
G4TauMinus::TauMinusDefinition();
|
||||
G4TauPlus::TauPlusDefinition();
|
||||
G4NeutrinoTau::NeutrinoTauDefinition();
|
||||
G4AntiNeutrinoTau::AntiNeutrinoTauDefinition();
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4MuonMinus.cc,v 2.2 1998/09/24 05:53:16 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// **********************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts implementation, L.Urban, 12 June 1996
|
||||
// Operators (+=, *=, ++, -> etc.) correctly used, P. Urban, 26/6/96
|
||||
// Add MuonMinusDefinition(), H.Kurashige 4 July 1996
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4MuonMinus.hh"
|
||||
|
||||
#include "G4MuonDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### MUONMINUS ###
|
||||
// ######################################################################
|
||||
|
||||
G4MuonMinus::G4MuonMinus(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
SetPDGStable(false);
|
||||
//create Decay Table
|
||||
G4DecayTable* table = GetDecayTable();
|
||||
if (table!=NULL) delete table;
|
||||
table = new G4DecayTable();
|
||||
|
||||
// create a decay channel
|
||||
G4VDecayChannel* mode = new G4MuonDecayChannel("mu-",1.00);
|
||||
table->Insert(mode);
|
||||
|
||||
SetDecayTable(table);
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4MuonMinus G4MuonMinus::theMuonMinus(
|
||||
"mu-", 0.1056584*GeV, 0.0*MeV, -1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 13,
|
||||
true, 2197.03*ns, NULL
|
||||
);
|
||||
|
||||
G4MuonMinus* G4MuonMinus::MuonMinusDefinition() {return &theMuonMinus;}
|
||||
G4double G4MuonMinus::theMuonMinusLengthCut = -1.0;
|
||||
G4double* G4MuonMinus::theMuonMinusKineticEnergyCuts = NULL;
|
||||
@@ -0,0 +1,98 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4MuonPlus.cc,v 2.2 1998/09/24 05:53:18 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// **********************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts implementation, L.Urban, 10 May 1996
|
||||
// Operators (+=, *=, ++, -> etc.) correctly used, P. Urban, 26/6/96
|
||||
// Add MuonPlusDefinition(), H.Kurashige 4 July 1996
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4MuonPlus.hh"
|
||||
|
||||
#include "G4MuonDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### MUONPLUS ###
|
||||
// ######################################################################
|
||||
|
||||
G4MuonPlus::G4MuonPlus(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
SetPDGStable(false);
|
||||
|
||||
//create Decay Table
|
||||
G4DecayTable* table = GetDecayTable();
|
||||
if (table!=NULL) delete table;
|
||||
table = new G4DecayTable();
|
||||
|
||||
// create a decay channel
|
||||
G4VDecayChannel* mode = new G4MuonDecayChannel("mu+",1.00);
|
||||
table->Insert(mode);
|
||||
|
||||
SetDecayTable(table);
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
G4MuonPlus G4MuonPlus::theMuonPlus(
|
||||
"mu+", 0.1056584*GeV, 0.0*MeV, +1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -13,
|
||||
true, 2197.03*ns, NULL
|
||||
);
|
||||
|
||||
G4MuonPlus* G4MuonPlus::MuonPlusDefinition() {return &theMuonPlus;}
|
||||
// initialization for static cut values
|
||||
G4double G4MuonPlus::theMuonPlusLengthCut = -1.0;
|
||||
G4double* G4MuonPlus::theMuonPlusKineticEnergyCuts = NULL;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4NeutrinoE.cc,v 2.3 1998/09/24 05:53:19 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4NeutrinoE.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4NeutrinoE::G4NeutrinoE(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4NeutrinoE G4NeutrinoE::theNeutrinoE(
|
||||
"nu_e", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 12,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4NeutrinoE* G4NeutrinoE::NeutrinoEDefinition() {return &theNeutrinoE;}
|
||||
// initialization for static cut values
|
||||
G4double G4NeutrinoE::theNeutrinoELengthCut = -1.0;
|
||||
G4double* G4NeutrinoE::theNeutrinoEKineticEnergyCuts = NULL;
|
||||
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4NeutrinoE::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theNeutrinoELengthCut = theCutInMaxInteractionLength;
|
||||
theNeutrinoEKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4NeutrinoMu.cc,v 2.3 1998/09/24 05:53:21 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4NeutrinoMu.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### MU NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4NeutrinoMu::G4NeutrinoMu(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4NeutrinoMu G4NeutrinoMu::theNeutrinoMu(
|
||||
"nu_mu", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 14,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMuDefinition()
|
||||
{
|
||||
return &theNeutrinoMu;
|
||||
}
|
||||
G4double G4NeutrinoMu::theNeutrinoMuLengthCut = -1.0;
|
||||
G4double* G4NeutrinoMu::theNeutrinoMuKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
void G4NeutrinoMu::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theNeutrinoMuLengthCut = theCutInMaxInteractionLength;
|
||||
theNeutrinoMuKineticEnergyCuts = theKineticEnergyCuts;
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4NeutrinoTau.cc,v 2.3 1998/09/24 05:53:23 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// by H.Kurashige,7 July 1996
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4NeutrinoTau.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### TAU NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
G4NeutrinoTau::G4NeutrinoTau(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4NeutrinoTau G4NeutrinoTau::theNeutrinoTau(
|
||||
"nu_tau", 0.0*MeV, 0.0*MeV, 0.0,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 16,
|
||||
true, 0.0, NULL
|
||||
);
|
||||
|
||||
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTauDefinition(){return &theNeutrinoTau;}
|
||||
G4double G4NeutrinoTau::theNeutrinoTauLengthCut = -1.0;
|
||||
G4double* G4NeutrinoTau::theNeutrinoTauKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
// **********************************************************************
|
||||
|
||||
void G4NeutrinoTau::SetCuts(G4double aCut)
|
||||
{
|
||||
theCutInMaxInteractionLength = aCut;
|
||||
|
||||
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
|
||||
// Create the vector of cuts in energy
|
||||
// corresponding to the stopping range cut
|
||||
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
|
||||
theKineticEnergyCuts = new G4double [materialTable->length()];
|
||||
|
||||
// Build range vector for every material, convert cut into energy-cut,
|
||||
// fill theKineticEnergyCuts and delete the range vector
|
||||
for (G4int J=0; J<materialTable->length(); J++)
|
||||
{
|
||||
G4Material* aMaterial = (*materialTable)[J];
|
||||
theKineticEnergyCuts[J] = 0.0*keV;
|
||||
}
|
||||
theNeutrinoTauLengthCut = theCutInMaxInteractionLength;
|
||||
theNeutrinoTauKineticEnergyCuts = theKineticEnergyCuts;
|
||||
// Rebuild the physics tables for every process for this particle type
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4Positron.cc,v 2.3 1998/10/11 15:19:08 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// **********************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts implementation, L.Urban, 12 June 1996
|
||||
// Code uses operators (+=, *=, ++, -> etc.) correctly, P. Urban, 26/6/96
|
||||
// Add PositronDefinition(), H.Kurashige 4 July 1996
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4Positron.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### POSITRON ###
|
||||
// ######################################################################
|
||||
|
||||
G4Positron::G4Positron(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
G4Positron G4Positron::thePositron(
|
||||
"e+", 0.51099906*MeV, 0.0*MeV, +1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -11,
|
||||
true, -1.0, NULL
|
||||
);
|
||||
|
||||
G4Positron* G4Positron::PositronDefinition() {return &thePositron;}
|
||||
// initialization for static cut values
|
||||
G4double G4Positron::thePositronLengthCut = -1.0;
|
||||
G4double* G4Positron::thePositronKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// ************************* ComputeLoss ********************************
|
||||
// **********************************************************************
|
||||
|
||||
G4double G4Positron::ComputeLoss(G4double AtomicNumber,
|
||||
G4double KineticEnergy) const
|
||||
{
|
||||
static G4double Z;
|
||||
static G4double taul, ionpot, ionpotlog;
|
||||
const G4double cbr1=0.02, cbr2=-5.7e-5, cbr3=1., cbr4=0.072;
|
||||
const G4double Tlow=10.*keV, Thigh=1.*GeV;
|
||||
static G4double bremfactor = 0.1 ;
|
||||
|
||||
// calculate dE/dx for electrons
|
||||
if( abs(AtomicNumber-Z)>0.1 )
|
||||
{
|
||||
Z = AtomicNumber;
|
||||
taul = Tlow/GetPDGMass();
|
||||
ionpot = 1.6e-5*MeV*exp(0.9*log(Z))/GetPDGMass();
|
||||
ionpotlog = log(ionpot);
|
||||
}
|
||||
|
||||
|
||||
G4double tau = KineticEnergy/GetPDGMass();
|
||||
G4double dEdx;
|
||||
|
||||
if(tau<taul)
|
||||
{
|
||||
G4double t1 = taul+1.;
|
||||
G4double t2 = taul+2.;
|
||||
G4double tsq = taul*taul;
|
||||
G4double beta2 = taul*t2/(t1*t1);
|
||||
G4double f = 2.*log(taul)
|
||||
-(6.*taul+1.5*tsq-taul*(1.-tsq/3.)/t2-tsq*(0.5-tsq/12.)/
|
||||
(t2*t2))/(t1*t1);
|
||||
dEdx = (log(2.*taul+4.)-2.*ionpotlog+f)/beta2;
|
||||
dEdx = twopi_mc2_rcl2*Z*dEdx;
|
||||
G4double clow = dEdx*sqrt(taul);
|
||||
dEdx = clow/sqrt(KineticEnergy/GetPDGMass());
|
||||
} else {
|
||||
G4double t1 = tau+1.;
|
||||
G4double t2 = tau+2.;
|
||||
G4double tsq = tau*tau;
|
||||
G4double beta2 = tau*t2/(t1*t1);
|
||||
G4double f = 2.*log(tau)
|
||||
- (6.*tau+1.5*tsq-tau*(1.-tsq/3.)/t2-tsq*(0.5-tsq/12.)/
|
||||
(t2*t2))/(t1*t1);
|
||||
dEdx = (log(2.*tau+4.)-2.*ionpotlog+f)/beta2;
|
||||
dEdx = twopi_mc2_rcl2*Z*dEdx;
|
||||
|
||||
// loss from bremsstrahlung follows
|
||||
G4double cbrem = (cbr1+cbr2*Z)
|
||||
*(cbr3+cbr4*log(KineticEnergy/Thigh));
|
||||
cbrem = Z*(Z+1.)*cbrem*tau/beta2;
|
||||
cbrem *= bremfactor ;
|
||||
dEdx += twopi_mc2_rcl2*cbrem;
|
||||
}
|
||||
return dEdx;
|
||||
}
|
||||
|
||||
// **********************************************************************
|
||||
// *********************** BuildRangeVector *****************************
|
||||
// **********************************************************************
|
||||
void G4Positron::BuildRangeVector(const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4PhysicsLogVector* rangeVector)
|
||||
{
|
||||
G4Electron* pElectron = G4Electron::ElectronDefinition();
|
||||
pElectron->BuildRangeVector(aMaterial,
|
||||
aLossTable,
|
||||
maxEnergy,
|
||||
aMass,
|
||||
rangeVector);
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4TauMinus.cc,v 2.2 1998/09/24 05:53:26 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// 7 July 1996 H.Kurashige
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4TauMinus.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### TAUMINUS ###
|
||||
// ######################################################################
|
||||
|
||||
G4TauMinus::G4TauMinus(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
SetPDGStable(false);
|
||||
|
||||
//create Decay Table
|
||||
G4DecayTable* table = GetDecayTable();
|
||||
if (table!=NULL) delete table;
|
||||
table = new G4DecayTable();
|
||||
|
||||
// create decay channels
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[6];
|
||||
// tau- -> mu- + anti_nu_mu + nu_tau
|
||||
mode[0] = new G4PhaseSpaceDecayChannel("tau-",0.174,3,"mu-","anti_nu_mu","nu_tau");
|
||||
// tau- -> e- + anti_nu_e + nu_tau
|
||||
mode[1] = new G4PhaseSpaceDecayChannel("tau-",0.178,3,"e-","anti_nu_e","nu_tau");
|
||||
// tau- -> pi- + nu_tau
|
||||
mode[2] = new G4PhaseSpaceDecayChannel("tau-",0.113,2,"pi-","nu_tau");
|
||||
// tau- -> pi0 + pi0 + pi- + nu_tau
|
||||
mode[3] = new G4PhaseSpaceDecayChannel("tau-",0.252,3,"pi0","pi-","nu_tau");
|
||||
// tau- -> pi0 + pi0 + pi- + nu_tau
|
||||
mode[4] = new G4PhaseSpaceDecayChannel();
|
||||
mode[4]->SetParent("tau-");
|
||||
mode[4]->SetBR(0.093);
|
||||
mode[4]->SetNumberOfDaughters(4);
|
||||
mode[4]->SetDaughter(0,"pi0");
|
||||
mode[4]->SetDaughter(1,"pi0");
|
||||
mode[4]->SetDaughter(2,"pi-");
|
||||
mode[4]->SetDaughter(3,"nu_tau");
|
||||
// tau- -> pi- + pi- + pi+ + nu_tau
|
||||
mode[5] = new G4PhaseSpaceDecayChannel();
|
||||
mode[5]->SetParent("tau-");
|
||||
mode[5]->SetBR(0.098);
|
||||
mode[5]->SetNumberOfDaughters(4);
|
||||
mode[5]->SetDaughter(0,"pi-");
|
||||
mode[5]->SetDaughter(1,"pi-");
|
||||
mode[5]->SetDaughter(2,"pi+");
|
||||
mode[5]->SetDaughter(3,"nu_tau");
|
||||
|
||||
for (G4int index=0; index <6; index++ ) table->Insert(mode[index]);
|
||||
delete [] mode;
|
||||
|
||||
SetDecayTable(table);
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
|
||||
G4TauMinus G4TauMinus::theTauMinus(
|
||||
"tau-", 1.7771*GeV, 0.0*MeV, -1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", 1, 0, 15,
|
||||
true, 295.6e-6*ns, NULL
|
||||
);
|
||||
|
||||
G4TauMinus* G4TauMinus::TauMinusDefinition() {return &theTauMinus;}
|
||||
// initialization for static cut values
|
||||
G4double G4TauMinus::theTauMinusLengthCut = -1.0;
|
||||
G4double* G4TauMinus::theTauMinusKineticEnergyCuts = NULL;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4TauPlus.cc,v 2.2 1998/09/24 05:53:28 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 4th April 1996, G.Cosmo
|
||||
// 7 July 1996 H.Kurashige
|
||||
// **********************************************************************
|
||||
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "G4TauPlus.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### TAPLUS ###
|
||||
// ######################################################################
|
||||
|
||||
G4TauPlus::G4TauPlus(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable )
|
||||
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable )
|
||||
{
|
||||
SetPDGStable(false);
|
||||
|
||||
//create Decay Table
|
||||
G4DecayTable* table = GetDecayTable();
|
||||
if (table!=NULL) delete table;
|
||||
table = new G4DecayTable();
|
||||
|
||||
// create decay channels
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[6];
|
||||
// tau+ -> mu+ + nu_mu + anti_nu_tau
|
||||
mode[0] = new G4PhaseSpaceDecayChannel("tau+",0.174,3,"mu+","nu_mu","anti_nu_tau");
|
||||
// tau+ -> e+ + nu_e + anti_nu_tau
|
||||
mode[1] = new G4PhaseSpaceDecayChannel("tau+",0.178,3,"e+","nu_e","anti_nu_tau");
|
||||
// tau+ -> pi+ + anti_nu_tau
|
||||
mode[2] = new G4PhaseSpaceDecayChannel("tau+",0.113,2,"pi+","anti_nu_tau");
|
||||
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
|
||||
mode[3] = new G4PhaseSpaceDecayChannel("tau+",0.252,3,"pi0","pi+","anti_nu_tau");
|
||||
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
|
||||
mode[4] = new G4PhaseSpaceDecayChannel();
|
||||
mode[4]->SetParent("tau+");
|
||||
mode[4]->SetBR(0.093);
|
||||
mode[4]->SetNumberOfDaughters(4);
|
||||
mode[4]->SetDaughter(0,"pi0");
|
||||
mode[4]->SetDaughter(1,"pi0");
|
||||
mode[4]->SetDaughter(2,"pi+");
|
||||
mode[4]->SetDaughter(3,"anti_nu_tau");
|
||||
// tau+ -> pi+ + pi+ + pi- + anti_nu_tau
|
||||
mode[5] = new G4PhaseSpaceDecayChannel();
|
||||
mode[5]->SetParent("tau+");
|
||||
mode[5]->SetBR(0.098);
|
||||
mode[5]->SetNumberOfDaughters(4);
|
||||
mode[5]->SetDaughter(0,"pi+");
|
||||
mode[5]->SetDaughter(1,"pi+");
|
||||
mode[5]->SetDaughter(2,"pi-");
|
||||
mode[5]->SetDaughter(3,"anti_nu_tau");
|
||||
|
||||
for (G4int index=0; index <6; index++ ) table->Insert(mode[index]);
|
||||
|
||||
delete [] mode;
|
||||
|
||||
SetDecayTable(table);
|
||||
}
|
||||
|
||||
// ......................................................................
|
||||
// ... static member definitions ...
|
||||
// ......................................................................
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
//
|
||||
G4TauPlus G4TauPlus::theTauPlus(
|
||||
"tau+", 1.7771*GeV, 0.0*MeV, 1.*eplus,
|
||||
1, 0, 0,
|
||||
0, 0, 0,
|
||||
"lepton", -1, 0, -15,
|
||||
true, 295.6e-6*ns, NULL
|
||||
);
|
||||
|
||||
G4TauPlus* G4TauPlus::TauPlusDefinition(){return &theTauPlus;}
|
||||
// initialization for static cut values
|
||||
G4double G4TauPlus::theTauPlusLengthCut = -1.0;
|
||||
G4double* G4TauPlus::theTauPlusKineticEnergyCuts = NULL;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4VLepton.cc,v 2.0 1998/07/02 17:25:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD Group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// --------------------------------------------------------------
|
||||
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
const G4VLepton & G4VLepton::operator=(const G4VLepton &right)
|
||||
{
|
||||
if (this != &right) {
|
||||
} return right;
|
||||
}
|
||||
|
||||
G4int G4VLepton::operator==(const G4VLepton &right) const
|
||||
{
|
||||
return (this->GetParticleName() == right.GetParticleName());
|
||||
}
|
||||
|
||||
G4int G4VLepton::operator!=(const G4VLepton &right) const
|
||||
{
|
||||
return (this->GetParticleName() != right.GetParticleName());
|
||||
}
|
||||
Reference in New Issue
Block a user