EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geant.cxx File Reference
#include <cassert>
#include <cstring>
#include <htclib.h>
+ Include dependency graph for geant.cxx:

Go to the source code of this file.

Functions

t_particleget_particle_by_name (const char *name)
 
t_particle_groupget_particle_group_by_name (const char *grname)
 

Variables

t_particle_group particle_groups []
 
int particle_group_num = sizeof(particle_groups)/sizeof(particle_groups[0])
 

Function Documentation

t_particle* get_particle_by_name ( const char *  name)

Definition at line 39 of file geant.cxx.

View newest version in sPHENIX GitHub at line 39 of file geant.cxx

References t_particle_group::members, t_particle::name, particle, and particle_group_num.

t_particle_group* get_particle_group_by_name ( const char *  grname)

Definition at line 55 of file geant.cxx.

View newest version in sPHENIX GitHub at line 55 of file geant.cxx

References t_particle_group::grname, and particle_group_num.

Referenced by TrKalmanFilter::SetParticleGroup().

+ Here is the caller graph for this function:

Variable Documentation

int particle_group_num = sizeof(particle_groups)/sizeof(particle_groups[0])

Definition at line 34 of file geant.cxx.

View newest version in sPHENIX GitHub at line 34 of file geant.cxx

Referenced by get_particle_by_name(), and get_particle_group_by_name().

t_particle_group particle_groups[]
Initial value:
= {
{(char*)"pion", 0.1395700, _DEDX_HADRON_,
{{(char*)"pi+", 8, 211}, {(char*)"pi-", 9, -211}}},
{(char*)"kaon", 0.493677, _DEDX_HADRON_,
{{(char*)"K+", 11, 321}, {(char*)"K-", 12, -321}}},
{(char*)"proton", 0.93827231, _DEDX_HADRON_,
{{(char*)"Proton", 14, 2212}, {(char*)"Antiproton",15, -2212}}},
{(char*)"electron", 5.109990615E-4, _DEDX_ELECTRON_,
{{(char*)"Positron", 2, -11}, {(char*)"Electron", 3, 11}}}}

Definition at line 24 of file geant.cxx.

View newest version in sPHENIX GitHub at line 24 of file geant.cxx