Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DalitzDecayChannel.hh,v 1.5 2006/06/29 19:22:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DecayProducts.hh,v 1.12 2006/06/29 19:22:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DecayTable.hh,v 1.9 2006/06/29 19:22:47 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DecayTableMessenger.hh,v 1.8 2006/06/29 19:22:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DynamicParticle.hh,v 1.18 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DynamicParticle.icc,v 1.16 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DynamicParticleFastVector.hh,v 1.4 2006/06/29 19:23:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ElectronOccupancy.hh,v 1.9 2006/06/29 19:23:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4HyperNucleiProperties.hh,v 1.1 2007/09/14 07:04:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// Hyper Nuclei properties based on CHIPS model (Mikhail KOSOV)
|
||||
// Migrate into particles category by H.Kurashige (Sep. 2007)
|
||||
//
|
||||
|
||||
#ifndef G4HyperNucleiProperties_h
|
||||
#define G4HyperNucleiProperties_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
class G4HyperNucleiProperties
|
||||
{
|
||||
// Class Description
|
||||
// G4HyperNucleiProperties is an utility class to provide
|
||||
// mass formula of hyper nuclei based on CHIPS model
|
||||
// (i.e. it has static member function only)
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Destructor
|
||||
~G4HyperNucleiProperties() { };
|
||||
|
||||
// Default constructor ()
|
||||
G4HyperNucleiProperties(){};
|
||||
|
||||
|
||||
public: // With Description
|
||||
|
||||
// Calculate Mass Excess of nucleus A, Z, L(number of Lambda)
|
||||
static G4double GetAtomicMass(G4int A, G4int Z, G4int L);
|
||||
|
||||
static G4double GetNuclearMass(G4int A, G4int Z, G4int L);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4IonTable.hh,v 1.24 2007/03/15 06:53:27 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4IonTable.hh,v 1.25 2007/09/14 07:04:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -114,8 +114,13 @@ class G4IonTable
|
||||
// Find/Get "excited state"
|
||||
G4ParticleDefinition* FindIon(G4int Z, G4int A, G4double E, G4int J=0);
|
||||
G4ParticleDefinition* GetIon(G4int Z, G4int A, G4double E, G4int J=0);
|
||||
G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int L,
|
||||
G4double E, G4int J=0);
|
||||
G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int L,
|
||||
G4double E, G4int J=0);
|
||||
// Z: Atomic Number
|
||||
// A: Atomic Mass
|
||||
// A: Atomic Mass (nn + np +nlambda)
|
||||
// L: Number of Lmabda
|
||||
// J: Total Angular momentum (in unit of 1/2)
|
||||
// E: Excitaion energy
|
||||
|
||||
@@ -126,9 +131,10 @@ class G4IonTable
|
||||
static G4bool IsIon(G4ParticleDefinition*);
|
||||
// return true if the particle is ion
|
||||
|
||||
G4String GetIonName(G4int Z, G4int A, G4double E) const;
|
||||
const G4String& GetIonName(G4int Z, G4int A, G4double E) const;
|
||||
const G4String& GetIonName(G4int Z, G4int A, G4int L, G4double E) const;
|
||||
// get ion name
|
||||
|
||||
|
||||
static G4int GetNucleusEncoding(G4int Z, G4int A,
|
||||
G4double E=0.0, G4int J=0);
|
||||
// get PDG code for Ions
|
||||
@@ -138,20 +144,38 @@ class G4IonTable
|
||||
// I gives the isomer level, with I = 0 corresponding
|
||||
// to the ground state and I >0 to excitations
|
||||
//
|
||||
//!!! I = 1 is assigned fo all excitation states in Geant4
|
||||
|
||||
static G4int GetNucleusEncoding(G4int Z, G4int A, G4int L,
|
||||
G4double E=0.0, G4int J=0);
|
||||
// get PDG code for Hyper-Nucleus Ions
|
||||
// Nuclear codes are given as 10-digit numbers +-10LZZZAAAI.
|
||||
//For a nucleus consisting of np protons and nn neutrons
|
||||
// A = np + nn +nlambda and Z = np.
|
||||
// L = nlambda
|
||||
// I gives the isomer level, with I = 0 corresponding
|
||||
// to the ground state and I >0 to excitations
|
||||
//
|
||||
//!!! I = 1 is assigned fo all excitation states in Geant4
|
||||
|
||||
static G4bool GetNucleusByEncoding(G4int encoding,
|
||||
G4int &Z, G4int &A,
|
||||
G4double &E, G4int &J);
|
||||
//!!! Only ground states are supported now
|
||||
static G4bool GetNucleusByEncoding(G4int encoding,
|
||||
G4int &Z, G4int &A, G4int &L,
|
||||
G4double &E, G4int &J);
|
||||
//!!! Only ground states are supported now
|
||||
|
||||
G4double GetIonMass(G4int Z, G4int A) const;
|
||||
G4double GetNucleusMass(G4int Z, G4int A) const;
|
||||
|
||||
G4double GetIonMass(G4int Z, G4int A, G4int L=0) const;
|
||||
G4double GetNucleusMass(G4int Z, G4int A, G4int L=0) const;
|
||||
// These two methods returns Nucleus (i.e. full ionized atom) mass
|
||||
// ,where Z is Atomic Number (number of protons) and
|
||||
// A is Atomic Number (number of nucleons)
|
||||
// A is Atomic Number (number of nucleons and hyperons)
|
||||
// L is number of lambda (A= nn + np + nlambda)
|
||||
|
||||
|
||||
|
||||
|
||||
G4int Entries() const;
|
||||
// Return number of ions in the table
|
||||
|
||||
@@ -171,6 +195,8 @@ class G4IonTable
|
||||
|
||||
protected:
|
||||
G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4double E, G4int J);
|
||||
G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4int L,
|
||||
G4double E, G4int J);
|
||||
// Create Ion
|
||||
|
||||
G4IsotopeProperty* FindIsotope(G4int Z, G4int A, G4double E, G4int J);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Ions.hh,v 1.14 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4IsotopeProperty.hh,v 1.5 2007/03/15 06:53:27 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4KL3DecayChannel.hh,v 1.5 2006/06/29 19:23:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuonDecayChannel.hh,v 1.6 2006/06/29 19:23:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History:
|
||||
// 25 July 2007 P.Gumplinger
|
||||
// Samples Radiative Muon Decay
|
||||
// Reference:
|
||||
// TRIUMF/TWIST Technote:
|
||||
// "Radiative muon decay" by P. Depommier and A. Vacheret
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef G4MuonRadiativeDecayChannelWithSpin_h
|
||||
#define G4MuonRadiativeDecayChannelWithSpin_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4VDecayChannel.hh"
|
||||
|
||||
class G4MuonRadiativeDecayChannelWithSpin : public G4VDecayChannel
|
||||
{
|
||||
// Class Decription
|
||||
// This class describes radiative muon decay kinemtics, but
|
||||
// gives incorrect energy spectrum for neutrinos
|
||||
|
||||
public: // With Description
|
||||
|
||||
//Constructors
|
||||
G4MuonRadiativeDecayChannelWithSpin(const G4String& theParentName,
|
||||
G4double theBR);
|
||||
// Destructor
|
||||
virtual ~G4MuonRadiativeDecayChannelWithSpin();
|
||||
|
||||
public: // With Description
|
||||
|
||||
virtual G4DecayProducts *DecayIt(G4double);
|
||||
|
||||
void SetPolarization(G4ThreeVector);
|
||||
const G4ThreeVector& GetPolarization() const;
|
||||
|
||||
private:
|
||||
|
||||
G4ThreeVector parent_polarization;
|
||||
|
||||
G4double fron(G4double Pmu, G4double x, G4double y,
|
||||
G4double cthetaE, G4double cthetaG, G4double cthetaEG);
|
||||
|
||||
// rn3dim generates random vectors, uniformly distributed over the surface
|
||||
// of a sphere of given radius.
|
||||
// See http://wwwinfo.cern.ch/asdoc/shortwrupsdir/v131/top.html
|
||||
|
||||
void rn3dim(G4double& x, G4double& y, G4double& z, G4double xlong);
|
||||
|
||||
G4double atan4(G4double x, G4double y);
|
||||
|
||||
G4double EMMU;
|
||||
G4double EMASS;
|
||||
|
||||
};
|
||||
|
||||
inline void G4MuonRadiativeDecayChannelWithSpin::
|
||||
SetPolarization(G4ThreeVector polar)
|
||||
{
|
||||
parent_polarization = polar;
|
||||
}
|
||||
|
||||
inline const G4ThreeVector& G4MuonRadiativeDecayChannelWithSpin::
|
||||
GetPolarization() const
|
||||
{
|
||||
return parent_polarization;
|
||||
}
|
||||
|
||||
inline void G4MuonRadiativeDecayChannelWithSpin::rn3dim(G4double& x,
|
||||
G4double& y,
|
||||
G4double& z,
|
||||
G4double xlong)
|
||||
{
|
||||
G4double a = 0.; G4double b = 0.; G4double c = 0.; G4double r = 0.;
|
||||
|
||||
do {
|
||||
a = G4UniformRand() - 0.5;
|
||||
b = G4UniformRand() - 0.5;
|
||||
c = G4UniformRand() - 0.5;
|
||||
r = a*a + b*b + c*c;
|
||||
} while (r > 0.25);
|
||||
|
||||
G4double rinv = xlong/(std::sqrt(r));
|
||||
x = a * rinv;
|
||||
y = b * rinv;
|
||||
z = c * rinv;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
inline G4double G4MuonRadiativeDecayChannelWithSpin::atan4(G4double x,
|
||||
G4double y)
|
||||
{
|
||||
G4double phi = 0.;
|
||||
|
||||
G4double pi = 4.*std::atan(1.);
|
||||
|
||||
if (x==0. && y>0.){
|
||||
phi = 0.5*pi;
|
||||
} else if (x==0. && y<0.){
|
||||
phi = 1.5*pi;
|
||||
} else if (y==0. && x>0.){
|
||||
phi = 0.;
|
||||
} else if (y==0. && x<0.){
|
||||
phi = pi;
|
||||
} else if (x>0. ){
|
||||
phi = std::atan(y/x);
|
||||
} else if (x<0. ){
|
||||
phi = std::atan(y/x) + pi;
|
||||
}
|
||||
|
||||
return phi;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4NeutronBetaDecayChannel.hh,v 1.2 2006/06/29 19:23:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4NucleiProperties.hh,v 1.14 2006/06/29 19:23:54 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4NucleiPropertiesTable.hh,v 1.13 2006/06/29 19:23:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT 4 class file --- Copyright CERN 1997
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4NucleiPropertiesTheoreticalTable.hh,v 1.7 2006/06/29 19:23:58 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PDGCodeChecker.hh,v 1.8 2007/05/30 08:30:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4PDGCodeChecker.hh,v 1.9 2007/09/14 07:04:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -79,6 +79,7 @@ class G4PDGCodeChecker
|
||||
G4int CheckForDiQuarks();
|
||||
G4int CheckForMesons();
|
||||
G4int CheckForBaryons();
|
||||
G4int CheckForNuclei();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleDefinition.hh,v 1.31 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleDefinition.icc,v 1.12 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
|
||||
inline
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleMessenger.hh,v 1.7 2006/06/29 19:24:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleMomentum.hh,v 1.6 2006/06/29 19:24:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticlePropertyData.hh,v 1.3 2007/03/11 07:17:35 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticlePropertyMessenger.hh,v 1.7 2006/06/29 19:24:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ParticlePropertyTable.hh,v 1.4 2006/06/29 19:24:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleTable.hh,v 1.18 2006/06/29 19:24:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4ParticleTable.hh,v 1.19 2007/09/14 07:04:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -120,12 +120,20 @@ class G4ParticleTable
|
||||
G4ParticleDefinition* FindIon( G4int atomicNumber,
|
||||
G4int atomicMass,
|
||||
G4double excitationEnergy );
|
||||
G4ParticleDefinition* FindIon( G4int atomicNumber,
|
||||
G4int atomicMass,
|
||||
G4int numberOfLambda,
|
||||
G4double excitationEnergy );
|
||||
// return the pointer to an ion (returns 0 if the ion does not exist)
|
||||
// the ion has excitation energy nearest to given excitationEnergy (0: ground state)
|
||||
|
||||
G4ParticleDefinition* GetIon( G4int atomicNumber,
|
||||
G4int atomicMass,
|
||||
G4double excitationEnergy);
|
||||
G4ParticleDefinition* GetIon( G4int atomicNumber,
|
||||
G4int atomicMass,
|
||||
G4int numberOfLambda,
|
||||
G4double excitationEnergy);
|
||||
// return the pointer to an ion ( create ion if the ion does not exist)
|
||||
// It has excitation energy nearest to given excitationEnergy (0: ground state)
|
||||
|
||||
@@ -166,7 +174,7 @@ class G4ParticleTable
|
||||
|
||||
public: //With Description
|
||||
|
||||
const G4IonTable* GetIonTable();
|
||||
G4IonTable* GetIonTable();
|
||||
// return the pointer to G4IonTable object
|
||||
|
||||
const G4ShortLivedTable* GetShortLivedTable();
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleTable.icc,v 1.10 2006/06/29 19:24:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4ParticleTable.icc,v 1.11 2007/09/14 07:04:09 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -39,7 +39,7 @@ inline
|
||||
}
|
||||
|
||||
inline
|
||||
const G4IonTable* G4ParticleTable::GetIonTable()
|
||||
G4IonTable* G4ParticleTable::GetIonTable()
|
||||
{
|
||||
return fIonTable;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleTableIterator.hh,v 1.7 2006/06/29 19:24:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleWithCuts.hh,v 1.19 2006/06/29 19:24:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhaseSpaceDecayChannel.hh,v 1.6 2006/06/29 19:24:40 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History:
|
||||
// 30 July 2007 P.Gumplinger
|
||||
// Samples Radiative Pion Decay
|
||||
// Reference:
|
||||
// TRIUMF/PIENU Technote:
|
||||
// "Inclusion of pi->enug in the Monte Carlo"
|
||||
// by M. Blecher
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef G4PionRadiativeDecayChannel_h
|
||||
#define G4PionRadiativeDecayChannel_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4VDecayChannel.hh"
|
||||
|
||||
class G4PionRadiativeDecayChannel : public G4VDecayChannel
|
||||
{
|
||||
// Class Decription
|
||||
// This class describes radiative pion decay kinemtics, but
|
||||
// gives incorrect energy spectrum for neutrino
|
||||
|
||||
public: // With Description
|
||||
|
||||
//Constructors
|
||||
G4PionRadiativeDecayChannel(const G4String& theParentName,
|
||||
G4double theBR);
|
||||
// Destructor
|
||||
virtual ~G4PionRadiativeDecayChannel();
|
||||
|
||||
public: // With Description
|
||||
|
||||
virtual G4DecayProducts *DecayIt(G4double);
|
||||
|
||||
private:
|
||||
|
||||
G4double beta;
|
||||
|
||||
G4double cib;
|
||||
G4double csdp;
|
||||
G4double csdm;
|
||||
G4double cif;
|
||||
G4double cig;
|
||||
|
||||
G4double xl, yl, xu, yu, d2wmax;
|
||||
|
||||
G4double D2W(const G4double x, const G4double y);
|
||||
|
||||
};
|
||||
|
||||
inline G4double G4PionRadiativeDecayChannel::D2W(const G4double x,
|
||||
const G4double y)
|
||||
{
|
||||
G4double d2w = cib*(1.-y)*(1.+((1.-x)*(1.-x)))/((x*x)*(x+y-1.)) +
|
||||
csdp*(1.-x)*((x+y-1.)*(x+y-1.)) +
|
||||
csdm*(1.-x)*((1.-y)*(1.-y)) +
|
||||
cif*(x-1.)*(1.-y)/x +
|
||||
cig*(1.-y)*(1.-x+(x*x)/(x+y-1.))/x;
|
||||
return d2w;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PrimaryParticle.hh,v 1.4 2006/09/28 14:29:43 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PrimaryVertex.hh,v 1.4 2006/07/20 15:14:43 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ShortLivedTable.hh,v 1.12 2006/06/29 19:24:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4TauLeptonicDecayChannel.hh,v 1.2 2006/06/29 19:24:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VDecayChannel.hh,v 1.12 2006/06/29 19:24:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VIsotopeTable.hh,v 1.6 2006/06/29 19:24:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserPrimaryParticleInformation.hh,v 1.2 2006/06/29 19:24:54 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserPrimaryVertexInformation.hh,v 1.2 2006/06/29 19:24:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user