Geant4  10.01
tpia_particle.cc File Reference
#include <string.h>
#include <tpia_target.h>
#include "G4Types.hh"
+ Include dependency graph for tpia_particle.cc:

Go to the source code of this file.

Functions

tpia_particle * tpia_particle_create (statusMessageReporting *smr)
 
int tpia_particle_initialize (statusMessageReporting *, tpia_particle *particle)
 
tpia_particle * tpia_particle_free (statusMessageReporting *smr, tpia_particle *particle)
 
int tpia_particle_release (statusMessageReporting *smr, tpia_particle *particle)
 
int tpia_particle_freeInternalList (statusMessageReporting *smr)
 
tpia_particle * tpia_particle_getInternalID (statusMessageReporting *smr, const char *const name)
 
int tpia_particle_printInternalSortedList (statusMessageReporting *)
 

Variables

static G4ThreadLocal int initialSizeOfList = 100
 
static G4ThreadLocal int incrementalSizeOfList = 100
 
static G4ThreadLocal int numberOfParticles = 0
 
static G4ThreadLocal int sizeOfParticleSortedList = 0
 
static G4ThreadLocal
tpia_particle ** 
particleSortedList = NULL
 
static G4ThreadLocal
tpia_particle * 
particleList = NULL
 
static G4ThreadLocal
tpia_particle * 
particleListEnd = NULL
 

Function Documentation

tpia_particle* tpia_particle_create ( statusMessageReporting *  smr)

Definition at line 52 of file tpia_particle.cc.

References tpia_particle_initialize().

Referenced by tpia_particle_getInternalID().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tpia_particle* tpia_particle_free ( statusMessageReporting *  smr,
tpia_particle *  particle 
)

Definition at line 73 of file tpia_particle.cc.

References numberOfParticles, tpia_particle_release(), and xData_free().

Referenced by tpia_particle_freeInternalList(), and tpia_particle_getInternalID().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int tpia_particle_freeInternalList ( statusMessageReporting *  smr)

Definition at line 104 of file tpia_particle.cc.

References tpia_particle_free(), and xData_free().

+ Here is the call graph for this function:

tpia_particle* tpia_particle_getInternalID ( statusMessageReporting *  smr,
const char *const  name 
)

Definition at line 114 of file tpia_particle.cc.

References A, incrementalSizeOfList, initialSizeOfList, m, G4INCL::Math::max(), G4INCL::Math::min(), numberOfParticles, particleListEnd, sizeOfParticleSortedList, smr_isOk(), tpi_spectralID_parse(), tpia_miscNameToZAm(), tpia_particle_create(), tpia_particle_free(), and tpia_particleMass_AMU().

Referenced by tpia_product_getFromElement(), tpia_target_heated_read(), and tpia_target_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int tpia_particle_initialize ( statusMessageReporting *  ,
tpia_particle *  particle 
)

Definition at line 65 of file tpia_particle.cc.

Referenced by tpia_particle_create().

+ Here is the caller graph for this function:

int tpia_particle_printInternalSortedList ( statusMessageReporting *  )

Definition at line 190 of file tpia_particle.cc.

References name, and numberOfParticles.

int tpia_particle_release ( statusMessageReporting *  smr,
tpia_particle *  particle 
)

Definition at line 96 of file tpia_particle.cc.

References tpi_spectralID_free().

Referenced by tpia_particle_free().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

G4ThreadLocal int incrementalSizeOfList = 100
static

Definition at line 45 of file tpia_particle.cc.

Referenced by tpia_particle_getInternalID().

G4ThreadLocal int initialSizeOfList = 100
static

Definition at line 45 of file tpia_particle.cc.

Referenced by tpia_particle_getInternalID().

G4ThreadLocal tpia_particle* particleList = NULL
static

Definition at line 48 of file tpia_particle.cc.

Referenced by pyG4ParticleTable::GetParticleList(), and getParticleTable().

G4ThreadLocal tpia_particle * particleListEnd = NULL
static

Definition at line 48 of file tpia_particle.cc.

Referenced by tpia_particle_getInternalID().

G4ThreadLocal tpia_particle** particleSortedList = NULL
static

Definition at line 47 of file tpia_particle.cc.

G4ThreadLocal int sizeOfParticleSortedList = 0
static

Definition at line 46 of file tpia_particle.cc.

Referenced by tpia_particle_getInternalID().