Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -23,9 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -33,21 +30,16 @@
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef G4DiQuarks_h
|
||||
#define G4DiQuarks_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VShortLivedParticle.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### DiQuarks ###
|
||||
// ######################################################################
|
||||
#include "globals.hh"
|
||||
|
||||
class G4DiQuarks : public G4VShortLivedParticle
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// clang-format off
|
||||
G4DiQuarks(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -59,14 +51,8 @@ class G4DiQuarks : public G4VShortLivedParticle
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
~G4DiQuarks() override = default;
|
||||
// clang-format on
|
||||
~G4DiQuarks() override = default;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -36,64 +33,48 @@
|
||||
#define G4ExcitedBaryonConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
class G4DecayTable;
|
||||
class G4DecayTable;
|
||||
|
||||
class G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
|
||||
public:
|
||||
G4ExcitedBaryonConstructor(G4int nStates = 0, G4int isoSpin=0);
|
||||
virtual ~G4ExcitedBaryonConstructor() = default;
|
||||
|
||||
public:
|
||||
virtual void Construct(G4int indexOfState = -1);
|
||||
|
||||
G4ExcitedBaryonConstructor(G4int nStates = 0, G4int isoSpin = 0);
|
||||
virtual ~G4ExcitedBaryonConstructor() = default;
|
||||
|
||||
virtual void Construct(G4int indexOfState = -1);
|
||||
|
||||
protected:
|
||||
virtual void ConstructParticle(G4int indexOfState);
|
||||
virtual void ConstructAntiParticle(G4int indexOfState);
|
||||
|
||||
|
||||
virtual G4double GetCharge(G4int iIsoSpin3);
|
||||
virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState);
|
||||
virtual void ConstructParticle(G4int indexOfState);
|
||||
virtual void ConstructAntiParticle(G4int indexOfState);
|
||||
|
||||
virtual G4double GetCharge(G4int iIsoSpin3);
|
||||
virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState);
|
||||
|
||||
// following methods are pure virtual
|
||||
// thes methods should be implemented in derived classes
|
||||
virtual G4bool Exist(G4int) = 0;
|
||||
virtual G4int GetQuarkContents(G4int, G4int) = 0;
|
||||
virtual G4String GetName(G4int, G4int) = 0;
|
||||
virtual G4String GetMultipletName(G4int) = 0;
|
||||
virtual G4double GetMass(G4int state, G4int iso) = 0;
|
||||
virtual G4double GetWidth(G4int state, G4int iso) = 0;
|
||||
virtual G4int GetiSpin(G4int) = 0;
|
||||
virtual G4int GetiParity(G4int) = 0;
|
||||
virtual G4int GetEncodingOffset(G4int) = 0;
|
||||
virtual G4DecayTable* CreateDecayTable(const G4String&, G4int, G4int, G4bool) = 0;
|
||||
|
||||
protected:
|
||||
G4int NumberOfStates;
|
||||
G4int iIsoSpin;
|
||||
|
||||
const G4String type;
|
||||
const G4int iConjugation{0};
|
||||
const G4int iGParity{0};
|
||||
const G4int leptonNumber{0};
|
||||
const G4int baryonNumber{1};
|
||||
|
||||
// following methods are pure virtual
|
||||
// thes methods should be implemented in derived classes
|
||||
virtual G4bool Exist( G4int ) = 0;
|
||||
virtual G4int GetQuarkContents(G4int, G4int)=0;
|
||||
virtual G4String GetName(G4int, G4int )=0;
|
||||
virtual G4String GetMultipletName(G4int)=0;
|
||||
virtual G4double GetMass( G4int state, G4int iso)=0;
|
||||
virtual G4double GetWidth( G4int state, G4int iso)=0;
|
||||
virtual G4int GetiSpin( G4int )=0;
|
||||
virtual G4int GetiParity( G4int )=0;
|
||||
virtual G4int GetEncodingOffset( G4int )=0;
|
||||
virtual G4DecayTable* CreateDecayTable(const G4String&,
|
||||
G4int , G4int, G4bool)=0;
|
||||
const G4int iConjugation{0};
|
||||
const G4int iGParity{0};
|
||||
const G4int leptonNumber{0};
|
||||
const G4int baryonNumber{1};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -33,21 +30,16 @@
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef G4ExcitedBaryons_h
|
||||
#define G4ExcitedBaryons_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VShortLivedParticle.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ExcitedBaryons ###
|
||||
// ######################################################################
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedBaryons : public G4VShortLivedParticle
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// clang-format off
|
||||
G4ExcitedBaryons(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -59,20 +51,14 @@ class G4ExcitedBaryons : public G4VShortLivedParticle
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
~G4ExcitedBaryons() override = default;
|
||||
void SetMultipletName(const G4String& name);
|
||||
// clang-format on
|
||||
~G4ExcitedBaryons() override = default;
|
||||
void SetMultipletName(const G4String& name);
|
||||
};
|
||||
|
||||
inline
|
||||
void G4ExcitedBaryons::SetMultipletName(const G4String& name)
|
||||
inline void G4ExcitedBaryons::SetMultipletName(const G4String& name)
|
||||
{
|
||||
SetParticleSubType(name);
|
||||
SetParticleSubType(name);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -35,167 +32,169 @@
|
||||
#ifndef G4ExcitedDeltaConstructor_h
|
||||
#define G4ExcitedDeltaConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ExcitedBaryonConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedDeltaConstructor: public G4ExcitedBaryonConstructor
|
||||
class G4ExcitedDeltaConstructor : public G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NStates = 9
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 5
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedDeltaConstructor();
|
||||
~G4ExcitedDeltaConstructor() override = default;
|
||||
~G4ExcitedDeltaConstructor() override = default;
|
||||
|
||||
protected:
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState) override;
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState) override;
|
||||
|
||||
protected:
|
||||
G4bool Exist( G4int ) override{return true;}
|
||||
G4bool Exist(G4int) override { return true; }
|
||||
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
|
||||
G4double GetMass( G4int state, G4int iso) override;
|
||||
G4double GetWidth( G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
G4double GetMass(G4int state, G4int iso) override;
|
||||
G4double GetWidth(G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String& name,
|
||||
G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
private:
|
||||
G4DecayTable* AddNGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNRhoMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddDeltaPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NStates = 9 };
|
||||
private:
|
||||
enum { DeltaIsoSpin = 3 };
|
||||
G4DecayTable* CreateDecayTable(const G4String& name, G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
|
||||
private:
|
||||
static const char* name[ NStates ];
|
||||
static const G4double mass[ NStates ];
|
||||
static const G4double width[ NStates ];
|
||||
static const G4int iSpin[ NStates ];
|
||||
static const G4int iParity[ NStates ];
|
||||
static const G4int encodingOffset[ NStates ];
|
||||
G4DecayTable* AddNGammaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddDeltaPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 5};
|
||||
private:
|
||||
enum { NGamma=0, NPi=1, NRho=2, DeltaPi=3, NStarPi=4 };
|
||||
private:
|
||||
static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
||||
enum
|
||||
{
|
||||
DeltaIsoSpin = 3
|
||||
};
|
||||
|
||||
static const char* name[NStates];
|
||||
static const G4double mass[NStates];
|
||||
static const G4double width[NStates];
|
||||
static const G4int iSpin[NStates];
|
||||
static const G4int iParity[NStates];
|
||||
static const G4int encodingOffset[NStates];
|
||||
|
||||
enum
|
||||
{
|
||||
NGamma = 0,
|
||||
NPi = 1,
|
||||
NRho = 2,
|
||||
DeltaPi = 3,
|
||||
NStarPi = 4
|
||||
};
|
||||
|
||||
static const G4double bRatio[NStates][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
inline
|
||||
G4double G4ExcitedDeltaConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
inline G4double G4ExcitedDeltaConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ExcitedDeltaConstructor::GetWidth(G4int iState, G4int)
|
||||
inline G4double G4ExcitedDeltaConstructor::GetWidth(G4int iState, G4int)
|
||||
{
|
||||
return width[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedDeltaConstructor::GetiSpin(G4int iState)
|
||||
inline G4int G4ExcitedDeltaConstructor::GetiSpin(G4int iState)
|
||||
{
|
||||
return iSpin[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedDeltaConstructor::GetiParity(G4int iState)
|
||||
inline G4int G4ExcitedDeltaConstructor::GetiParity(G4int iState)
|
||||
{
|
||||
return iParity[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedDeltaConstructor::GetEncodingOffset(G4int iState)
|
||||
inline G4int G4ExcitedDeltaConstructor::GetEncodingOffset(G4int iState)
|
||||
{
|
||||
return encodingOffset[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedDeltaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
inline G4int G4ExcitedDeltaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
{
|
||||
// Quark contents
|
||||
// iIso3 = +3 : uuu
|
||||
// iIso3 = +1 : uud
|
||||
// iIso3 = -1 : udd
|
||||
// iIso3 = -3 : ddd
|
||||
G4int quark=0;
|
||||
if ( iQ == 0 ){
|
||||
if ( iIso3 == -3 ){
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
} else if ( iQ == 2 ){
|
||||
if ( iIso3 == +3 ){
|
||||
// u-quark
|
||||
quark = 2;
|
||||
} else {
|
||||
// d-quark
|
||||
G4int quark = 0;
|
||||
if (iQ == 0) {
|
||||
if (iIso3 == -3) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
}
|
||||
} else {
|
||||
if (( iIso3 == -1 )||( iIso3 == -3 )) {
|
||||
// d-quark
|
||||
else {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
}
|
||||
else if (iQ == 2) {
|
||||
if (iIso3 == +3) {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
else {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else {
|
||||
// u-quark
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((iIso3 == -1) || (iIso3 == -3)) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
}
|
||||
else {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
}
|
||||
return quark;
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedDeltaConstructor::GetMultipletName(G4int iState)
|
||||
inline G4String G4ExcitedDeltaConstructor::GetMultipletName(G4int iState)
|
||||
{
|
||||
return name[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedDeltaConstructor::GetName(G4int iIso3, G4int iState)
|
||||
inline G4String G4ExcitedDeltaConstructor::GetName(G4int iIso3, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
if ( iIso3 == -3 ){
|
||||
if (iIso3 == -3) {
|
||||
particle += "-";
|
||||
} else if ( iIso3 == -1 ){
|
||||
}
|
||||
else if (iIso3 == -1) {
|
||||
particle += "0";
|
||||
} else if ( iIso3 == +1 ){
|
||||
}
|
||||
else if (iIso3 == +1) {
|
||||
particle += "+";
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
particle += "++";
|
||||
}
|
||||
return particle;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -35,139 +32,137 @@
|
||||
#ifndef G4ExcitedLambdaConstructor_h
|
||||
#define G4ExcitedLambdaConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ExcitedBaryonConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedLambdaConstructor: public G4ExcitedBaryonConstructor
|
||||
class G4ExcitedLambdaConstructor : public G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NStates = 12
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 7
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedLambdaConstructor();
|
||||
~G4ExcitedLambdaConstructor() override = default;
|
||||
~G4ExcitedLambdaConstructor() override = default;
|
||||
|
||||
protected:
|
||||
G4bool Exist( G4int ) override{return true;}
|
||||
protected:
|
||||
G4bool Exist(G4int) override { return true; }
|
||||
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass( G4int state, G4int iso) override;
|
||||
G4double GetWidth( G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass(G4int state, G4int iso) override;
|
||||
G4double GetWidth(G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String& name,
|
||||
G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
private:
|
||||
G4DecayTable* AddNKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNKStarMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaOmegaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NStates = 12 };
|
||||
private:
|
||||
enum { LambdaIsoSpin = 0 };
|
||||
G4DecayTable* CreateDecayTable(const G4String& name, G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
|
||||
private:
|
||||
static const char* name[ NStates ];
|
||||
static const G4double mass[ NStates ];
|
||||
static const G4double width[ NStates ];
|
||||
static const G4int iSpin[ NStates ];
|
||||
static const G4int iParity[ NStates ];
|
||||
static const G4int encodingOffset[ NStates ];
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 7 };
|
||||
G4DecayTable* AddNKMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNKStarMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddSigmaPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaGammaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaEtaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaOmegaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
|
||||
private:
|
||||
enum { NK=0, NKStar=1, SigmaPi=2, SigmaStarPi=3, LambdaGamma=4,
|
||||
LambdaEta=5, LambdaOmega=6 };
|
||||
private:
|
||||
static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
||||
enum
|
||||
{
|
||||
LambdaIsoSpin = 0
|
||||
};
|
||||
|
||||
static const char* name[NStates];
|
||||
static const G4double mass[NStates];
|
||||
static const G4double width[NStates];
|
||||
static const G4int iSpin[NStates];
|
||||
static const G4int iParity[NStates];
|
||||
static const G4int encodingOffset[NStates];
|
||||
|
||||
enum
|
||||
{
|
||||
NK = 0,
|
||||
NKStar = 1,
|
||||
SigmaPi = 2,
|
||||
SigmaStarPi = 3,
|
||||
LambdaGamma = 4,
|
||||
LambdaEta = 5,
|
||||
LambdaOmega = 6
|
||||
};
|
||||
|
||||
static const G4double bRatio[NStates][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
inline
|
||||
G4double G4ExcitedLambdaConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
inline G4double G4ExcitedLambdaConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ExcitedLambdaConstructor::GetWidth(G4int iState, G4int)
|
||||
inline G4double G4ExcitedLambdaConstructor::GetWidth(G4int iState, G4int)
|
||||
{
|
||||
return width[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedLambdaConstructor::GetiSpin(G4int iState)
|
||||
inline G4int G4ExcitedLambdaConstructor::GetiSpin(G4int iState)
|
||||
{
|
||||
return iSpin[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedLambdaConstructor::GetiParity(G4int iState)
|
||||
inline G4int G4ExcitedLambdaConstructor::GetiParity(G4int iState)
|
||||
{
|
||||
return iParity[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedLambdaConstructor::GetEncodingOffset(G4int iState)
|
||||
inline G4int G4ExcitedLambdaConstructor::GetEncodingOffset(G4int iState)
|
||||
{
|
||||
return encodingOffset[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedLambdaConstructor::GetQuarkContents(G4int iQ, G4int )
|
||||
inline G4int G4ExcitedLambdaConstructor::GetQuarkContents(G4int iQ, G4int)
|
||||
{
|
||||
G4int quark=0;
|
||||
if ( iQ == 0 ){
|
||||
G4int quark = 0;
|
||||
if (iQ == 0) {
|
||||
// s-quark
|
||||
quark = 3;
|
||||
} else if ( iQ == 1 ){
|
||||
}
|
||||
else if (iQ == 1) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else if ( iQ == 2 ){
|
||||
}
|
||||
else if (iQ == 2) {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
}
|
||||
return quark;
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedLambdaConstructor::GetMultipletName(G4int iState)
|
||||
inline G4String G4ExcitedLambdaConstructor::GetMultipletName(G4int iState)
|
||||
{
|
||||
return name[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedLambdaConstructor::GetName(G4int , G4int iState)
|
||||
inline G4String G4ExcitedLambdaConstructor::GetName(G4int, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
return particle;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,17 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// This code plementation is the intellectual property of
|
||||
// the 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.
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -42,165 +33,208 @@
|
||||
#define G4ExcitedMesonConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
class G4DecayTable;
|
||||
class G4DecayTable;
|
||||
|
||||
class G4ExcitedMesonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
{
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NMultiplets = 10
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NMesonTypes = 5
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 19
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedMesonConstructor(G4int nStates = 0, G4int isoSpin=0);
|
||||
virtual ~G4ExcitedMesonConstructor() = default;
|
||||
|
||||
public:
|
||||
virtual void Construct(G4int indexOfState = -1);
|
||||
|
||||
G4ExcitedMesonConstructor(G4int nStates = 0, G4int isoSpin = 0);
|
||||
virtual ~G4ExcitedMesonConstructor() = default;
|
||||
|
||||
virtual void Construct(G4int indexOfState = -1);
|
||||
|
||||
protected:
|
||||
void ConstructMesons(G4int indexOfState, G4int indexOfType);
|
||||
|
||||
|
||||
G4String GetName(G4int iIso3, G4int iState, G4int idxType);
|
||||
G4double GetCharge(G4int iIsoSpin3);
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType);
|
||||
G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType);
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType);
|
||||
G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType);
|
||||
|
||||
public:
|
||||
enum { NMultiplets = 10 };
|
||||
protected:
|
||||
enum {
|
||||
N11P1 = 0, N13P0 = 1, N13P1 = 2, N13P2 = 3,
|
||||
N11D2 = 4, N13D1 = 5, N13D3 = 6,
|
||||
N21S0 = 7, N23S1 = 8, N23P2 = 9
|
||||
};
|
||||
|
||||
public:
|
||||
enum { NMesonTypes = 5 };
|
||||
protected:
|
||||
enum { TPi=0, TEta=1, TEtaPrime=2, TK=3, TAntiK=4 };
|
||||
protected:
|
||||
G4DecayTable* CreateDecayTable(const G4String&, G4int, G4int, G4int);
|
||||
|
||||
protected:
|
||||
const G4String type;
|
||||
const G4int leptonNumber{0};
|
||||
const G4int baryonNumber{0};
|
||||
G4DecayTable* AddKPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iType);
|
||||
G4DecayTable* AddKStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKStar2PiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iType);
|
||||
G4DecayTable* AddKTwoPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iType);
|
||||
G4DecayTable* AddKOmegaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iType);
|
||||
G4DecayTable* AddKEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iType);
|
||||
G4DecayTable* AddPiGammaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddRhoGammaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddPiRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddPiEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddPiF2Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddPiF0Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddPiA2Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add3PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add4PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddKKStarMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add2PiEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* AddRhoEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add2PiRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add2PiOmegaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiOmegaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2EtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add2KMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
G4DecayTable* Add2KPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4int iIso);
|
||||
|
||||
G4bool Exist(G4int idxState, G4int idxType);
|
||||
G4double GetCharge(G4int iIsoSpin3, G4int idxType);
|
||||
static const char* name[ NMultiplets ][ NMesonTypes ];
|
||||
static const G4double mass[ NMultiplets ][ NMesonTypes ];
|
||||
static const G4double massKdiff[ NMultiplets ];
|
||||
static const G4double width[ NMultiplets ][ NMesonTypes ];
|
||||
static const G4double widthKdiff[ NMultiplets ];
|
||||
static const G4int iIsoSpin[ NMesonTypes ];
|
||||
static const G4int iSpin[ NMultiplets ];
|
||||
static const G4int iParity[ NMultiplets ];
|
||||
static const G4int iGParity[ NMultiplets ][ NMesonTypes ];
|
||||
static const G4int iChargeConjugation[ NMultiplets ];
|
||||
static const G4int encodingOffset[ NMultiplets ];
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 19 };
|
||||
protected:
|
||||
enum { MPiGamma = 0, MRhoGamma=1, M2Pi=2, MPiRho=3,
|
||||
M3Pi= 4, MPiEta=5, M4Pi=6, MKKStar=7,
|
||||
M2PiEta=8, MRhoEta=9, M2PiRho=10, M2PiOmega=11,
|
||||
M2Eta=12, M2K=13, M2KPi=14, MPiOmega=15,
|
||||
MPiF2=16, MPiF0=17, MPiA2=18 };
|
||||
enum { MKPi = 0, MKStarPi=1, MKRho=2, MKOmega=3,
|
||||
MKStar2Pi=4, MKTwoPi=5, MKEta=6};
|
||||
|
||||
|
||||
static const G4double bRatio[ NMultiplets ][ NMesonTypes ][ NumberOfDecayModes];
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String&,
|
||||
G4int , G4int, G4int);
|
||||
|
||||
G4DecayTable* AddKPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKStar2PiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKRhoMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKTwoPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKOmegaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddKEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iType);
|
||||
G4DecayTable* AddPiGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3,G4int iIso);
|
||||
G4DecayTable* AddRhoGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2PiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiRhoMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiF2Mode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiF0Mode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiA2Mode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add3PiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add4PiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddKKStarMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2PiEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddRhoEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2PiRhoMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2PiOmegaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* AddPiOmegaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2EtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2KMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
G4DecayTable* Add2KPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4int iIso);
|
||||
|
||||
|
||||
protected:
|
||||
enum
|
||||
{
|
||||
N11P1 = 0,
|
||||
N13P0 = 1,
|
||||
N13P1 = 2,
|
||||
N13P2 = 3,
|
||||
N11D2 = 4,
|
||||
N13D1 = 5,
|
||||
N13D3 = 6,
|
||||
N21S0 = 7,
|
||||
N23S1 = 8,
|
||||
N23P2 = 9
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
TPi = 0,
|
||||
TEta = 1,
|
||||
TEtaPrime = 2,
|
||||
TK = 3,
|
||||
TAntiK = 4
|
||||
};
|
||||
|
||||
const G4String type;
|
||||
const G4int leptonNumber{0};
|
||||
const G4int baryonNumber{0};
|
||||
|
||||
static const char* name[NMultiplets][NMesonTypes];
|
||||
static const G4double mass[NMultiplets][NMesonTypes];
|
||||
static const G4double massKdiff[NMultiplets];
|
||||
static const G4double width[NMultiplets][NMesonTypes];
|
||||
static const G4double widthKdiff[NMultiplets];
|
||||
static const G4int iIsoSpin[NMesonTypes];
|
||||
static const G4int iSpin[NMultiplets];
|
||||
static const G4int iParity[NMultiplets];
|
||||
static const G4int iGParity[NMultiplets][NMesonTypes];
|
||||
static const G4int iChargeConjugation[NMultiplets];
|
||||
static const G4int encodingOffset[NMultiplets];
|
||||
|
||||
enum
|
||||
{
|
||||
MPiGamma = 0,
|
||||
MRhoGamma = 1,
|
||||
M2Pi = 2,
|
||||
MPiRho = 3,
|
||||
M3Pi = 4,
|
||||
MPiEta = 5,
|
||||
M4Pi = 6,
|
||||
MKKStar = 7,
|
||||
M2PiEta = 8,
|
||||
MRhoEta = 9,
|
||||
M2PiRho = 10,
|
||||
M2PiOmega = 11,
|
||||
M2Eta = 12,
|
||||
M2K = 13,
|
||||
M2KPi = 14,
|
||||
MPiOmega = 15,
|
||||
MPiF2 = 16,
|
||||
MPiF0 = 17,
|
||||
MPiA2 = 18
|
||||
};
|
||||
enum
|
||||
{
|
||||
MKPi = 0,
|
||||
MKStarPi = 1,
|
||||
MKRho = 2,
|
||||
MKOmega = 3,
|
||||
MKStar2Pi = 4,
|
||||
MKTwoPi = 5,
|
||||
MKEta = 6
|
||||
};
|
||||
|
||||
static const G4double bRatio[NMultiplets][NMesonTypes][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
|
||||
inline
|
||||
G4String G4ExcitedMesonConstructor::GetName(G4int iIso3,
|
||||
G4int iState,
|
||||
G4int iType)
|
||||
inline G4String G4ExcitedMesonConstructor::GetName(G4int iIso3, G4int iState, G4int iType)
|
||||
{
|
||||
G4String particle = name[iState][iType];
|
||||
if (iType == TPi) {
|
||||
if ( iIso3 == +2 ){
|
||||
if (iIso3 == +2) {
|
||||
particle += "+";
|
||||
} else if ( iIso3 == -2 ){
|
||||
}
|
||||
else if (iIso3 == -2) {
|
||||
particle += "-";
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
particle += "0";
|
||||
}
|
||||
} else if (iType == TK) {
|
||||
if ( iIso3 == +1 ){
|
||||
}
|
||||
else if (iType == TK) {
|
||||
if (iIso3 == +1) {
|
||||
particle += "+";
|
||||
} else if ( iIso3 == -1 ){
|
||||
}
|
||||
else if (iIso3 == -1) {
|
||||
particle += "0";
|
||||
}
|
||||
} else if (iType == TAntiK) {
|
||||
if ( iIso3 == +1 ){
|
||||
}
|
||||
else if (iType == TAntiK) {
|
||||
if (iIso3 == +1) {
|
||||
particle += "0";
|
||||
particle = "anti_" + particle;
|
||||
} else if ( iIso3 == -1 ){
|
||||
}
|
||||
else if (iIso3 == -1) {
|
||||
particle += "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
return particle;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -33,21 +30,16 @@
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef G4ExcitedMesons_h
|
||||
#define G4ExcitedMesons_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VShortLivedParticle.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ExcitedMesons ###
|
||||
// ######################################################################
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedMesons : public G4VShortLivedParticle
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// clang-format off
|
||||
G4ExcitedMesons(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -59,20 +51,14 @@ class G4ExcitedMesons : public G4VShortLivedParticle
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
~G4ExcitedMesons() override = default;
|
||||
void SetMultipletName(const G4String& );
|
||||
// clang-format on
|
||||
~G4ExcitedMesons() override = default;
|
||||
void SetMultipletName(const G4String&);
|
||||
};
|
||||
|
||||
inline
|
||||
void G4ExcitedMesons::SetMultipletName(const G4String& name)
|
||||
inline void G4ExcitedMesons::SetMultipletName(const G4String& name)
|
||||
{
|
||||
SetParticleSubType(name);
|
||||
SetParticleSubType(name);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -35,159 +32,160 @@
|
||||
#ifndef G4ExcitedNucleonConstructor_h
|
||||
#define G4ExcitedNucleonConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ExcitedBaryonConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedNucleonConstructor: public G4ExcitedBaryonConstructor
|
||||
class G4ExcitedNucleonConstructor : public G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NStates = 15
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 9
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedNucleonConstructor();
|
||||
~G4ExcitedNucleonConstructor() override = default;
|
||||
~G4ExcitedNucleonConstructor() override = default;
|
||||
|
||||
protected:
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState) override;
|
||||
protected:
|
||||
G4int GetEncoding(G4int iIsoSpin3, G4int idxState) override;
|
||||
|
||||
protected:
|
||||
G4bool Exist( G4int ) override{return true;}
|
||||
G4bool Exist(G4int) override { return true; }
|
||||
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass( G4int state, G4int iso) override;
|
||||
G4double GetWidth( G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass(G4int state, G4int iso) override;
|
||||
G4double GetWidth(G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String& name,
|
||||
G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
private:
|
||||
G4DecayTable* AddNGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNOmegaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNRhoMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddN2PiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddDeltaPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NStates = 15 };
|
||||
private:
|
||||
enum { NucleonIsoSpin = 1 };
|
||||
G4DecayTable* CreateDecayTable(const G4String& name, G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
|
||||
private:
|
||||
static const char* name[ NStates ];
|
||||
static const G4double mass[ NStates ];
|
||||
static const G4double width[ NStates ];
|
||||
static const G4int iSpin[ NStates ];
|
||||
static const G4int iParity[ NStates ];
|
||||
static const G4int encodingOffset[ NStates ];
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 9 };
|
||||
G4DecayTable* AddNGammaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNOmegaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddN2PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddDeltaPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaKMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
|
||||
private:
|
||||
enum { NGamma=0, NPi=1, NEta=2, NOmega=3, NRho=4,
|
||||
N2Pi=5, DeltaPi=6, NStarPi=7, LambdaK = 8 };
|
||||
private:
|
||||
static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
||||
enum
|
||||
{
|
||||
NucleonIsoSpin = 1
|
||||
};
|
||||
|
||||
static const char* name[NStates];
|
||||
static const G4double mass[NStates];
|
||||
static const G4double width[NStates];
|
||||
static const G4int iSpin[NStates];
|
||||
static const G4int iParity[NStates];
|
||||
static const G4int encodingOffset[NStates];
|
||||
|
||||
enum
|
||||
{
|
||||
NGamma = 0,
|
||||
NPi = 1,
|
||||
NEta = 2,
|
||||
NOmega = 3,
|
||||
NRho = 4,
|
||||
N2Pi = 5,
|
||||
DeltaPi = 6,
|
||||
NStarPi = 7,
|
||||
LambdaK = 8
|
||||
};
|
||||
|
||||
static const G4double bRatio[NStates][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
inline
|
||||
G4double G4ExcitedNucleonConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
inline G4double G4ExcitedNucleonConstructor::GetMass(G4int iState, G4int)
|
||||
{
|
||||
return mass[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ExcitedNucleonConstructor::GetWidth(G4int iState, G4int)
|
||||
inline G4double G4ExcitedNucleonConstructor::GetWidth(G4int iState, G4int)
|
||||
{
|
||||
return width[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedNucleonConstructor::GetiSpin(G4int iState)
|
||||
inline G4int G4ExcitedNucleonConstructor::GetiSpin(G4int iState)
|
||||
{
|
||||
return iSpin[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedNucleonConstructor::GetiParity(G4int iState)
|
||||
inline G4int G4ExcitedNucleonConstructor::GetiParity(G4int iState)
|
||||
{
|
||||
return iParity[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedNucleonConstructor::GetEncodingOffset(G4int iState)
|
||||
inline G4int G4ExcitedNucleonConstructor::GetEncodingOffset(G4int iState)
|
||||
{
|
||||
return encodingOffset[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedNucleonConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
inline G4int G4ExcitedNucleonConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
{
|
||||
// Quark contents
|
||||
// iIso3 = -1 : udd
|
||||
// iIso3 = +1 : uud
|
||||
G4int quark=0;
|
||||
if ( iQ == 0 ){
|
||||
G4int quark = 0;
|
||||
if (iQ == 0) {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
} else if ( iQ == 2 ){
|
||||
}
|
||||
else if (iQ == 2) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else {
|
||||
if ( iIso3 == -1 ){
|
||||
// d-quark
|
||||
}
|
||||
else {
|
||||
if (iIso3 == -1) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else {
|
||||
// u-quark
|
||||
}
|
||||
else {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
}
|
||||
return quark;
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedNucleonConstructor::GetMultipletName(G4int iState)
|
||||
inline G4String G4ExcitedNucleonConstructor::GetMultipletName(G4int iState)
|
||||
{
|
||||
return name[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedNucleonConstructor::GetName(G4int iIso3, G4int iState)
|
||||
inline G4String G4ExcitedNucleonConstructor::GetName(G4int iIso3, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
if ( iIso3 == -1 ){
|
||||
if (iIso3 == -1) {
|
||||
particle += "0";
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
particle += "+";
|
||||
}
|
||||
return particle;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -35,148 +32,151 @@
|
||||
#ifndef G4ExcitedSigmaConstructor_h
|
||||
#define G4ExcitedSigmaConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ExcitedBaryonConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedSigmaConstructor: public G4ExcitedBaryonConstructor
|
||||
class G4ExcitedSigmaConstructor : public G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NStates = 8
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 8
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedSigmaConstructor();
|
||||
~G4ExcitedSigmaConstructor() override = default;
|
||||
~G4ExcitedSigmaConstructor() override = default;
|
||||
|
||||
protected:
|
||||
G4bool Exist( G4int ) override{return true;}
|
||||
protected:
|
||||
G4bool Exist(G4int) override { return true; }
|
||||
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass( G4int state, G4int iso) override;
|
||||
G4double GetWidth( G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass(G4int state, G4int iso) override;
|
||||
G4double GetWidth(G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String& name,
|
||||
G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
private:
|
||||
G4DecayTable* AddNKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddNKStarMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaEtaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaStarPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddDeltaKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NStates = 8 };
|
||||
private:
|
||||
enum { SigmaIsoSpin = 2 };
|
||||
G4DecayTable* CreateDecayTable(const G4String& name, G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
|
||||
private:
|
||||
static const char* name[ NStates ];
|
||||
static const G4double mass[ NStates ];
|
||||
static const G4double width[ NStates ];
|
||||
static const G4int iSpin[ NStates ];
|
||||
static const G4int iParity[ NStates ];
|
||||
static const G4int encodingOffset[ NStates ];
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 8 };
|
||||
G4DecayTable* AddNKMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddNKStarMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddSigmaPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaEtaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddDeltaKMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
|
||||
private:
|
||||
enum { NK=0, NKStar=1, SigmaPi=2, SigmaStarPi=3, LambdaPi=4,
|
||||
SigmaEta=5, LambdaStarPi=6, DeltaK=7};
|
||||
private:
|
||||
static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
||||
enum
|
||||
{
|
||||
SigmaIsoSpin = 2
|
||||
};
|
||||
|
||||
static const char* name[NStates];
|
||||
static const G4double mass[NStates];
|
||||
static const G4double width[NStates];
|
||||
static const G4int iSpin[NStates];
|
||||
static const G4int iParity[NStates];
|
||||
static const G4int encodingOffset[NStates];
|
||||
|
||||
enum
|
||||
{
|
||||
NK = 0,
|
||||
NKStar = 1,
|
||||
SigmaPi = 2,
|
||||
SigmaStarPi = 3,
|
||||
LambdaPi = 4,
|
||||
SigmaEta = 5,
|
||||
LambdaStarPi = 6,
|
||||
DeltaK = 7
|
||||
};
|
||||
|
||||
static const G4double bRatio[NStates][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
|
||||
|
||||
inline
|
||||
G4int G4ExcitedSigmaConstructor::GetiSpin(G4int iState)
|
||||
inline G4int G4ExcitedSigmaConstructor::GetiSpin(G4int iState)
|
||||
{
|
||||
return iSpin[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedSigmaConstructor::GetiParity(G4int iState)
|
||||
inline G4int G4ExcitedSigmaConstructor::GetiParity(G4int iState)
|
||||
{
|
||||
return iParity[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedSigmaConstructor::GetEncodingOffset(G4int iState)
|
||||
inline G4int G4ExcitedSigmaConstructor::GetEncodingOffset(G4int iState)
|
||||
{
|
||||
return encodingOffset[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedSigmaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
inline G4int G4ExcitedSigmaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
{
|
||||
G4int quark=0;
|
||||
if ( iQ == 0 ){
|
||||
G4int quark = 0;
|
||||
if (iQ == 0) {
|
||||
// s-quark
|
||||
quark = 3;
|
||||
} else if ( iQ == 1 ){
|
||||
}
|
||||
else if (iQ == 1) {
|
||||
if (iIso3 == -2) {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
}
|
||||
} else if ( iQ == 2 ){
|
||||
}
|
||||
else if (iQ == 2) {
|
||||
if (iIso3 == +2) {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return quark;
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedSigmaConstructor::GetMultipletName(G4int iState)
|
||||
inline G4String G4ExcitedSigmaConstructor::GetMultipletName(G4int iState)
|
||||
{
|
||||
return name[iState];
|
||||
return name[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedSigmaConstructor::GetName(G4int iIso3, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
if (iIso3 == +2) {
|
||||
particle += "+";
|
||||
} else if (iIso3 == 0) {
|
||||
particle += "0";
|
||||
} else if (iIso3 == -2) {
|
||||
particle += "-";
|
||||
inline G4String G4ExcitedSigmaConstructor::GetName(G4int iIso3, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
if (iIso3 == +2) {
|
||||
particle += "+";
|
||||
}
|
||||
else if (iIso3 == 0) {
|
||||
particle += "0";
|
||||
}
|
||||
else if (iIso3 == -2) {
|
||||
particle += "-";
|
||||
}
|
||||
return particle;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// 10 oct 1998 H.Kurashige
|
||||
@@ -35,131 +32,130 @@
|
||||
#ifndef G4ExcitedXiConstructor_h
|
||||
#define G4ExcitedXiConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ExcitedBaryonConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ExcitedXiConstructor: public G4ExcitedBaryonConstructor
|
||||
class G4ExcitedXiConstructor : public G4ExcitedBaryonConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NStates = 5
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
NumberOfDecayModes = 4
|
||||
};
|
||||
|
||||
public:
|
||||
G4ExcitedXiConstructor();
|
||||
~G4ExcitedXiConstructor() override = default;
|
||||
~G4ExcitedXiConstructor() override = default;
|
||||
|
||||
protected:
|
||||
G4bool Exist( G4int ) override{return true;}
|
||||
protected:
|
||||
G4bool Exist(G4int) override { return true; }
|
||||
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass( G4int state, G4int iso) override;
|
||||
G4double GetWidth( G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
G4int GetQuarkContents(G4int, G4int) override;
|
||||
G4String GetName(G4int iIso3, G4int iState) override;
|
||||
G4String GetMultipletName(G4int iState) override;
|
||||
G4double GetMass(G4int state, G4int iso) override;
|
||||
G4double GetWidth(G4int state, G4int iso) override;
|
||||
G4int GetiSpin(G4int iState) override;
|
||||
G4int GetiParity(G4int iState) override;
|
||||
G4int GetEncodingOffset(G4int iState) override;
|
||||
|
||||
G4DecayTable* CreateDecayTable(const G4String& name,
|
||||
G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
private:
|
||||
G4DecayTable* AddXiPiMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddXiGammaMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaKMode( G4DecayTable* table, const G4String& name,
|
||||
G4double br, G4int iIso3, G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NStates = 5 };
|
||||
private:
|
||||
enum { XiIsoSpin = 1 };
|
||||
G4DecayTable* CreateDecayTable(const G4String& name, G4int iIso3, G4int iState,
|
||||
G4bool fAnti = false) override;
|
||||
|
||||
private:
|
||||
static const char* name[ NStates ];
|
||||
static const G4double mass[ NStates ];
|
||||
static const G4double width[ NStates ];
|
||||
static const G4int iSpin[ NStates ];
|
||||
static const G4int iParity[ NStates ];
|
||||
static const G4int encodingOffset[ NStates ];
|
||||
G4DecayTable* AddXiPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
G4DecayTable* AddXiGammaMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddLambdaKMode(G4DecayTable* table, const G4String& name, G4double br,
|
||||
G4int iIso3, G4bool fAnti);
|
||||
G4DecayTable* AddSigmaKMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
|
||||
G4bool fAnti);
|
||||
|
||||
public:
|
||||
enum { NumberOfDecayModes = 4 };
|
||||
private:
|
||||
enum { XiPi=0, XiGamma=1, LambdaK=2, SigmaK=3 };
|
||||
private:
|
||||
static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
||||
enum
|
||||
{
|
||||
XiIsoSpin = 1
|
||||
};
|
||||
|
||||
static const char* name[NStates];
|
||||
static const G4double mass[NStates];
|
||||
static const G4double width[NStates];
|
||||
static const G4int iSpin[NStates];
|
||||
static const G4int iParity[NStates];
|
||||
static const G4int encodingOffset[NStates];
|
||||
|
||||
enum
|
||||
{
|
||||
XiPi = 0,
|
||||
XiGamma = 1,
|
||||
LambdaK = 2,
|
||||
SigmaK = 3
|
||||
};
|
||||
|
||||
static const G4double bRatio[NStates][NumberOfDecayModes];
|
||||
};
|
||||
|
||||
|
||||
inline
|
||||
G4int G4ExcitedXiConstructor::GetiSpin(G4int iState)
|
||||
inline G4int G4ExcitedXiConstructor::GetiSpin(G4int iState)
|
||||
{
|
||||
return iSpin[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedXiConstructor::GetiParity(G4int iState)
|
||||
inline G4int G4ExcitedXiConstructor::GetiParity(G4int iState)
|
||||
{
|
||||
return iParity[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedXiConstructor::GetEncodingOffset(G4int iState)
|
||||
inline G4int G4ExcitedXiConstructor::GetEncodingOffset(G4int iState)
|
||||
{
|
||||
return encodingOffset[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ExcitedXiConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
inline G4int G4ExcitedXiConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
||||
{
|
||||
G4int quark=0;
|
||||
if ( iQ == 0 ){
|
||||
G4int quark = 0;
|
||||
if (iQ == 0) {
|
||||
// s-quark
|
||||
quark = 3;
|
||||
} else if ( iQ == 1 ){
|
||||
}
|
||||
else if (iQ == 1) {
|
||||
// s-quark
|
||||
quark = 3;
|
||||
} else if ( iQ == 2 ){
|
||||
}
|
||||
else if (iQ == 2) {
|
||||
if (iIso3 == +1) {
|
||||
// u-quark
|
||||
quark = 2;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// d-quark
|
||||
quark = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return quark;
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedXiConstructor::GetMultipletName(G4int iState)
|
||||
inline G4String G4ExcitedXiConstructor::GetMultipletName(G4int iState)
|
||||
{
|
||||
return name[iState];
|
||||
}
|
||||
|
||||
inline
|
||||
G4String G4ExcitedXiConstructor::GetName(G4int iIso3, G4int iState)
|
||||
inline G4String G4ExcitedXiConstructor::GetName(G4int iIso3, G4int iState)
|
||||
{
|
||||
G4String particle = name[iState];
|
||||
if (iIso3 == +1) {
|
||||
particle += "0";
|
||||
} else if (iIso3 ==-1) {
|
||||
}
|
||||
else if (iIso3 == -1) {
|
||||
particle += "-";
|
||||
}
|
||||
return particle;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -33,21 +30,16 @@
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef G4Gluons_h
|
||||
#define G4Gluons_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VShortLivedParticle.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### Gluons ###
|
||||
// ######################################################################
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Gluons : public G4VShortLivedParticle
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// clang-format off
|
||||
G4Gluons(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -59,37 +51,8 @@ class G4Gluons : public G4VShortLivedParticle
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
~G4Gluons() override = default;
|
||||
// clang-format on
|
||||
~G4Gluons() override = default;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
@@ -33,21 +30,16 @@
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef G4Quarks_h
|
||||
#define G4Quarks_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VShortLivedParticle.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### Quarks ###
|
||||
// ######################################################################
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Quarks : public G4VShortLivedParticle
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// clang-format off
|
||||
G4Quarks(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
@@ -59,24 +51,8 @@ class G4Quarks : public G4VShortLivedParticle
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
~G4Quarks() override = default;
|
||||
// clang-format on
|
||||
~G4Quarks() override = default;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,26 +23,22 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
#ifndef G4ShortLivedConstructor_h
|
||||
#define G4ShortLivedConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4Types.hh"
|
||||
|
||||
class G4ShortLivedConstructor
|
||||
{
|
||||
//This class is a utility class for construction
|
||||
//short lived particles
|
||||
// This class is a utility class for construction
|
||||
// short lived particles
|
||||
|
||||
public:
|
||||
static void ConstructParticle();
|
||||
|
||||
|
||||
protected:
|
||||
static void ConstructResonances();
|
||||
static void ConstructBaryons();
|
||||
@@ -51,19 +47,8 @@ class G4ShortLivedConstructor
|
||||
static void ConstructAntiNuclei();
|
||||
|
||||
private:
|
||||
static G4bool isConstructed;
|
||||
// flag for checking whether resonces exist or not
|
||||
static G4bool isConstructed;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// History: first implementation, based on object model of
|
||||
// Hisaya Kurashige, 27 June 1998
|
||||
@@ -36,21 +33,16 @@
|
||||
#ifndef G4VShortLivedParticle_h
|
||||
#define G4VShortLivedParticle_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VShortLivedParticle : public G4ParticleDefinition
|
||||
{
|
||||
// A virtual class for short lived particles.
|
||||
// ShortLivedParticle particles will not be tracked by the TrackingManager
|
||||
// So, G4VShortLivedParticle is not derived from G4ParticleWIthCuts
|
||||
private:
|
||||
|
||||
const G4VShortLivedParticle & operator=(const G4VShortLivedParticle &right);
|
||||
|
||||
// A virtual class for short lived particles.
|
||||
// ShortLivedParticle particles will not be tracked by the TrackingManager
|
||||
// So, G4VShortLivedParticle is not derived from G4ParticleWIthCuts
|
||||
public:
|
||||
|
||||
// clang-format off
|
||||
G4VShortLivedParticle(const G4String& aName,
|
||||
G4double mass,
|
||||
G4double width,
|
||||
@@ -68,16 +60,15 @@ class G4VShortLivedParticle : public G4ParticleDefinition
|
||||
G4bool stable,
|
||||
G4double lifetime,
|
||||
G4DecayTable *decaytable);
|
||||
// clang-format on
|
||||
|
||||
~G4VShortLivedParticle() override = default;
|
||||
~G4VShortLivedParticle() override = default;
|
||||
|
||||
G4bool operator==(const G4VShortLivedParticle &right) const;
|
||||
G4bool operator!=(const G4VShortLivedParticle &right) const;
|
||||
G4bool operator==(const G4VShortLivedParticle& right) const;
|
||||
G4bool operator!=(const G4VShortLivedParticle& right) const;
|
||||
|
||||
private:
|
||||
const G4VShortLivedParticle& operator=(const G4VShortLivedParticle& right);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user