Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -23,207 +23,197 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4ParticlePropertyData
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History:
|
||||
// ---------------- G4ParticlePropertyData ----------------
|
||||
// first implementation by H Kurashige 9 June 2003
|
||||
// Add magnetic moment by H Kurashige Mar 2007
|
||||
// ------------------------------------------------------------
|
||||
// This class contains properties of a particle which are a subset
|
||||
// of properties in G4ParticleDefinition.
|
||||
// This class is used only for G4ParticlePropertyTable.
|
||||
|
||||
#ifndef G4ParticlePropertyData_h
|
||||
#define G4ParticlePropertyData_h 1
|
||||
// Author: H.Kurashige, 9 June 2003
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParticlePropertyData_hh
|
||||
#define G4ParticlePropertyData_hh 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
class G4ParticlePropertyTable;
|
||||
|
||||
class G4ParticlePropertyData
|
||||
{
|
||||
// Class Description
|
||||
// This class containes properties of a particle which are subset
|
||||
// of properties in G4ParticleDefinition class.
|
||||
// This class is used only for G4ParticlePropertyTable.
|
||||
//
|
||||
|
||||
friend class G4ParticlePropertyTable;
|
||||
friend class G4ParticlePropertyTable;
|
||||
|
||||
public: // With Description
|
||||
public:
|
||||
|
||||
G4ParticlePropertyData(const G4String& particleName = "");
|
||||
// The particle name should be assigned
|
||||
// This particle name can not be changed except for assignment operator
|
||||
G4ParticlePropertyData(const G4String& particleName = "");
|
||||
// The particle name should be assigned
|
||||
// The name cannot be changed except by assignment operator
|
||||
|
||||
G4ParticlePropertyData(const G4ParticlePropertyData &right);
|
||||
G4ParticlePropertyData(const G4ParticlePropertyData& right);
|
||||
|
||||
virtual ~G4ParticlePropertyData();
|
||||
virtual ~G4ParticlePropertyData();
|
||||
|
||||
G4ParticlePropertyData & operator=(const G4ParticlePropertyData &right);
|
||||
|
||||
G4bool operator==(const G4ParticlePropertyData &right) const;
|
||||
G4bool operator!=(const G4ParticlePropertyData &right) const;
|
||||
G4ParticlePropertyData& operator=(const G4ParticlePropertyData& right);
|
||||
|
||||
public: // With Description
|
||||
// By these following Getxxxx methods, you can get values
|
||||
// for members which can not be changed
|
||||
const G4String& GetParticleName() const { return theParticleName; }
|
||||
G4bool operator==(const G4ParticlePropertyData& right) const;
|
||||
G4bool operator!=(const G4ParticlePropertyData& right) const;
|
||||
|
||||
// With the following accessors, one can get values
|
||||
// for members which cannot be changed
|
||||
|
||||
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; }
|
||||
|
||||
G4int GetPDGiSpin() const { return thePDGiSpin; }
|
||||
G4int GetPDGiParity() const { return thePDGiParity; }
|
||||
G4int GetPDGiConjugation() const { return thePDGiConjugation; }
|
||||
G4int GetPDGiIsospin() const { return thePDGiIsospin; }
|
||||
G4int GetPDGiIsospin3() const { return thePDGiIsospin3; }
|
||||
G4int GetPDGiGParity() const { return thePDGiGParity; }
|
||||
G4int GetPDGiSpin() const { return thePDGiSpin; }
|
||||
G4int GetPDGiParity() const { return thePDGiParity; }
|
||||
G4int GetPDGiConjugation() const { return thePDGiConjugation; }
|
||||
G4int GetPDGiIsospin() const { return thePDGiIsospin; }
|
||||
G4int GetPDGiIsospin3() const { return thePDGiIsospin3; }
|
||||
G4int GetPDGiGParity() const { return thePDGiGParity; }
|
||||
|
||||
G4double GetPDGMagneticMoment() const { return thePDGMagneticMoment; }
|
||||
G4double GetPDGMagneticMoment() const { return thePDGMagneticMoment; }
|
||||
|
||||
G4int GetLeptonNumber() const { return theLeptonNumber; }
|
||||
G4int GetBaryonNumber() const { return theBaryonNumber; }
|
||||
G4int GetLeptonNumber() const { return theLeptonNumber; }
|
||||
G4int GetBaryonNumber() const { return theBaryonNumber; }
|
||||
|
||||
G4int GetPDGEncoding() const { return thePDGEncoding; }
|
||||
G4int GetAntiPDGEncoding() const { return theAntiPDGEncoding; }
|
||||
G4int GetPDGEncoding() const { return thePDGEncoding; }
|
||||
G4int GetAntiPDGEncoding() const { return theAntiPDGEncoding; }
|
||||
|
||||
G4int GetQuarkContent(G4int flavor) const;
|
||||
G4int GetAntiQuarkContent(G4int flavor) const;
|
||||
// return 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
|
||||
inline G4int GetQuarkContent(G4int flavor) const;
|
||||
inline G4int GetAntiQuarkContent(G4int flavor) const;
|
||||
// Return 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
|
||||
|
||||
G4double GetPDGLifeTime() const { return thePDGLifeTime; }
|
||||
G4double GetPDGLifeTime() const { return thePDGLifeTime; }
|
||||
|
||||
// SetXXX methods
|
||||
void SetPDGMass(G4double newMass);
|
||||
void SetPDGWidth(G4double newWidth);
|
||||
void SetPDGCharge(G4double newCharge);
|
||||
|
||||
void SetPDGiSpin(G4int newSpin);
|
||||
void SetPDGiParity(G4int newParity);
|
||||
void SetPDGiConjugation(G4int newConjugation);
|
||||
void SetPDGiIsospin(G4int newIsospin);
|
||||
void SetPDGiIsospin3(G4int newIsospin3);
|
||||
void SetPDGiGParity(G4int newGParity);
|
||||
// Modifiers
|
||||
|
||||
void SetPDGMagneticMoment(G4double mageticMoment);
|
||||
inline void SetPDGMass(G4double newMass);
|
||||
inline void SetPDGWidth(G4double newWidth);
|
||||
inline void SetPDGCharge(G4double newCharge);
|
||||
|
||||
void SetLeptonNumber(G4int newLeptonNumber);
|
||||
void SetBaryonNumber(G4int newBaryonNumber);
|
||||
|
||||
void SetPDGEncoding(G4int newEncoding);
|
||||
void SetAntiPDGEncoding(G4int newAntiEncoding);
|
||||
|
||||
void SetQuarkContent(G4int flavor, G4int newContent);
|
||||
void SetAntiQuarkContent(G4int flavor, G4int newContent);
|
||||
void SetPDGLifeTime(G4double newLifeTime);
|
||||
inline void SetPDGiSpin(G4int newSpin);
|
||||
inline void SetPDGiParity(G4int newParity);
|
||||
inline void SetPDGiConjugation(G4int newConjugation);
|
||||
inline void SetPDGiIsospin(G4int newIsospin);
|
||||
inline void SetPDGiIsospin3(G4int newIsospin3);
|
||||
inline void SetPDGiGParity(G4int newGParity);
|
||||
|
||||
public: // With Description
|
||||
void Print() const;
|
||||
// Prints information of data members.
|
||||
inline void SetPDGMagneticMoment(G4double magneticMoment);
|
||||
|
||||
inline void SetLeptonNumber(G4int newLeptonNumber);
|
||||
inline void SetBaryonNumber(G4int newBaryonNumber);
|
||||
|
||||
inline void SetPDGEncoding(G4int newEncoding);
|
||||
inline void SetAntiPDGEncoding(G4int newAntiEncoding);
|
||||
|
||||
inline void SetQuarkContent(G4int flavor, G4int newContent);
|
||||
inline void SetAntiQuarkContent(G4int flavor, G4int newContent);
|
||||
inline void SetPDGLifeTime(G4double newLifeTime);
|
||||
|
||||
public:
|
||||
void SetVerboseLevel(G4int value);
|
||||
G4int GetVerboseLevel() const;
|
||||
// controle flag for output message
|
||||
// 0: Silent
|
||||
// 1: Warning message
|
||||
// 2: More
|
||||
void Print() const;
|
||||
// Prints information of data members
|
||||
|
||||
inline void SetVerboseLevel(G4int value);
|
||||
inline G4int GetVerboseLevel() const;
|
||||
// Control flag for output message
|
||||
// 0: Silent
|
||||
// 1: Warning message
|
||||
// 2: More
|
||||
|
||||
private:
|
||||
G4String theParticleName;
|
||||
// The name of the particle.
|
||||
|
||||
G4double thePDGMass;
|
||||
// The mass of the particle, in units of equivalent energy.
|
||||
|
||||
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)
|
||||
|
||||
G4double thePDGCharge;
|
||||
// The charge of the particle.(in units of Coulomb)
|
||||
|
||||
// ---- following members are quantum number
|
||||
// i.e. discrete numbers can be allowded
|
||||
// So, you can defined only by using integer in constructor
|
||||
private:
|
||||
|
||||
G4int thePDGiSpin;
|
||||
// The total spin of the particle, also often denoted as
|
||||
// capital J, in units of 1/2.
|
||||
G4String theParticleName = "";
|
||||
// The name of the particle.
|
||||
|
||||
G4double thePDGMass = 0.0;
|
||||
// The mass of the particle, in units of equivalent energy.
|
||||
|
||||
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).
|
||||
|
||||
G4double thePDGCharge = 0.0;
|
||||
// The charge of the particle (in units of Coulomb).
|
||||
|
||||
// ---- following members are quantum number
|
||||
// i.e. discrete numbers can be allowed
|
||||
// So, you can define only by using integer in constructor
|
||||
|
||||
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.
|
||||
|
||||
G4int thePDGiConjugation;
|
||||
// This charge conjugation quantum number in units of 1.
|
||||
|
||||
G4int thePDGiGParity;
|
||||
// The value of the G-parity quantum number.
|
||||
|
||||
G4int thePDGiIsospin;
|
||||
G4int thePDGiIsospin3;
|
||||
// The isospin and its 3rd-component in units of 1/2.
|
||||
|
||||
G4double thePDGMagneticMoment;
|
||||
// The magnetic moment.
|
||||
G4int thePDGiSpin = 0;
|
||||
// The total spin of the particle, also often denoted as
|
||||
// capital J, in units of 1/2.
|
||||
|
||||
G4int theLeptonNumber;
|
||||
// The lepton quantum number.
|
||||
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 theBaryonNumber;
|
||||
// The baryon quantum number.
|
||||
G4int thePDGiConjugation = 0;
|
||||
// This charge conjugation quantum number in units of 1.
|
||||
|
||||
G4int thePDGEncoding;
|
||||
// The Particle Data Group integer identifier of this particle
|
||||
G4int thePDGiGParity = 0;
|
||||
// The value of the G-parity quantum number.
|
||||
|
||||
G4int theAntiPDGEncoding;
|
||||
// The Particle Data Group integer identifier of the anti-particle
|
||||
G4int thePDGiIsospin = 0;
|
||||
G4int thePDGiIsospin3 = 0;
|
||||
// The isospin and its 3rd-component in units of 1/2.
|
||||
|
||||
G4double thePDGLifeTime;
|
||||
// The Particle Life Time
|
||||
|
||||
enum {NumberOfQuarkFlavor = 6};
|
||||
G4int theQuarkContent[NumberOfQuarkFlavor];
|
||||
G4int theAntiQuarkContent[NumberOfQuarkFlavor];
|
||||
// the number of quark (minus Sign means anti-quark) contents
|
||||
G4double thePDGMagneticMoment = 0.0;
|
||||
// The magnetic moment.
|
||||
|
||||
private:
|
||||
G4bool fPDGMassModified;
|
||||
G4bool fPDGWidthModified;
|
||||
G4bool fPDGChargeModified;
|
||||
G4bool fPDGiSpinModified;
|
||||
G4bool fPDGiParityModified;
|
||||
G4bool fPDGiConjugationModified;
|
||||
G4bool fPDGiGParityModified;
|
||||
G4bool fPDGiIsospinModified;
|
||||
G4bool fPDGiIsospin3Modified;
|
||||
G4bool fPDGIsospinModified;
|
||||
G4bool fPDGIsospin3Modified;
|
||||
G4bool fPDGMagneticMomentModified;
|
||||
G4bool fLeptonNumberModified;
|
||||
G4bool fBaryonNumberModified;
|
||||
G4bool fPDGEncodingModified;
|
||||
G4bool fAntiPDGEncodingModified;
|
||||
G4bool fQuarkContentModified;
|
||||
G4bool fAntiQuarkContentModified;
|
||||
G4bool fPDGLifeTimeModified;
|
||||
G4int theLeptonNumber = 0;
|
||||
// The lepton quantum number.
|
||||
|
||||
G4int theBaryonNumber = 0;
|
||||
// The baryon quantum number.
|
||||
|
||||
G4int thePDGEncoding = 0;
|
||||
// The Particle Data Group integer identifier of this particle
|
||||
|
||||
G4int theAntiPDGEncoding = 0;
|
||||
// The Particle Data Group integer identifier of the anti-particle
|
||||
|
||||
G4double thePDGLifeTime = -1.0;
|
||||
// The Particle Life Time
|
||||
|
||||
enum { NumberOfQuarkFlavor = 6 };
|
||||
|
||||
private:
|
||||
G4int verboseLevel;
|
||||
G4int theQuarkContent[NumberOfQuarkFlavor];
|
||||
G4int theAntiQuarkContent[NumberOfQuarkFlavor];
|
||||
// The number of quark (minus Sign means anti-quark) contents
|
||||
|
||||
private:
|
||||
|
||||
G4bool fPDGMassModified = false;
|
||||
G4bool fPDGWidthModified = false;
|
||||
G4bool fPDGChargeModified = false;
|
||||
G4bool fPDGiSpinModified = false;
|
||||
G4bool fPDGiParityModified = false;
|
||||
G4bool fPDGiConjugationModified = false;
|
||||
G4bool fPDGiGParityModified = false;
|
||||
G4bool fPDGiIsospinModified = false;
|
||||
G4bool fPDGiIsospin3Modified = false;
|
||||
G4bool fPDGIsospinModified = false;
|
||||
G4bool fPDGIsospin3Modified = false;
|
||||
G4bool fPDGMagneticMomentModified = false;
|
||||
G4bool fLeptonNumberModified = false;
|
||||
G4bool fBaryonNumberModified = false;
|
||||
G4bool fPDGEncodingModified = false;
|
||||
G4bool fAntiPDGEncodingModified = false;
|
||||
G4bool fQuarkContentModified = false;
|
||||
G4bool fAntiQuarkContentModified = false;
|
||||
G4bool fPDGLifeTimeModified = false;
|
||||
|
||||
G4int verboseLevel = 1;
|
||||
};
|
||||
|
||||
#include "G4ParticlePropertyData.icc"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user