EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <cstdio>
#include <cmath>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <ayk.h>
#include <Mgrid.h>
Go to the source code of this file.
Macros | |
#define | quad1(x, xarr, yarr) |
#define | quad2(x, xarr, yarr) |
#define | COORD_NAMES_NUM (sizeof(coord_names)/sizeof(coord_names[0])) |
Functions | |
Mgrid * | create_single_mgrid_header (char *name, CoordSystem *coord, CoordSystem *field, MgridDirection *dir[3], unsigned cell_contents_bits) |
Mgrid * | create_mgrid_heap_header (char *name, int field_calculation_method) |
static double | quad3 (double x, double xa[4], double ya[4]) |
static double | trivial_assignment (double xx, double coord[1], double value[1]) |
static double | linear_interpolation (double xx, double coord[2], double value[2]) |
static double | quad_interpolation (double xx, double coord[3], double value[3]) |
t_coord_name * | find_coord_by_name (unsigned char system_type, char name) |
int | basic_types_match (void) |
static t_3d_cs_vector | transform_coord_type (t_3d_cs_vector *X, unsigned char desired_coord_system) |
static void | transform_field_type (double mtx[2][2], t_3d_cs_vector *D, unsigned char desired_coord_system) |
Variables | |
static t_coord_name | coord_names [] |
#define COORD_NAMES_NUM (sizeof(coord_names)/sizeof(coord_names[0])) |
Definition at line 1069 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 1069 of file Mgrid.cxx
Referenced by find_coord_by_name().
#define quad1 | ( | x, | |
xarr, | |||
yarr | |||
) |
Definition at line 462 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 462 of file Mgrid.cxx
Referenced by quad3(), and quad_interpolation().
#define quad2 | ( | x, | |
xarr, | |||
yarr | |||
) |
Definition at line 468 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 468 of file Mgrid.cxx
Referenced by quad3().
int basic_types_match | ( | void | ) |
Definition at line 1098 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 1098 of file Mgrid.cxx
Referenced by Mgrid::exportFieldMap(), and import_field_map().
Mgrid* create_mgrid_heap_header | ( | char * | name, |
int | field_calculation_method | ||
) |
Definition at line 162 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 162 of file Mgrid.cxx
References _CARTESIAN_, _MGRID_HEAP_, MgridHeader::coord, MgridHeader::field, MgridHeader::field_calculation_method, and CoordSystem::setSystemType().
Referenced by convert_cell_list_to_mgrid().
Mgrid* create_single_mgrid_header | ( | char * | name, |
CoordSystem * | coord, | ||
CoordSystem * | field, | ||
MgridDirection * | dir[3], | ||
unsigned | cell_contents_bits | ||
) |
Definition at line 118 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 118 of file Mgrid.cxx
References _MAX_KNOWN_CELL_CONTENTS_BIT_, _RECTANGULAR_MGRID_, MgridHeader::cell_contents_bits, MgridHeader::coord, MgridHeader::dir, CoordSystem::fake, MgridHeader::field, MgridDirection::getStep(), and printf().
Referenced by convert_cell_list_to_mgrid(), EicBeamLineElementMap::Initialize(), and HtcKalmanFilter::InitializeMgridSlice().
t_coord_name* find_coord_by_name | ( | unsigned char | system_type, |
char | name | ||
) |
Definition at line 1071 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 1071 of file Mgrid.cxx
References t_coord_name::allowed_systems, COORD_NAMES_NUM, and t_coord_name::name.
Referenced by MgridInterpolation::assignSuggestedSequence(), calculate_swapping_rules(), CoordSystem::CoordSystem(), and Mgrid::switchInterpolation().
|
static |
Definition at line 514 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 514 of file Mgrid.cxx
Referenced by Mgrid::cookSequentialFastInterpolation().
|
static |
|
static |
|
static |
Definition at line 1628 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 1628 of file Mgrid.cxx
References _CARTESIAN_, _CYLINDRICAL_, _F_, _R_, _X_, _Y_, _Z_, cos(), deg2rad, rad2deg, SQR, t_3d_cs_vector::system_type, and t_3d_cs_vector::xx.
Referenced by Mgrid::convertInputCoordinates(), and Mgrid::convertOutputField().
|
static |
Definition at line 1668 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 1668 of file Mgrid.cxx
References _CARTESIAN_, _CYLINDRICAL_, t_3d_cs_vector::system_type, and t_3d_cs_vector::xx.
Referenced by Mgrid::convertOutputField().
|
static |
Definition at line 506 of file Mgrid.cxx.
View newest version in sPHENIX GitHub at line 506 of file Mgrid.cxx
Referenced by Mgrid::cookSequentialFastInterpolation().
|
static |