Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -23,92 +23,97 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4ParticleTable inline methods implementation
|
||||
//
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// implement new version for using STL map instaed of RW PtrHashedDictionary
|
||||
// 28 ct., 99 H.Kurashige
|
||||
// added support for MuonicAtom Sep, 17 K.L.Genser
|
||||
|
||||
// Author: H.Kurashige, 27 June 1996 - First implementation
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
inline
|
||||
void G4ParticleTable::SetVerboseLevel(G4int value )
|
||||
void G4ParticleTable::SetVerboseLevel(G4int value )
|
||||
{
|
||||
verboseLevel = value;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ParticleTable::GetVerboseLevel() const
|
||||
G4int G4ParticleTable::GetVerboseLevel() const
|
||||
{
|
||||
return verboseLevel;
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
const G4String& G4ParticleTable::GetKey(const G4ParticleDefinition *particle) const
|
||||
inline
|
||||
const G4String&
|
||||
G4ParticleTable::GetKey(const G4ParticleDefinition* particle) const
|
||||
{
|
||||
return particle->GetParticleName();
|
||||
}
|
||||
|
||||
inline
|
||||
G4ParticleDefinition* G4ParticleTable::FindAntiParticle(G4int aPDGEncoding)
|
||||
G4ParticleDefinition* G4ParticleTable::FindAntiParticle(G4int aPDGEncoding)
|
||||
{
|
||||
return FindParticle( FindParticle(aPDGEncoding)->GetAntiPDGEncoding() );
|
||||
}
|
||||
|
||||
inline
|
||||
G4ParticleDefinition* G4ParticleTable::FindAntiParticle(const G4String& particle_name)
|
||||
G4ParticleDefinition*
|
||||
G4ParticleTable::FindAntiParticle(const G4String& particle_name)
|
||||
{
|
||||
G4int pcode = FindParticle(particle_name) -> GetAntiPDGEncoding();
|
||||
return FindParticle(pcode);
|
||||
}
|
||||
|
||||
inline
|
||||
G4ParticleDefinition* G4ParticleTable::FindAntiParticle(const G4ParticleDefinition *particle)
|
||||
G4ParticleDefinition*
|
||||
G4ParticleTable::FindAntiParticle(const G4ParticleDefinition* particle)
|
||||
{
|
||||
G4int pcode = particle -> GetAntiPDGEncoding();
|
||||
G4int pcode = particle->GetAntiPDGEncoding();
|
||||
return FindParticle(pcode);
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleTable::contains(const G4ParticleDefinition *particle) const
|
||||
G4bool G4ParticleTable::contains(const G4ParticleDefinition* particle) const
|
||||
{
|
||||
return contains(GetKey(particle));
|
||||
return contains(GetKey(particle));
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleTable::SetReadiness(G4bool val)
|
||||
void G4ParticleTable::SetReadiness(G4bool val)
|
||||
{
|
||||
readyToUse = val;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleTable::GetReadiness() const
|
||||
G4bool G4ParticleTable::GetReadiness() const
|
||||
{
|
||||
return readyToUse;
|
||||
}
|
||||
|
||||
inline
|
||||
G4ParticleDefinition* G4ParticleTable::GetGenericIon() const
|
||||
G4ParticleDefinition* G4ParticleTable::GetGenericIon() const
|
||||
{
|
||||
return genericIon;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleTable::SetGenericIon(G4ParticleDefinition* gi)
|
||||
void G4ParticleTable::SetGenericIon(G4ParticleDefinition* gi)
|
||||
{
|
||||
genericIon = gi;
|
||||
}
|
||||
|
||||
inline
|
||||
G4ParticleDefinition* G4ParticleTable::GetGenericMuonicAtom() const
|
||||
G4ParticleDefinition* G4ParticleTable::GetGenericMuonicAtom() const
|
||||
{
|
||||
return genericMuonicAtom;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleTable::SetGenericMuonicAtom(G4ParticleDefinition* gma)
|
||||
void G4ParticleTable::SetGenericMuonicAtom(G4ParticleDefinition* gma)
|
||||
{
|
||||
genericMuonicAtom = gma;
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ParticleDefinition* G4ParticleTable::GetSelectedParticle() const
|
||||
{
|
||||
return selectedParticle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user