Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -23,36 +23,24 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4ParticleDefinition
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// ---------------- G4ParticleDefinition ----------------
|
||||
// first implementation by Makoto Asai - 29 January 1996
|
||||
// revised - G.Cosmo - 29 February 1996
|
||||
// revised - H.Kurashige - 19 April 1996
|
||||
// revised - H.Kurashige - 4 July 1996
|
||||
// added GetEnergyCuts() and GetLengthCuts() - G.Cosmo - 11 July 1996
|
||||
// added Set/GetVerboseLevel() - H.Kurashige - 11 November 1997
|
||||
// added SetCuts() and ResetCuts - H.Kurashige - 15 November 1996
|
||||
// change SetProcessManager as public - H.Kurashige - 06 June 1998
|
||||
// added GetEnergyThreshold - H.Kurashige - 08 June 1998
|
||||
// added ShortLived flag and ApplyCuts flag - H.Kurashige - 27 June 1998
|
||||
// fixed some improper codings - H.Kurashige - 08 April 1999
|
||||
// added sub-type - H.Kurashige - 15 February 2000
|
||||
// added RestoreCuts - H.Kurashige - 09 March 2001
|
||||
// restructuring for Cuts per Region - H.Kurashige - 11 March 2003
|
||||
// added MagneticMoment - H.Kurashige - March 2007
|
||||
// modified for thread-safety for MT - G.Cosmo, A.Dotti - January 2013
|
||||
// added support for MuonicAtom - K.L.Genser - September 2017
|
||||
// ------------------------------------------------------------
|
||||
// This class contains all the static data of a particle.
|
||||
// It uses the process manager in order to collect all the processes
|
||||
// this kind of particle can undertake.
|
||||
|
||||
#ifndef G4ParticleDefinition_h
|
||||
#define G4ParticleDefinition_h 1
|
||||
// Authors: G.Cosmo, 2 December 1995 - Design, based on object model
|
||||
// M.Asai, 29 January 1996 - First implementation
|
||||
// History:
|
||||
// - 1996-2003, H.Kurashige - Revisions
|
||||
// - 11.03.2003, H.Kurashige - Restructuring for Cuts per Region
|
||||
// - 25.01.2013, G.Cosmo, A.Dotti - Introduced thread-safety for MT
|
||||
// - 15.06.2017, K.L.Genser - Added support for MuonicAtom
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParticleDefinition_hh
|
||||
#define G4ParticleDefinition_hh 1
|
||||
|
||||
#include <vector>
|
||||
#include <CLHEP/Units/PhysicalConstants.h>
|
||||
@@ -66,315 +54,297 @@ class G4DecayTable;
|
||||
class G4ParticleTable;
|
||||
class G4ParticlePropertyTable;
|
||||
|
||||
//typedef G4PDefSplitter<G4PDefData> G4PDefManager;
|
||||
typedef G4PDefManager G4ParticleDefinitionSubInstanceManager;
|
||||
using G4ParticleDefinitionSubInstanceManager = G4PDefManager;
|
||||
|
||||
class G4ParticleDefinition
|
||||
{
|
||||
// Class Description:
|
||||
//
|
||||
// This class containes all the static data of a particle.
|
||||
// It also has uses a process manager in order to collect
|
||||
// all the processes this kind of particle can undertake.
|
||||
friend class G4ParticlePropertyTable;
|
||||
|
||||
friend class G4ParticlePropertyTable;
|
||||
public:
|
||||
|
||||
public: // With Description
|
||||
|
||||
// Only one type of constructor can be used for G4ParticleDefinition.
|
||||
// If you want to create new particle, you must set name of the particle
|
||||
// at construction. Most of members seen as arguments of the constructor
|
||||
// (except last 3 arguments concerning with decay ) are "constant"
|
||||
// and can not be changed later. (No "SET" methods are available)
|
||||
// Each type of particle must be constructed as a unique object
|
||||
// of special class derived from G4ParticleDefinition.
|
||||
// see G4ParticleTypes for detail
|
||||
// Only one type of constructor can be used for G4ParticleDefinition.
|
||||
// If you want to create new particle, you must set name of the particle
|
||||
// at construction. Most of members seen as arguments of the constructor
|
||||
// (except last 3 arguments concerning with decay ) are "constant"
|
||||
// and can not be changed later. (No "SET" methods are available)
|
||||
// Each type of particle must be constructed as a unique object
|
||||
// of special class derived from G4ParticleDefinition.
|
||||
// See G4ParticleTypes for detail
|
||||
|
||||
G4ParticleDefinition(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,
|
||||
G4bool shortlived = false,
|
||||
const G4String& subType ="",
|
||||
G4int anti_encoding =0,
|
||||
G4double magneticMoment = 0.0);
|
||||
G4ParticleDefinition(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,
|
||||
G4bool shortlived = false,
|
||||
const G4String& subType = "",
|
||||
G4int anti_encoding = 0,
|
||||
G4double magneticMoment = 0.0);
|
||||
|
||||
virtual ~G4ParticleDefinition();
|
||||
virtual ~G4ParticleDefinition();
|
||||
|
||||
// With the following Getxxxx methods, one can get values
|
||||
// for members which can not be changed
|
||||
G4ParticleDefinition(const G4ParticleDefinition&) = delete;
|
||||
G4ParticleDefinition& operator=(const G4ParticleDefinition &) = delete;
|
||||
// Can not use "copy constructor", equality nor "default constructor"!
|
||||
|
||||
G4bool operator==(const G4ParticleDefinition& right) const;
|
||||
G4bool operator!=(const G4ParticleDefinition& right) const;
|
||||
|
||||
// With the following Getxxxx methods, one can get values
|
||||
// for members which can not be changed
|
||||
|
||||
const G4String& GetParticleName() const { return theParticleName; }
|
||||
const G4String& GetParticleName() const { return theParticleName; }
|
||||
|
||||
G4double GetPDGMass() const { return thePDGMass; }
|
||||
G4double GetPDGWidth() const { return thePDGWidth; }
|
||||
G4double GetPDGCharge() const { return thePDGCharge; }
|
||||
G4double GetPDGMass() const { return thePDGMass; }
|
||||
G4double GetPDGWidth() const { return thePDGWidth; }
|
||||
G4double GetPDGCharge() const { return thePDGCharge; }
|
||||
|
||||
G4double GetPDGSpin() const { return thePDGSpin; }
|
||||
G4int GetPDGiSpin() const { return thePDGiSpin; }
|
||||
G4int GetPDGiParity() const { return thePDGiParity; }
|
||||
G4int GetPDGiConjugation() const { return thePDGiConjugation; }
|
||||
G4double GetPDGIsospin() const { return thePDGIsospin; }
|
||||
G4double GetPDGIsospin3() const { return thePDGIsospin3; }
|
||||
G4int GetPDGiIsospin() const { return thePDGiIsospin; }
|
||||
G4int GetPDGiIsospin3() const { return thePDGiIsospin3; }
|
||||
G4int GetPDGiGParity() const { return thePDGiGParity; }
|
||||
G4double GetPDGSpin() const { return thePDGSpin; }
|
||||
G4int GetPDGiSpin() const { return thePDGiSpin; }
|
||||
G4int GetPDGiParity() const { return thePDGiParity; }
|
||||
G4int GetPDGiConjugation() const { return thePDGiConjugation; }
|
||||
G4double GetPDGIsospin() const { return thePDGIsospin; }
|
||||
G4double GetPDGIsospin3() const { return thePDGIsospin3; }
|
||||
G4int GetPDGiIsospin() const { return thePDGiIsospin; }
|
||||
G4int GetPDGiIsospin3() const { return thePDGiIsospin3; }
|
||||
G4int GetPDGiGParity() const { return thePDGiGParity; }
|
||||
|
||||
G4double GetPDGMagneticMoment() const { return thePDGMagneticMoment; }
|
||||
void SetPDGMagneticMoment(G4double mageticMoment);
|
||||
G4double CalculateAnomaly() const;
|
||||
// Gives the anomaly of magnetic moment for spin 1/2 particles
|
||||
G4double GetPDGMagneticMoment() const { return thePDGMagneticMoment; }
|
||||
inline void SetPDGMagneticMoment(G4double mageticMoment);
|
||||
G4double CalculateAnomaly() const;
|
||||
// Gives the anomaly of magnetic moment for spin 1/2 particles
|
||||
|
||||
const G4String& GetParticleType() const { return theParticleType; }
|
||||
const G4String& GetParticleSubType() const { return theParticleSubType; }
|
||||
G4int GetLeptonNumber() const { return theLeptonNumber; }
|
||||
G4int GetBaryonNumber() const { return theBaryonNumber; }
|
||||
const G4String& GetParticleType() const { return theParticleType; }
|
||||
const G4String& GetParticleSubType() const { return theParticleSubType; }
|
||||
G4int GetLeptonNumber() const { return theLeptonNumber; }
|
||||
G4int GetBaryonNumber() const { return theBaryonNumber; }
|
||||
|
||||
G4int GetPDGEncoding() const { return thePDGEncoding; }
|
||||
G4int GetAntiPDGEncoding() const { return theAntiPDGEncoding; }
|
||||
void SetAntiPDGEncoding(G4int aEncoding);
|
||||
G4int GetPDGEncoding() const { return thePDGEncoding; }
|
||||
G4int GetAntiPDGEncoding() const { return theAntiPDGEncoding; }
|
||||
inline void SetAntiPDGEncoding(G4int aEncoding);
|
||||
|
||||
inline G4int GetQuarkContent(G4int flavor) const;
|
||||
inline G4int GetAntiQuarkContent(G4int flavor) const;
|
||||
// Returns the number of quark with flavor contained in this particle.
|
||||
// The value of flavor is assigned as follows
|
||||
// 1:d, 2:u, 3:s, 4:c, 5:b, 6:t
|
||||
|
||||
G4int GetQuarkContent(G4int flavor) const;
|
||||
G4int GetAntiQuarkContent(G4int flavor) const;
|
||||
// Returns the number of quark with flavor contained in this particle.
|
||||
// The value of flavor is assigned as follows
|
||||
// 1:d, 2:u, 3:s, 4:c, 5:b, 6:t
|
||||
|
||||
G4bool IsShortLived() const { return fShortLivedFlag; }
|
||||
G4bool IsShortLived() const { return fShortLivedFlag; }
|
||||
|
||||
G4bool GetPDGStable() const;
|
||||
void SetPDGStable(const G4bool aFlag) { thePDGStable=aFlag; }
|
||||
inline G4bool GetPDGStable() const;
|
||||
void SetPDGStable(const G4bool aFlag) { thePDGStable=aFlag; }
|
||||
|
||||
G4double GetPDGLifeTime() const;
|
||||
void SetPDGLifeTime(G4double aLifeTime) { thePDGLifeTime=aLifeTime; }
|
||||
inline G4double GetPDGLifeTime() const;
|
||||
void SetPDGLifeTime(G4double aLifeTime) { thePDGLifeTime=aLifeTime; }
|
||||
|
||||
G4double GetIonLifeTime() const;
|
||||
// Get life time of a generic ion through G4NuclideTable.
|
||||
inline G4double GetIonLifeTime() const;
|
||||
// Get life time of a generic ion through G4NuclideTable.
|
||||
|
||||
G4DecayTable* GetDecayTable() const;
|
||||
void SetDecayTable(G4DecayTable* aDecayTable);
|
||||
// Set/Get Decay Table
|
||||
// !! Decay Table can be modified !!
|
||||
inline G4DecayTable* GetDecayTable() const;
|
||||
inline void SetDecayTable(G4DecayTable* aDecayTable);
|
||||
// Set/Get Decay Table
|
||||
// !! Decay Table can be modified !!
|
||||
|
||||
G4ProcessManager* GetProcessManager() const;
|
||||
void SetProcessManager(G4ProcessManager* aProcessManager);
|
||||
// Set/Get Process Manager
|
||||
// !! Process Manager can be modified !!
|
||||
G4ProcessManager* GetProcessManager() const;
|
||||
void SetProcessManager(G4ProcessManager* aProcessManager);
|
||||
// Set/Get Process Manager
|
||||
// !! Process Manager can be modified !!
|
||||
|
||||
G4ParticleTable* GetParticleTable() const;
|
||||
// Get pointer to the particle table
|
||||
inline G4ParticleTable* GetParticleTable() const;
|
||||
// Get pointer to the particle table
|
||||
|
||||
G4int GetAtomicNumber() const;
|
||||
G4int GetAtomicMass() const;
|
||||
// Get AtomicNumber and AtomicMass
|
||||
// These properties are defined for nucleus
|
||||
inline G4int GetAtomicNumber() const;
|
||||
inline G4int GetAtomicMass() const;
|
||||
// Get AtomicNumber and AtomicMass
|
||||
// These properties are defined for nucleus
|
||||
|
||||
void DumpTable() const;
|
||||
// Prints information of data members.
|
||||
void DumpTable() const;
|
||||
// Prints information of data members.
|
||||
|
||||
void SetVerboseLevel(G4int value);
|
||||
G4int GetVerboseLevel() const;
|
||||
// controle flag for output message
|
||||
// 0: Silent
|
||||
// 1: Warning message
|
||||
// 2: More
|
||||
inline void SetVerboseLevel(G4int value);
|
||||
inline G4int GetVerboseLevel() const;
|
||||
// Control flag for output message
|
||||
// 0: Silent
|
||||
// 1: Warning message
|
||||
// 2: More
|
||||
|
||||
void SetApplyCutsFlag(G4bool);
|
||||
G4bool GetApplyCutsFlag() const;
|
||||
void SetApplyCutsFlag(G4bool);
|
||||
inline G4bool GetApplyCutsFlag() const;
|
||||
|
||||
G4bool IsGeneralIon() const;
|
||||
// true only if the particle is G4Ions
|
||||
inline G4bool IsGeneralIon() const;
|
||||
// True only if the particle is G4Ions
|
||||
// (it means that theProcessManager is same as one for G4GenricIon)
|
||||
|
||||
G4bool IsMuonicAtom() const;
|
||||
// true only if the particle is a G4MuonicAtom
|
||||
// (it means that theProcessManager is same as the one for G4GenricMuonicAtom)
|
||||
inline G4bool IsMuonicAtom() const;
|
||||
// True only if the particle is a G4MuonicAtom
|
||||
// (it means that theProcessManager is same as the one for G4MuonicAtom)
|
||||
|
||||
G4bool operator==(const G4ParticleDefinition &right) const;
|
||||
G4bool operator!=(const G4ParticleDefinition &right) const;
|
||||
|
||||
public : // without description
|
||||
|
||||
inline G4ProcessManager* GetMasterProcessManager() const;
|
||||
inline G4ProcessManager* GetMasterProcessManager() const;
|
||||
// Returns the process manager master pointer.
|
||||
inline void SetMasterProcessManager(G4ProcessManager* aNewPM);
|
||||
inline void SetMasterProcessManager(G4ProcessManager* aNewPM);
|
||||
// Sets the shadow master pointer (not to be used by user)
|
||||
|
||||
inline G4int GetInstanceID() const;
|
||||
// Returns the instance ID.
|
||||
inline G4int GetInstanceID() const;
|
||||
// Returns the instance ID
|
||||
|
||||
static const G4PDefManager& GetSubInstanceManager();
|
||||
// Returns the private data instance manager.
|
||||
static const G4PDefManager& GetSubInstanceManager();
|
||||
// Returns the private data instance manager
|
||||
|
||||
static void Clean();
|
||||
// Clear memory allocated by sub-instance manager.
|
||||
static void Clean();
|
||||
// Clear memory allocated by sub-instance manager
|
||||
|
||||
private:
|
||||
// --- Shadow of master pointers.
|
||||
|
||||
G4ProcessManager *theProcessManagerShadow;
|
||||
// Each worker thread can access this field from the master thread
|
||||
// through this pointer.
|
||||
|
||||
G4int g4particleDefinitionInstanceID;
|
||||
// This field is used as instance ID.
|
||||
|
||||
G4PART_DLL static G4PDefManager subInstanceManager;
|
||||
// This field helps to use the class G4PDefManager introduced above.
|
||||
void SetParticleDefinitionID(G4int id=-1);
|
||||
inline G4int GetParticleDefinitionID() const;
|
||||
|
||||
protected:
|
||||
|
||||
G4int FillQuarkContents();
|
||||
// Calculates quark and anti-quark contents
|
||||
// return value is PDG encoding for this particle.
|
||||
// It means error if the return value is deffernt from
|
||||
// this->thePDGEncoding.
|
||||
G4ParticleDefinition();
|
||||
// Cannot be used
|
||||
|
||||
void SetParticleSubType(const G4String& subtype);
|
||||
G4int FillQuarkContents();
|
||||
// Calculates quark and anti-quark contents
|
||||
// return value is the PDG encoding for this particle.
|
||||
// It means error if the return value is different from
|
||||
// this->thePDGEncoding.
|
||||
|
||||
void SetAtomicNumber(G4int );
|
||||
void SetAtomicMass(G4int );
|
||||
inline void SetParticleSubType(const G4String& subtype);
|
||||
|
||||
// !!! can not use "copy constructor" nor "default constructor" !!!!
|
||||
//
|
||||
G4ParticleDefinition(const G4ParticleDefinition &right);
|
||||
G4ParticleDefinition();
|
||||
inline void SetAtomicNumber(G4int);
|
||||
inline void SetAtomicMass(G4int);
|
||||
|
||||
private:
|
||||
enum { NumberOfQuarkFlavor = 6 };
|
||||
|
||||
// !!! Assignment operation is forbidden !!!
|
||||
//
|
||||
const G4ParticleDefinition & operator=(const G4ParticleDefinition &r);
|
||||
|
||||
protected:
|
||||
|
||||
enum {NumberOfQuarkFlavor = 6};
|
||||
G4int theQuarkContent[NumberOfQuarkFlavor];
|
||||
G4int theAntiQuarkContent[NumberOfQuarkFlavor];
|
||||
G4int theQuarkContent[NumberOfQuarkFlavor];
|
||||
G4int theAntiQuarkContent[NumberOfQuarkFlavor];
|
||||
// the number of quark (minus Sign means anti-quark) contents
|
||||
// The value of flavor is assigned as follows
|
||||
// 0:d, 1:u, 2:s, 3:c, 4:b, 5:t
|
||||
|
||||
protected:
|
||||
|
||||
G4bool isGeneralIon = false;
|
||||
G4bool isMuonicAtom = false;
|
||||
|
||||
private:
|
||||
|
||||
// --- Following values can not be changed
|
||||
// --- i.e. No Setxxxx Methods for them
|
||||
// --- Shadow of master pointers
|
||||
|
||||
G4String theParticleName;
|
||||
// The name of the particle.
|
||||
// Each object must have its specific name!!
|
||||
G4ProcessManager* theProcessManagerShadow = nullptr;
|
||||
// Each worker thread can access this field from the master thread
|
||||
// through this pointer.
|
||||
|
||||
// --- Following member values must be defined with Units
|
||||
G4int g4particleDefinitionInstanceID = 0;
|
||||
// This field is used as instance ID.
|
||||
|
||||
G4double thePDGMass;
|
||||
// The mass of the particle, in units of equivalent energy.
|
||||
G4PART_DLL static G4PDefManager subInstanceManager;
|
||||
// This field helps to use the class G4PDefManager introduced above.
|
||||
|
||||
G4double thePDGWidth;
|
||||
// The decay width of the particle, usually the width of a
|
||||
// Breit-Wigner function, assuming that you are near the
|
||||
// mass center anyway. (in units of equivalent energy)
|
||||
// --- Following values can not be changed
|
||||
// --- i.e. No Setxxxx Methods for them
|
||||
|
||||
G4double thePDGCharge;
|
||||
// The charge of the particle.(in units of Coulomb)
|
||||
G4String theParticleName = "";
|
||||
// The name of the particle.
|
||||
// Each object must have its specific name!!
|
||||
|
||||
// --- Following members are quantum number
|
||||
// i.e. discrete numbers can be allowded
|
||||
// So, you can defined only by using integer in constructor
|
||||
// --- Following member values must be defined with Units
|
||||
|
||||
G4int thePDGiSpin;
|
||||
// The total spin of the particle, also often denoted as
|
||||
// capital J, in units of 1/2.
|
||||
G4double thePDGSpin;
|
||||
// The total spin of the particle, in units of 1.
|
||||
G4double thePDGMass = 0.0;
|
||||
// The mass of the particle, in units of equivalent energy.
|
||||
|
||||
G4int thePDGiParity;
|
||||
// The parity quantum number, in units of 1. If the parity
|
||||
// is not defined for this particle, we will set this to 0.
|
||||
G4double thePDGWidth = 0.0;
|
||||
// The decay width of the particle, usually the width of a
|
||||
// Breit-Wigner function, assuming that you are near the
|
||||
// mass center anyway. (in units of equivalent energy)
|
||||
|
||||
G4int thePDGiConjugation;
|
||||
// This charge conjugation quantum number in units of 1.
|
||||
G4double thePDGCharge = 0.0;
|
||||
// The charge of the particle.(in units of Coulomb)
|
||||
|
||||
G4int thePDGiGParity;
|
||||
// The value of the G-parity quantum number.
|
||||
// --- Following members are quantum number
|
||||
// i.e. discrete numbers can be allowed
|
||||
// So, you can define them only by using integer in constructor
|
||||
|
||||
G4int thePDGiIsospin;
|
||||
G4int thePDGiIsospin3;
|
||||
// The isospin and its 3rd-component in units of 1/2.
|
||||
G4double thePDGIsospin;
|
||||
G4double thePDGIsospin3;
|
||||
// The isospin quantum number in units of 1.
|
||||
G4int thePDGiSpin = 0;
|
||||
// The total spin of the particle, also often denoted as
|
||||
// capital J, in units of 1/2.
|
||||
G4double thePDGSpin = 0.0;
|
||||
// The total spin of the particle, in units of 1.
|
||||
|
||||
G4int thePDGiParity = 0;
|
||||
// The parity quantum number, in units of 1. If the parity
|
||||
// is not defined for this particle, we will set this to 0.
|
||||
|
||||
G4int thePDGiConjugation = 0;
|
||||
// This charge conjugation quantum number in units of 1.
|
||||
|
||||
G4int thePDGiGParity = 0;
|
||||
// The value of the G-parity quantum number.
|
||||
|
||||
G4int thePDGiIsospin = 0;
|
||||
G4int thePDGiIsospin3 = 0;
|
||||
// The isospin and its 3rd-component in units of 1/2.
|
||||
G4double thePDGIsospin = 0.0;
|
||||
G4double thePDGIsospin3 = 0.0;
|
||||
// The isospin quantum number in units of 1.
|
||||
|
||||
G4double thePDGMagneticMoment;
|
||||
// The magnetic moment.
|
||||
G4double thePDGMagneticMoment = 0.0;
|
||||
// The magnetic moment.
|
||||
|
||||
G4int theLeptonNumber;
|
||||
// The lepton quantum number.
|
||||
G4int theLeptonNumber = 0;
|
||||
// The lepton quantum number.
|
||||
|
||||
G4int theBaryonNumber;
|
||||
// The baryon quantum number.
|
||||
G4int theBaryonNumber = 0;
|
||||
// The baryon quantum number.
|
||||
|
||||
G4String theParticleType;
|
||||
// More general textual type description of the particle.
|
||||
G4String theParticleType = "";
|
||||
// More general textual type description of the particle.
|
||||
|
||||
G4String theParticleSubType;
|
||||
G4String theParticleSubType = "";
|
||||
// Textual type description of the particle
|
||||
// eg. pion, lamda etc.
|
||||
|
||||
G4int thePDGEncoding;
|
||||
// The Particle Data Group integer identifier of this particle
|
||||
G4int thePDGEncoding = 0;
|
||||
// The Particle Data Group integer identifier of this particle
|
||||
|
||||
G4int theAntiPDGEncoding;
|
||||
// The Particle Data Group integer identifier of the anti-particle
|
||||
G4int theAntiPDGEncoding = 0;
|
||||
// The Particle Data Group integer identifier of the anti-particle
|
||||
|
||||
// --- Following members can be changed after construction
|
||||
// --- Following members can be changed after construction
|
||||
|
||||
G4bool fShortLivedFlag;
|
||||
// Particles which have true value of this flag
|
||||
// will not be tracked by TrackingManager
|
||||
G4bool fShortLivedFlag = false;
|
||||
// Particles which have true value of this flag
|
||||
// will not be tracked by TrackingManager
|
||||
|
||||
G4bool thePDGStable;
|
||||
// Is an indicator that this particle is stable. It must
|
||||
// not decay. If the user tries to assign a kind of decay
|
||||
// object to it, it will refuse to take it.
|
||||
G4bool thePDGStable = false;
|
||||
// Is an indicator that this particle is stable. It must
|
||||
// not decay. If the user tries to assign a kind of decay
|
||||
// object to it, it will refuse to take it.
|
||||
|
||||
G4double thePDGLifeTime;
|
||||
// Is related to the decay width of the particle. The mean
|
||||
// life time is given in seconds.
|
||||
G4double thePDGLifeTime = 0.0;
|
||||
// Is related to the decay width of the particle. The mean
|
||||
// life time is given in seconds.
|
||||
|
||||
G4DecayTable *theDecayTable;
|
||||
// Points DecayTable
|
||||
G4DecayTable* theDecayTable = nullptr;
|
||||
// Points DecayTable
|
||||
|
||||
private:
|
||||
G4ParticleTable* theParticleTable = nullptr;
|
||||
|
||||
G4ParticleTable* theParticleTable;
|
||||
|
||||
G4int theAtomicNumber;
|
||||
G4int theAtomicMass;
|
||||
G4int theAtomicNumber = 0;
|
||||
G4int theAtomicMass = 0;
|
||||
|
||||
G4int verboseLevel;
|
||||
G4bool fApplyCutsFlag;
|
||||
|
||||
protected:
|
||||
G4bool isGeneralIon;
|
||||
G4bool isMuonicAtom;
|
||||
|
||||
public:
|
||||
void SetParticleDefinitionID(G4int id=-1);
|
||||
G4int GetParticleDefinitionID() const;
|
||||
G4int verboseLevel = 1;
|
||||
G4bool fApplyCutsFlag = false;
|
||||
};
|
||||
|
||||
#include "G4ParticleDefinition.icc"
|
||||
|
||||
Reference in New Issue
Block a user