Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# $Id: GNUmakefile,v 2.0 1998/07/02 17:25:41 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for leptons library. Gabriele Cosmo, 18/9/96.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
name := G4leptons
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../..
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
|
||||
CPPFLAGS += \
|
||||
-I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/global/HEPRandom/include \
|
||||
-I$(G4BASE)/global/HEPGeometry/include \
|
||||
-I$(G4BASE)/materials/include \
|
||||
-I$(G4BASE)/particles/management/include
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
@@ -0,0 +1,70 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:36 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4AntiNeutrinoE_h
|
||||
#define G4AntiNeutrinoE_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiNeutrinoE : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4AntiNeutrinoE theAntiNeutrinoE;
|
||||
static G4double theAntiNeutrinoELengthCut;
|
||||
static G4double* theAntiNeutrinoEKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4AntiNeutrinoE* AntiNeutrinoEDefinition();
|
||||
static G4AntiNeutrinoE* AntiNeutrinoE(){return &theAntiNeutrinoE;}
|
||||
static G4double GetCuts() {return theAntiNeutrinoELengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theAntiNeutrinoEKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:40 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4AntiNeutrinoMu_h
|
||||
#define G4AntiNeutrinoMu_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiNeutrinoMu : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4AntiNeutrinoMu theAntiNeutrinoMu;
|
||||
static G4double theAntiNeutrinoMuLengthCut;
|
||||
static G4double* theAntiNeutrinoMuKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4AntiNeutrinoMu* AntiNeutrinoMuDefinition();
|
||||
static G4AntiNeutrinoMu* AntiNeutrinoMu() {return &theAntiNeutrinoMu;}
|
||||
static G4double GetCuts() {return theAntiNeutrinoMuLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theAntiNeutrinoMuKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,68 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:43 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4AntiNeutrinoTau_h
|
||||
#define G4AntiNeutrinoTau_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
// ######################################################################
|
||||
// ### ANTI NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiNeutrinoTau : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4AntiNeutrinoTau theAntiNeutrinoTau;
|
||||
static G4double theAntiNeutrinoTauLengthCut;
|
||||
static G4double* theAntiNeutrinoTauKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4AntiNeutrinoTau* AntiNeutrinoTauDefinition();
|
||||
static G4AntiNeutrinoTau* AntiNeutrinoTau(){return &theAntiNeutrinoTau;}
|
||||
static G4double GetCuts() {return theAntiNeutrinoTauLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theAntiNeutrinoTauKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -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: G4Electron.hh,v 2.3 1998/09/24 05:49:46 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts implementation for Electron, L.Urban, 30 May 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4Electron_h
|
||||
#define G4Electron_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
class G4Positron;
|
||||
// ######################################################################
|
||||
// ### ELECTRON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4Electron : public G4VLepton
|
||||
{
|
||||
friend class G4Positron;
|
||||
private:
|
||||
static G4Electron theElectron;
|
||||
static G4double theElectronLengthCut;
|
||||
static G4double* theElectronKineticEnergyCuts;
|
||||
|
||||
protected:
|
||||
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
|
||||
void BuildRangeVector(
|
||||
const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4RangeVector* rangeVector
|
||||
);
|
||||
|
||||
private: //hide constructor as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4Electron* ElectronDefinition();
|
||||
static G4Electron* Electron();
|
||||
static G4double GetCuts() {return theElectronLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theElectronKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4Electron::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theElectronLengthCut = theCutInMaxInteractionLength;
|
||||
theElectronKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
}
|
||||
|
||||
inline G4Electron* G4Electron::Electron()
|
||||
{ return &theElectron; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// 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.hh,v 2.1 1998/07/13 17:17:25 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementatLepton file
|
||||
//
|
||||
#ifndef G4LeptonConstructor_h
|
||||
#define G4LeptonConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
class G4LeptonConstructor
|
||||
{
|
||||
//This class is a utility class for constructLepton
|
||||
//short lived particles
|
||||
|
||||
public:
|
||||
G4LeptonConstructor();
|
||||
~G4LeptonConstructor();
|
||||
|
||||
public:
|
||||
void ConstructParticle();
|
||||
|
||||
protected:
|
||||
void ConstructELeptons();
|
||||
void ConstructMuLeptons();
|
||||
void ConstructTauLeptons();
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,81 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:49 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts, L.Urban, 12 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4MuonMinus_h
|
||||
#define G4MuonMinus_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### MUONMINUS ###
|
||||
// ######################################################################
|
||||
|
||||
class G4MuonMinus : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4MuonMinus theMuonMinus;
|
||||
static G4double theMuonMinusLengthCut;
|
||||
static G4double* theMuonMinusKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
public:
|
||||
static G4MuonMinus* MuonMinusDefinition();
|
||||
static G4MuonMinus* MuonMinus();
|
||||
static G4double GetCuts() {return theMuonMinusLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theMuonMinusKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4MuonMinus::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theMuonMinusLengthCut = theCutInMaxInteractionLength;
|
||||
theMuonMinusKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
}
|
||||
|
||||
inline G4MuonMinus* G4MuonMinus::MuonMinus()
|
||||
{ return &theMuonMinus; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:53 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Added SetCuts, L.Urban, 12 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4MuonPlus_h
|
||||
#define G4MuonPlus_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### MUONPLUS ###
|
||||
// ######################################################################
|
||||
|
||||
class G4MuonPlus : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4MuonPlus theMuonPlus;
|
||||
static G4double theMuonPlusLengthCut;
|
||||
static G4double* theMuonPlusKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4MuonPlus* MuonPlusDefinition();
|
||||
static G4MuonPlus* MuonPlus();
|
||||
static G4double GetCuts() {return theMuonPlusLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theMuonPlusKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4MuonPlus::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theMuonPlusLengthCut = theCutInMaxInteractionLength;
|
||||
theMuonPlusKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
}
|
||||
|
||||
inline G4MuonPlus* G4MuonPlus::MuonPlus()
|
||||
{ return &theMuonPlus; }
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:49:56 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
#ifndef G4NeutrinoE_h
|
||||
#define G4NeutrinoE_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4NeutrinoE : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4NeutrinoE theNeutrinoE;
|
||||
static G4double theNeutrinoELengthCut;
|
||||
static G4double* theNeutrinoEKineticEnergyCuts;
|
||||
|
||||
private:
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4NeutrinoE* NeutrinoEDefinition();
|
||||
static G4NeutrinoE* NeutrinoE(){return &theNeutrinoE;}
|
||||
static G4double GetCuts() {return theNeutrinoELengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theNeutrinoEKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,72 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:50:00 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
#ifndef G4NeutrinoMu_h
|
||||
#define G4NeutrinoMu_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4NeutrinoMu : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4NeutrinoMu theNeutrinoMu;
|
||||
static G4double theNeutrinoMuLengthCut;
|
||||
static G4double* theNeutrinoMuKineticEnergyCuts;
|
||||
|
||||
private:
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4NeutrinoMu* NeutrinoMuDefinition();
|
||||
static G4NeutrinoMu* NeutrinoMu() {return &theNeutrinoMu;}
|
||||
static G4double GetCuts() {return theNeutrinoMuLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theNeutrinoMuKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:50:06 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
#ifndef G4NeutrinoTau_h
|
||||
#define G4NeutrinoTau_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
// ######################################################################
|
||||
// ### NEUTRINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4NeutrinoTau : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4NeutrinoTau theNeutrinoTau;
|
||||
static G4double theNeutrinoTauLengthCut;
|
||||
static G4double* theNeutrinoTauKineticEnergyCuts;
|
||||
|
||||
private:
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4NeutrinoTau* NeutrinoTauDefinition();
|
||||
static G4NeutrinoTau* NeutrinoTau() {return &theNeutrinoTau;}
|
||||
static G4double GetCuts() {return theNeutrinoTauLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theNeutrinoTauKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,103 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:50:10 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added SetCuts, L.Urban, 12 June 1996
|
||||
// Revised, Hisaya Kurashige, 4 July 1996
|
||||
// Revised, Hisaya Kurashige, 7 July 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// Revised, Hisaya Kurashige, 15 Dec 1996
|
||||
// ----------------------------------------------------------------
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4Positron_h
|
||||
#define G4Positron_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
#include "G4Electron.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### POSITRON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4Positron : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4Positron thePositron;
|
||||
static G4double thePositronLengthCut;
|
||||
static G4double* thePositronKineticEnergyCuts;
|
||||
|
||||
protected:
|
||||
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
|
||||
|
||||
void BuildRangeVector( const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4RangeVector* rangeVector
|
||||
);
|
||||
|
||||
friend void G4Electron::BuildRangeVector(
|
||||
const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4RangeVector* rangeVector
|
||||
);
|
||||
|
||||
|
||||
private: //hide constructor as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4Positron* PositronDefinition();
|
||||
static G4Positron* Positron();
|
||||
static G4double GetCuts() {return thePositronLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return thePositronKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4Positron::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
thePositronLengthCut = theCutInMaxInteractionLength;
|
||||
thePositronKineticEnergyCuts = theKineticEnergyCuts;
|
||||
}
|
||||
inline G4Positron* G4Positron::Positron()
|
||||
{ return &thePositron; }
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:50:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4TauMinus_h
|
||||
#define G4TauMinus_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### TAUMINUS ###
|
||||
// ######################################################################
|
||||
|
||||
class G4TauMinus : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4TauMinus theTauMinus;
|
||||
static G4double theTauMinusLengthCut;
|
||||
static G4double* theTauMinusKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4TauMinus* TauMinusDefinition();
|
||||
static G4TauMinus* TauMinus();
|
||||
static G4double GetCuts() {return theTauMinusLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theTauMinusKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4TauMinus::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theTauMinusLengthCut = theCutInMaxInteractionLength;
|
||||
theTauMinusKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
}
|
||||
|
||||
inline G4TauMinus* G4TauMinus::TauMinus()
|
||||
{ return &theTauMinus; }
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
// 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.hh,v 2.3 1998/09/24 05:50:15 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VLepton
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
|
||||
#ifndef G4TauPlus_h
|
||||
#define G4TauPlus_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VLepton.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### TAUPLUS ###
|
||||
// ######################################################################
|
||||
|
||||
class G4TauPlus : public G4VLepton
|
||||
{
|
||||
private:
|
||||
static G4TauPlus theTauPlus;
|
||||
static G4double theTauPlusLengthCut;
|
||||
static G4double* theTauPlusKineticEnergyCuts;
|
||||
|
||||
private: // constructors are hide as private
|
||||
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
|
||||
);
|
||||
|
||||
public:
|
||||
static G4TauPlus* TauPlusDefinition();
|
||||
static G4TauPlus* TauPlus();
|
||||
static G4double GetCuts() {return theTauPlusLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theTauPlusKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4TauPlus::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theTauPlusLengthCut = theCutInMaxInteractionLength;
|
||||
theTauPlusKineticEnergyCuts = theKineticEnergyCuts;
|
||||
}
|
||||
|
||||
inline G4TauPlus* G4TauPlus::TauPlus()
|
||||
{ return &theTauPlus; }
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
// 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.hh,v 2.2 1998/07/13 17:17:37 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header 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
|
||||
// Revised, Hisaya Kurashige, 15 Dec 1996
|
||||
// Revised, Hisaya Kurashige, 24 Frb 1997
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#ifndef G4VLepton_h
|
||||
#define G4VLepton_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
#include "G4ParticleWithCuts.hh"
|
||||
|
||||
class G4VLepton : public G4ParticleWithCuts
|
||||
{
|
||||
// A virtual class for Leptons particles. It defines
|
||||
// public methods which describe the behavior of a
|
||||
// lepton.
|
||||
|
||||
private:
|
||||
|
||||
const G4VLepton & operator=(const G4VLepton &right);
|
||||
|
||||
public:
|
||||
|
||||
G4VLepton(const G4String& aName,
|
||||
G4double mass,
|
||||
G4double width,
|
||||
G4double charge,
|
||||
G4int iSpin,
|
||||
G4int iParity,
|
||||
G4int iConjugation,
|
||||
G4int iIsospin,
|
||||
G4int iIsospinZ,
|
||||
G4int gParity,
|
||||
const G4String& pType,
|
||||
G4int lepton,
|
||||
G4int baryon,
|
||||
G4int encoding,
|
||||
G4bool stable,
|
||||
G4double lifetime,
|
||||
G4DecayTable *decaytable)
|
||||
: G4ParticleWithCuts(aName, mass, width, charge, iSpin, iParity,
|
||||
iConjugation, iIsospin, iIsospinZ, gParity,
|
||||
pType, lepton, baryon, encoding, stable,
|
||||
lifetime, decaytable) {};
|
||||
|
||||
virtual ~G4VLepton() {};
|
||||
|
||||
G4int operator==(const G4VLepton &right) const;
|
||||
G4int operator!=(const G4VLepton &right) const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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