Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PoPs.h"
#include "PoPs_private.h"
Go to the source code of this file.
Classes | |
struct | unitConversions_s |
Macros | |
#define | incrementalSize 1000 |
#define | MeV2eV 1e6 |
#define | MeV2keV 1e3 |
#define | AMU2MeV 931.494028 |
#define | AMU2eV ( MeV2eV * 931.494028 ) |
#define | K2MeV 8.6173856922566752e-11 |
#define | K2eV ( MeV2eV * K2MeV ) |
Typedefs | |
typedef struct unitConversions_s | unitConversions |
Variables | |
int | PoPs_smr_ID = smr_unknownID |
typedef struct unitConversions_s unitConversions |
int PoP_copyParticle | ( | statusMessageReporting * | smr, |
PoP * | desc, | ||
PoP * | src | ||
) |
Definition at line 567 of file PoPs.cc.
Referenced by PoPs_copyAddParticleIfNeeded().
Definition at line 558 of file PoPs.cc.
Referenced by lPoPs_addParticleIfNeeded(), PoP_makeAlias(), PoP_makeParticle(), PoP_new(), PoPs_addAliasIfNeeded(), PoPs_copyAddParticleIfNeeded(), PoPs_particleCreateLoadInfo(), PoPs_particleReadDatabase(), and PoPs_releasePrivate().
int PoP_getIndex | ( | PoP * | pop | ) |
double PoP_getMassInUnitOf | ( | statusMessageReporting * | smr, |
PoP * | pop, | ||
char const * | unit | ||
) |
Definition at line 626 of file PoPs.cc.
Referenced by PoPs_getMassInUnitOf_atIndex().
char const * PoP_getName | ( | PoP * | pop | ) |
int PoP_initialize | ( | statusMessageReporting * | smr, |
PoP * | pop | ||
) |
Definition at line 533 of file PoPs.cc.
Referenced by PoP_new(), and PoP_release().
PoP * PoP_makeAlias | ( | statusMessageReporting * | smr, |
char const * | name, | ||
char const * | alias | ||
) |
Definition at line 647 of file PoPs.cc.
Referenced by lPoPs_addParticleIfNeeded(), and PoPs_addAliasIfNeeded().
PoP * PoP_makeParticle | ( | statusMessageReporting * | smr, |
enum PoPs_genre | genre, | ||
char const * | name, | ||
double | mass, | ||
char const * | massUnit | ||
) |
Definition at line 585 of file PoPs.cc.
PoP * PoP_new | ( | statusMessageReporting * | smr | ) |
Definition at line 522 of file PoPs.cc.
Referenced by PoP_makeAlias(), PoP_makeParticle(), and PoPs_particleCreateLoadInfo().
int PoP_release | ( | PoP * | pop | ) |
int PoP_setZ_A_l | ( | statusMessageReporting * | smr, |
PoP * | pop, | ||
int | Z, | ||
int | A, | ||
int | l | ||
) |
PoP * PoPs_addAliasIfNeeded | ( | statusMessageReporting * | smr, |
char const * | name, | ||
char const * | alias | ||
) |
Definition at line 179 of file PoPs.cc.
Referenced by MCGIDI_map_initialize().
PoP * PoPs_addParticleIfNeeded | ( | statusMessageReporting * | smr, |
PoP * | pop | ||
) |
Definition at line 113 of file PoPs.cc.
Referenced by lPoPs_addParticleIfNeeded(), PoPs_addAliasIfNeeded(), PoPs_copyAddParticleIfNeeded(), and PoPs_particleReadDatabase().
PoP * PoPs_copyAddParticleIfNeeded | ( | statusMessageReporting * | smr, |
PoP * | pop | ||
) |
Definition at line 153 of file PoPs.cc.
char const * PoPs_genreTokenToString | ( | enum PoPs_genre | genre | ) |
Definition at line 446 of file PoPs.cc.
Referenced by PoPs_write().
int PoPs_getAtomsIndex | ( | statusMessageReporting * | smr, |
char const * | name | ||
) |
Definition at line 397 of file PoPs.cc.
int PoPs_getAtomsIndex_atIndex | ( | statusMessageReporting * | smr, |
int | index | ||
) |
Definition at line 407 of file PoPs.cc.
Referenced by PoPs_getAtomsIndex(), and PoPs_getAtomsName_atIndex().
char const * PoPs_getAtomsName | ( | statusMessageReporting * | smr, |
char const * | name | ||
) |
Definition at line 377 of file PoPs.cc.
char const * PoPs_getAtomsName_atIndex | ( | statusMessageReporting * | smr, |
int | index | ||
) |
Definition at line 387 of file PoPs.cc.
Referenced by PoPs_getAtomsName().
enum PoPs_genre PoPs_getGenre | ( | statusMessageReporting * | smr, |
char const * | name | ||
) |
enum PoPs_genre PoPs_getGenre_atIndex | ( | statusMessageReporting * | smr, |
int | index | ||
) |
Definition at line 311 of file PoPs.cc.
double PoPs_getMassInUnitOf | ( | statusMessageReporting * | smr, |
char const * | name, | ||
char const * | unit | ||
) |
Definition at line 265 of file PoPs.cc.
double PoPs_getMassInUnitOf_atIndex | ( | statusMessageReporting * | smr, |
int | index, | ||
char const * | unit | ||
) |
Definition at line 286 of file PoPs.cc.
Referenced by PoPs_getMassInUnitOf().
char const * PoPs_getName_atIndex | ( | statusMessageReporting * | smr, |
int | index | ||
) |
Definition at line 275 of file PoPs.cc.
Referenced by MCGIDI_map_findTargetViaPoPIDs().
int PoPs_getZ_A_l | ( | statusMessageReporting * | smr, |
char const * | name, | ||
int * | Z, | ||
int * | A, | ||
int * | l | ||
) |
Definition at line 325 of file PoPs.cc.
int PoPs_getZ_A_l_atIndex | ( | statusMessageReporting * | smr, |
int | index, | ||
int * | Z, | ||
int * | A, | ||
int * | l | ||
) |
Definition at line 335 of file PoPs.cc.
Referenced by PoPs_getZ_A_l().
int PoPs_hasNucleus | ( | statusMessageReporting * | smr, |
char const * | name, | ||
int | protonIsNucleus | ||
) |
Definition at line 349 of file PoPs.cc.
Referenced by PoPs_write().
int PoPs_hasNucleus_atIndex | ( | statusMessageReporting * | smr, |
int | index, | ||
int | protonIsNucleus | ||
) |
Definition at line 359 of file PoPs.cc.
Referenced by PoPs_hasNucleus().
int PoPs_numberOfParticle | ( | void | ) |
int PoPs_particleIndex | ( | char const * | name | ) |
Definition at line 204 of file PoPs.cc.
Referenced by lPoPs_addParticleIfNeeded(), PoP_makeAlias(), PoPs_copyAddParticleIfNeeded(), and PoPs_particleIndex_smr().
int PoPs_particleIndex_smr | ( | statusMessageReporting * | smr, |
char const * | name, | ||
char const * | file, | ||
int | line, | ||
char const * | func | ||
) |
Definition at line 216 of file PoPs.cc.
Referenced by PoPs_getAtomsIndex(), PoPs_getAtomsIndex_atIndex(), PoPs_getAtomsName(), PoPs_getGenre(), PoPs_getMassInUnitOf(), PoPs_getZ_A_l(), and PoPs_hasNucleus().
void PoPs_print | ( | int | sorted | ) |
int PoPs_readDatabase | ( | statusMessageReporting * | smr, |
char const * | fileName | ||
) |
Definition at line 81 of file PoPs.cc.
int PoPs_register | ( | void | ) |
int PoPs_release | ( | statusMessageReporting * | smr | ) |
Definition at line 88 of file PoPs.cc.
int PoPs_releasePrivate | ( | statusMessageReporting * | smr | ) |
Definition at line 98 of file PoPs.cc.
Referenced by PoPs_release().
int PoPs_unitConversionRatio | ( | char const * | _from, |
char const * | _to, | ||
double * | ratio | ||
) |
Definition at line 748 of file PoPs.cc.
Referenced by PoP_getMassInUnitOf().
const char * PoPs_version | ( | void | ) |
Definition at line 59 of file PoPs.cc.
void PoPs_write | ( | FILE * | f, |
int | sorted | ||
) |
Definition at line 462 of file PoPs.cc.
Referenced by PoPs_print().
char const * unitsDB_addUnitIfNeeded | ( | statusMessageReporting * | smr, |
char const * | unit | ||
) |
Definition at line 700 of file PoPs.cc.
Referenced by PoP_makeParticle(), and PoPs_particleLoadInfo().
int unitsDB_index | ( | statusMessageReporting * | smr, |
char const * | unit | ||
) |
char const * unitsDB_stringFromIndex | ( | statusMessageReporting * | smr, |
int | index | ||
) |
Definition at line 737 of file PoPs.cc.
int PoPs_smr_ID = smr_unknownID |
Definition at line 35 of file PoPs.cc.
Referenced by lPoPs_addParticleIfNeeded(), PoP_getMassInUnitOf(), PoP_makeAlias(), PoPs_getAtomsIndex_atIndex(), PoPs_getGenre_atIndex(), PoPs_getMassInUnitOf_atIndex(), PoPs_getName_atIndex(), PoPs_getZ_A_l_atIndex(), PoPs_hasNucleus_atIndex(), PoPs_particleIndex_smr(), and unitsDB_stringFromIndex().