xboa
|
#include <Python.h>
#include <structmember.h>
#include <string.h>
#include <stdio.h>
#include "Hitcore.h"
Go to the source code of this file.
Macros | |
#define | Hitcore_c 1 |
Functions | |
static void | hc_Hitcore_dealloc (Hitcore *self) |
static void | hc_Hitcore_free (Hitcore *self) |
static PyObject * | hc_Hitcore_alloc (PyTypeObject *type, Py_ssize_t nitems) |
static PyObject * | hc_Hitcore_new (PyTypeObject *type, Py_ssize_t nitems) |
static int | hc_Hitcore_init (PyObject *self, PyObject *args, PyObject *kwds) |
double | hc_get_x (Hitcore *self) |
double | hc_get_y (Hitcore *self) |
double | hc_get_z (Hitcore *self) |
double | hc_get_t (Hitcore *self) |
double | hc_get_px (Hitcore *self) |
double | hc_get_py (Hitcore *self) |
double | hc_get_pz (Hitcore *self) |
double | hc_get_energy (Hitcore *self) |
double | hc_get_total_weight (Hitcore *self) |
double | hc_get_local_weight (Hitcore *self) |
double | hc_get_mass (Hitcore *self) |
double | hc_get_bx (Hitcore *self) |
double | hc_get_by (Hitcore *self) |
double | hc_get_bz (Hitcore *self) |
double | hc_get_ex (Hitcore *self) |
double | hc_get_ey (Hitcore *self) |
double | hc_get_ez (Hitcore *self) |
double | hc_get_sx (Hitcore *self) |
double | hc_get_sy (Hitcore *self) |
double | hc_get_sz (Hitcore *self) |
double | hc_get_pl (Hitcore *self) |
double | hc_get_tau (Hitcore *self) |
double | hc_get_e_dep (Hitcore *self) |
double | hc_get_charge (Hitcore *self) |
int | hc_get_spill (Hitcore *self) |
int | hc_get_event_number (Hitcore *self) |
int | hc_get_station (Hitcore *self) |
int | hc_get_pid (Hitcore *self) |
int | hc_get_status (Hitcore *self) |
int | hc_get_particle_number (Hitcore *self) |
PyObject * | weight_dict_key (Hitcore *self) |
double | hc_get_global_weight (Hitcore *self) |
PyObject * | hc_get_global_weight_dict (PyObject *self, PyObject *args) |
static PyObject * | hc_clear_global_weights (PyObject *self, PyObject *args) |
static hc_get_dbl_function | hc_get_dbl_function_by_string (const char *variable) |
static double | hc_get_dbl_by_string (Hitcore *self, const char *variable, int *ierr) |
static hc_get_int_function | hc_get_int_function_by_string (const char *variable) |
static int | hc_get_int_by_string (Hitcore *self, const char *variable, int *ierr) |
static PyObject * | hc_get_variables_to_python (PyObject *self, PyObject *args) |
static PyObject * | hc_get_python (PyObject *self, PyObject *args) |
void | hc_set_x (Hitcore *self, double value) |
void | hc_set_y (Hitcore *self, double value) |
void | hc_set_z (Hitcore *self, double value) |
void | hc_set_t (Hitcore *self, double value) |
void | hc_set_px (Hitcore *self, double value) |
void | hc_set_py (Hitcore *self, double value) |
void | hc_set_pz (Hitcore *self, double value) |
void | hc_set_energy (Hitcore *self, double value) |
void | hc_set_mass (Hitcore *self, double value) |
void | hc_set_local_weight (Hitcore *self, double weight) |
void | hc_set_bx (Hitcore *self, double value) |
void | hc_set_by (Hitcore *self, double value) |
void | hc_set_bz (Hitcore *self, double value) |
void | hc_set_ex (Hitcore *self, double value) |
void | hc_set_ey (Hitcore *self, double value) |
void | hc_set_ez (Hitcore *self, double value) |
void | hc_set_sx (Hitcore *self, double value) |
void | hc_set_sy (Hitcore *self, double value) |
void | hc_set_sz (Hitcore *self, double value) |
void | hc_set_pl (Hitcore *self, double value) |
void | hc_set_tau (Hitcore *self, double value) |
void | hc_set_e_dep (Hitcore *self, double value) |
void | hc_set_charge (Hitcore *self, double value) |
void | hc_set_station (Hitcore *self, int value) |
void | hc_set_pid (Hitcore *self, int value) |
void | hc_set_status (Hitcore *self, int value) |
void | hc_set_particle_number (Hitcore *self, int value) |
void | hc_set_spill (Hitcore *self, int value) |
void | hc_set_event_number (Hitcore *self, int value) |
void | hc_set_global_weight (Hitcore *self, double global_weight) |
static PyObject * | hc_set_variables_to_python (PyObject *self, PyObject *args) |
static hc_set_dbl_function | hc_set_dbl_function_by_string (const char *variable) |
static void | hc_set_dbl_by_string (Hitcore *self, const char *variable, double value, int *ierr) |
static hc_set_int_function | hc_set_int_function_by_string (const char *variable) |
static void | hc_set_int_by_string (Hitcore *self, const char *variable, double value, int *ierr) |
static PyObject * | hc_set_python (PyObject *self, PyObject *args) |
static PyObject * | hc_integrity_test (PyObject *self, PyObject *args) |
PyMODINIT_FUNC | initHitcore (void) |
static vector * | vector_init (void *data, size_t data_length, size_t allocd_length, size_t object_size) |
static vector * | vector_alloc (size_t object_size, int n_elements) |
static vector * | vector_realloc (vector *vec, int n_elements) |
static void | vector_free (vector *vec) |
static void | vector_insert (vector *vec, void *start, void *end, size_t insert_point, int *ierr) |
static void * | vector_el (vector *vec, int element) |
static void * | vector_el_bc (vector *vec, int element) |
void | no_warn (void) |
Variables | |
PyObject * | global_weight_table = NULL |
int | n_get_dbl_variables = 0 |
static __hc_get_dbl_function | hc_get_dbl_function_list [] |
int | n_set_dbl_variables = 0 |
static __hc_set_dbl_function | hc_set_dbl_function_list [] |
int | n_get_int_variables = 0 |
static __hc_get_int_function | hc_get_int_function_list [] |
int | n_set_int_variables = 0 |
static __hc_set_int_function | hc_set_int_function_list [] |
static PyMemberDef | hc_Hitcore_members [] |
static PyMethodDef | hc_Hitcore_methods [] |
static PyTypeObject | HitcoreType |
|
static |
Definition at line 126 of file Hitcore.c.
References hc_Hitcore_free().
|
static |
Definition at line 131 of file Hitcore.c.
Referenced by hc_Hitcore_dealloc().
|
static |
Definition at line 137 of file Hitcore.c.
Referenced by hc_Hitcore_new().
|
static |
Definition at line 145 of file Hitcore.c.
References Hitcore::bx, Hitcore::by, Hitcore::bz, Hitcore::charge, Hitcore::e_dep, Hitcore::energy, Hitcore::event, Hitcore::ex, Hitcore::ey, Hitcore::ez, hc_Hitcore_alloc(), Hitcore::mass, Hitcore::particle, Hitcore::pid, Hitcore::pl, Hitcore::px, Hitcore::py, Hitcore::pz, Hitcore::spill, Hitcore::station, Hitcore::status, Hitcore::sx, Hitcore::sy, Hitcore::sz, Hitcore::t, Hitcore::tau, Hitcore::weight, Hitcore::x, Hitcore::y, and Hitcore::z.
|
static |
Definition at line 182 of file Hitcore.c.
References Hitcore::bx, Hitcore::by, Hitcore::bz, Hitcore::charge, Hitcore::e_dep, Hitcore::energy, Hitcore::event, Hitcore::ex, Hitcore::ey, Hitcore::ez, Hitcore::mass, Hitcore::particle, Hitcore::pid, Hitcore::pl, Hitcore::px, Hitcore::py, Hitcore::pz, Hitcore::spill, Hitcore::station, Hitcore::status, Hitcore::sx, Hitcore::sy, Hitcore::sz, Hitcore::t, Hitcore::tau, Hitcore::weight, Hitcore::x, Hitcore::y, and Hitcore::z.
double hc_get_total_weight | ( | Hitcore * | self | ) |
Definition at line 230 of file Hitcore.c.
References hc_get_global_weight(), and hc_get_local_weight().
Referenced by covariance_matrix_char(), and get_moment_char().
double hc_get_local_weight | ( | Hitcore * | self | ) |
Definition at line 231 of file Hitcore.c.
Referenced by hc_get_total_weight().
int hc_get_spill | ( | Hitcore * | self | ) |
Definition at line 247 of file Hitcore.c.
Referenced by weight_dict_key().
int hc_get_event_number | ( | Hitcore * | self | ) |
Definition at line 248 of file Hitcore.c.
Referenced by weight_dict_key().
int hc_get_particle_number | ( | Hitcore * | self | ) |
Definition at line 252 of file Hitcore.c.
Referenced by weight_dict_key().
PyObject* weight_dict_key | ( | Hitcore * | self | ) |
Definition at line 255 of file Hitcore.c.
References hc_get_event_number(), hc_get_particle_number(), and hc_get_spill().
Referenced by hc_get_global_weight(), and hc_set_global_weight().
double hc_get_global_weight | ( | Hitcore * | self | ) |
Definition at line 272 of file Hitcore.c.
References global_weight_table, and weight_dict_key().
Referenced by hc_get_total_weight().
PyObject* hc_get_global_weight_dict | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 292 of file Hitcore.c.
References global_weight_table.
|
static |
Definition at line 297 of file Hitcore.c.
References global_weight_table.
|
static |
Definition at line 307 of file Hitcore.c.
References hc_get_dbl_function_list, and n_get_dbl_variables.
|
static |
Definition at line 318 of file Hitcore.c.
References hc_get_dbl_function_by_string.
Referenced by hc_get_python().
|
static |
Definition at line 330 of file Hitcore.c.
References hc_get_int_function_list, and n_get_int_variables.
Referenced by hc_get_int_by_string().
|
static |
Definition at line 342 of file Hitcore.c.
References hc_get_int_function_by_string().
Referenced by hc_get_python().
|
static |
Definition at line 354 of file Hitcore.c.
References hc_get_dbl_function_list, and hc_get_int_function_list.
|
static |
Definition at line 366 of file Hitcore.c.
References hc_get_dbl_by_string(), and hc_get_int_by_string().
void hc_set_local_weight | ( | Hitcore * | self, |
double | weight | ||
) |
Definition at line 400 of file Hitcore.c.
Referenced by _cut_double(), import_hitcore(), and initHitcore().
void hc_set_global_weight | ( | Hitcore * | self, |
double | global_weight | ||
) |
Definition at line 423 of file Hitcore.c.
References global_weight_table, and weight_dict_key().
Referenced by _cut_double(), import_hitcore(), and initHitcore().
|
static |
Definition at line 433 of file Hitcore.c.
References hc_set_dbl_function_list, and hc_set_int_function_list.
|
static |
Definition at line 445 of file Hitcore.c.
References hc_set_dbl_function_list, and n_set_dbl_variables.
Referenced by hc_set_dbl_by_string().
|
static |
Definition at line 454 of file Hitcore.c.
References hc_set_dbl_function_by_string().
Referenced by hc_set_python().
|
static |
Definition at line 461 of file Hitcore.c.
References hc_set_int_function_list, and n_set_int_variables.
Referenced by hc_set_int_by_string().
|
static |
Definition at line 472 of file Hitcore.c.
References hc_set_int_function_by_string().
Referenced by hc_set_python().
|
static |
Definition at line 480 of file Hitcore.c.
References hc_set_dbl_by_string(), and hc_set_int_by_string().
|
static |
Definition at line 548 of file Hitcore.c.
References hc_get_dbl_function_list, hc_get_int_function_list, hc_set_dbl_function_list, hc_set_int_function_list, n_get_dbl_variables, n_get_int_variables, n_set_dbl_variables, and n_set_int_variables.
PyMODINIT_FUNC initHitcore | ( | void | ) |
Definition at line 619 of file Hitcore.c.
References global_weight_table, hc_get_dbl_function_by_string, hc_get_dbl_function_list, hc_get_int_function_list, hc_set_dbl_function_list, hc_set_global_weight(), hc_set_int_function_list, hc_set_local_weight(), n_get_dbl_variables, n_get_int_variables, n_set_dbl_variables, n_set_int_variables, vector_alloc(), vector_el(), vector_el_bc(), vector_free(), vector_init(), vector_insert(), vector_realloc(), and vector_size.
|
static |
Definition at line 671 of file Hitcore.c.
References vector::allocd_length, vector::data, vector::data_length, and vector::object_size.
Referenced by initHitcore().
|
static |
Definition at line 683 of file Hitcore.c.
References vector::allocd_length, vector::data, vector::data_length, and vector::object_size.
Referenced by initHitcore().
Definition at line 696 of file Hitcore.c.
References vector::allocd_length, vector::data, vector::data_length, and vector::object_size.
Referenced by initHitcore().
|
static |
Definition at line 706 of file Hitcore.c.
References vector::data.
Referenced by initHitcore(), and no_warn().
|
static |
Definition at line 716 of file Hitcore.c.
References vector::allocd_length, vector::data, and vector::data_length.
Referenced by initHitcore().
|
static |
Definition at line 737 of file Hitcore.c.
References vector::data, and vector::object_size.
Referenced by initHitcore().
|
static |
Definition at line 742 of file Hitcore.c.
References vector::data, vector::data_length, and vector::object_size.
Referenced by initHitcore().
void no_warn | ( | void | ) |
Definition at line 751 of file Hitcore.c.
References Bunchcore_shallow_copy(), and vector_free().
PyObject* global_weight_table = NULL |
Definition at line 32 of file Hitcore.c.
Referenced by hc_clear_global_weights(), hc_get_global_weight(), hc_get_global_weight_dict(), hc_set_global_weight(), and initHitcore().
int n_get_dbl_variables = 0 |
Definition at line 36 of file Hitcore.c.
Referenced by hc_get_dbl_function_by_string(), hc_integrity_test(), and initHitcore().
|
static |
Definition at line 37 of file Hitcore.c.
Referenced by hc_get_dbl_function_by_string(), hc_get_variables_to_python(), hc_integrity_test(), and initHitcore().
int n_set_dbl_variables = 0 |
Definition at line 69 of file Hitcore.c.
Referenced by hc_integrity_test(), hc_set_dbl_function_by_string(), and initHitcore().
|
static |
Definition at line 70 of file Hitcore.c.
Referenced by hc_integrity_test(), hc_set_dbl_function_by_string(), hc_set_variables_to_python(), and initHitcore().
int n_get_int_variables = 0 |
Definition at line 99 of file Hitcore.c.
Referenced by hc_get_int_function_by_string(), hc_integrity_test(), and initHitcore().
|
static |
Definition at line 100 of file Hitcore.c.
Referenced by hc_get_int_function_by_string(), hc_get_variables_to_python(), hc_integrity_test(), and initHitcore().
int n_set_int_variables = 0 |
Definition at line 113 of file Hitcore.c.
Referenced by hc_integrity_test(), hc_set_int_function_by_string(), and initHitcore().
|
static |
Definition at line 114 of file Hitcore.c.
Referenced by hc_integrity_test(), hc_set_int_function_by_string(), hc_set_variables_to_python(), and initHitcore().
|
static |