Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:54

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // G4ParticleTable inline methods implementation
0027 //
0028 // Author: H.Kurashige, 27 June 1996 - First implementation
0029 // --------------------------------------------------------------------
0030 
0031 inline void G4ParticleTable::SetVerboseLevel(G4int value)
0032 {
0033   verboseLevel = value;
0034 }
0035 
0036 inline G4int G4ParticleTable::GetVerboseLevel() const
0037 {
0038   return verboseLevel;
0039 }
0040 
0041 inline const G4String& G4ParticleTable::GetKey(const G4ParticleDefinition* particle) const
0042 {
0043   return particle->GetParticleName();
0044 }
0045 
0046 inline G4ParticleDefinition* G4ParticleTable::FindAntiParticle(G4int aPDGEncoding)
0047 {
0048   return FindParticle(FindParticle(aPDGEncoding)->GetAntiPDGEncoding());
0049 }
0050 
0051 inline G4ParticleDefinition* G4ParticleTable::FindAntiParticle(const G4String& particle_name)
0052 {
0053   G4int pcode = FindParticle(particle_name)->GetAntiPDGEncoding();
0054   return FindParticle(pcode);
0055 }
0056 
0057 inline G4ParticleDefinition* G4ParticleTable::FindAntiParticle(const G4ParticleDefinition* particle)
0058 {
0059   G4int pcode = particle->GetAntiPDGEncoding();
0060   return FindParticle(pcode);
0061 }
0062 
0063 inline G4bool G4ParticleTable::contains(const G4ParticleDefinition* particle) const
0064 {
0065   return contains(GetKey(particle));
0066 }
0067 
0068 inline void G4ParticleTable::SetReadiness(G4bool val)
0069 {
0070   readyToUse = val;
0071 }
0072 
0073 inline G4bool G4ParticleTable::GetReadiness() const
0074 {
0075   return readyToUse;
0076 }
0077 
0078 inline G4ParticleDefinition* G4ParticleTable::GetGenericIon() const
0079 {
0080   return genericIon;
0081 }
0082 
0083 inline void G4ParticleTable::SetGenericIon(G4ParticleDefinition* gi)
0084 {
0085   genericIon = gi;
0086 }
0087 
0088 inline G4ParticleDefinition* G4ParticleTable::GetGenericMuonicAtom() const
0089 {
0090   return genericMuonicAtom;
0091 }
0092 
0093 inline void G4ParticleTable::SetGenericMuonicAtom(G4ParticleDefinition* gma)
0094 {
0095   genericMuonicAtom = gma;
0096 }
0097 
0098 inline const G4ParticleDefinition* G4ParticleTable::GetSelectedParticle() const
0099 {
0100   return selectedParticle;
0101 }