Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -64,6 +64,7 @@
|
||||
#include "G4AutoLock.hh"
|
||||
|
||||
class G4ProcessManager;
|
||||
class G4VTrackingManager;
|
||||
|
||||
class G4PDefData
|
||||
{
|
||||
@@ -76,6 +77,7 @@ class G4PDefData
|
||||
void initialize();
|
||||
|
||||
G4ProcessManager* theProcessManager = nullptr;
|
||||
G4VTrackingManager* theTrackingManager = nullptr;
|
||||
};
|
||||
|
||||
class G4PDefManager
|
||||
|
||||
@@ -53,6 +53,7 @@ class G4ProcessManager;
|
||||
class G4DecayTable;
|
||||
class G4ParticleTable;
|
||||
class G4ParticlePropertyTable;
|
||||
class G4VTrackingManager;
|
||||
|
||||
using G4ParticleDefinitionSubInstanceManager = G4PDefManager;
|
||||
|
||||
@@ -162,6 +163,11 @@ class G4ParticleDefinition
|
||||
// Set/Get Process Manager
|
||||
// !! Process Manager can be modified !!
|
||||
|
||||
G4VTrackingManager* GetTrackingManager() const;
|
||||
void SetTrackingManager(G4VTrackingManager* aTrackingManager);
|
||||
// Set/Get Tracking Manager; nullptr means the default
|
||||
// !! Tracking Manager can be modified !!
|
||||
|
||||
inline G4ParticleTable* GetParticleTable() const;
|
||||
// Get pointer to the particle table
|
||||
|
||||
@@ -208,6 +214,21 @@ class G4ParticleDefinition
|
||||
void SetParticleDefinitionID(G4int id=-1);
|
||||
inline G4int GetParticleDefinitionID() const;
|
||||
|
||||
inline G4bool IsHypernucleus() const;
|
||||
inline G4int GetNumberOfLambdasInHypernucleus() const;
|
||||
inline G4bool IsAntiHypernucleus() const;
|
||||
inline G4int GetNumberOfAntiLambdasInAntiHypernucleus() const;
|
||||
// The first two methods return "false" and 0, respectively,
|
||||
// if the particle is not an hypernucleus; else, they return
|
||||
// "true" and the number of Lambdas bound in the nucleus.
|
||||
// Similarly, the last two methods return "false" and 0,
|
||||
// respectively, if the particle is not an anti-hypernucleus;
|
||||
// else, they return "true" and the number of anti-Lambdas
|
||||
// bound in the anti-nucleus.
|
||||
// Notice that, for the time being, we are assuming that
|
||||
// (anti-)Lambda is the only type of (anti-)hyperon present
|
||||
// in all (anti-)hypernuclei.
|
||||
|
||||
protected:
|
||||
|
||||
G4ParticleDefinition();
|
||||
|
||||
@@ -212,3 +212,35 @@ G4int G4ParticleDefinition::GetParticleDefinitionID() const
|
||||
{
|
||||
return g4particleDefinitionInstanceID;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleDefinition::IsHypernucleus() const
|
||||
{
|
||||
if ( GetNumberOfLambdasInHypernucleus() > 0 ) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ParticleDefinition::GetNumberOfLambdasInHypernucleus() const
|
||||
{
|
||||
// PDG code of hypernuclei: 10LZZZAAAI
|
||||
G4int numberOfLambdas = 0;
|
||||
if ( thePDGEncoding > 0 ) numberOfLambdas = (thePDGEncoding/10000000)%100;
|
||||
return numberOfLambdas;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleDefinition::IsAntiHypernucleus() const
|
||||
{
|
||||
if ( GetNumberOfAntiLambdasInAntiHypernucleus() > 0 ) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ParticleDefinition::GetNumberOfAntiLambdasInAntiHypernucleus() const
|
||||
{
|
||||
// PDG code of anti-hypernuclei: -10LZZZAAAI
|
||||
G4int numberOfAntiLambdas = 0;
|
||||
if ( thePDGEncoding < 0 ) numberOfAntiLambdas = (std::abs(thePDGEncoding)/10000000)%100;
|
||||
return numberOfAntiLambdas;
|
||||
}
|
||||
|
||||
@@ -70,10 +70,7 @@ class G4ParticlePropertyMessenger : public G4UImessenger
|
||||
|
||||
private:
|
||||
|
||||
G4ParticleDefinition* SetCurrentParticle();
|
||||
|
||||
G4ParticleTable* theParticleTable = nullptr;
|
||||
G4ParticleDefinition* currentParticle = nullptr;
|
||||
|
||||
G4UIdirectory* thisDirectory = nullptr;
|
||||
G4UIcmdWithoutParameter* dumpCmd = nullptr;
|
||||
|
||||
@@ -43,7 +43,7 @@ class G4PhaseSpaceDecayChannel : public G4VDecayChannel
|
||||
{
|
||||
public:
|
||||
|
||||
enum { MAX_N_DAUGHTERS=4 };
|
||||
enum { MAX_N_DAUGHTERS=5 };
|
||||
|
||||
G4PhaseSpaceDecayChannel(G4int Verbose = 1);
|
||||
G4PhaseSpaceDecayChannel(const G4String& theParentName,
|
||||
@@ -52,7 +52,8 @@ class G4PhaseSpaceDecayChannel : public G4VDecayChannel
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2 = "",
|
||||
const G4String& theDaughterName3 = "",
|
||||
const G4String& theDaughterName4 = "" );
|
||||
const G4String& theDaughterName4 = "",
|
||||
const G4String& theDaughterName5 = "" );
|
||||
// Constructors
|
||||
|
||||
virtual ~G4PhaseSpaceDecayChannel();
|
||||
|
||||
@@ -58,7 +58,8 @@ class G4VDecayChannel
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2 = "",
|
||||
const G4String& theDaughterName3 = "",
|
||||
const G4String& theDaughterName4 = "" );
|
||||
const G4String& theDaughterName4 = "",
|
||||
const G4String& theDaughterName5 = "" );
|
||||
// Constructors
|
||||
|
||||
virtual ~G4VDecayChannel();
|
||||
|
||||
Reference in New Issue
Block a user