Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/cornelius.h>
Public Member Functions | |
Square () | |
~Square () | |
void | init (double **, int *, double *, double *) |
void | construct_lines (double) |
int | is_ambiguous () |
int | get_Nlines () |
Line * | get_lines () |
Square () | |
~Square () | |
void | init (double **, int *, double *, double *) |
void | construct_lines (double) |
int | is_ambiguous () |
int | get_Nlines () |
Line * | get_lines () |
Square () | |
~Square () | |
void | init (double **, int *, double *, double *) |
void | construct_lines (double) |
int | is_ambiguous () |
int | get_Nlines () |
Line * | get_lines () |
Square () | |
~Square () | |
void | init (double **, int *, double *, double *) |
void | construct_lines (double) |
int | is_ambiguous () |
int | get_Nlines () |
Line * | get_lines () |
Private Member Functions | |
void | ends_of_edge (double) |
void | find_outside (double) |
void | ends_of_edge (double) |
void | find_outside (double) |
void | ends_of_edge (double) |
void | find_outside (double) |
void | ends_of_edge (double) |
void | find_outside (double) |
Private Attributes | |
double ** | points |
double ** | cuts |
double ** | out |
double ** | points_temp |
double * | out_temp |
int * | const_i |
double * | const_value |
int | x1 |
int | x2 |
double * | dx |
int | Ncuts |
int | Nlines |
Line * | lines |
int | ambiguous |
Static Private Attributes | |
static const int | DIM = 4 |
static const int | SQUARE_DIM = 2 |
static const int | MAX_POINTS = 4 |
static const int | MAX_LINES = 2 |
This class handles the squares. Finds the edges of the surface and also the points which are always outside the surface so that we can determine correct direction for normal vector.
This class handles the squares which are splitted from the cube. Finds the edges of the surface and also the poinst which point the outward direction.
13.10.2011 Hannu Holopainen
Definition at line 996 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 996 of file cornelius.cpp
Square::Square | ( | ) |
Constructor allocates memory for the basic things needed in the process.
Definition at line 1034 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1034 of file cornelius.cpp
References cuts, i, j, test_fpe::lines, and out.
Square::~Square | ( | ) |
Destructor frees memory allocated in the constructor.
Definition at line 1063 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1063 of file cornelius.cpp
References cuts, i, test_fpe::lines, and out.
Square::Square | ( | ) |
Square::~Square | ( | ) |
Square::Square | ( | ) |
Square::~Square | ( | ) |
Square::Square | ( | ) |
Square::~Square | ( | ) |
void Square::construct_lines | ( | double | ) |
void Square::construct_lines | ( | double | ) |
void Square::construct_lines | ( | double | E0 | ) |
Construct the lines which represent the surface on this square.
[in] | E0 | The value which defines surface |
Definition at line 1134 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1134 of file cornelius.cpp
References cuts, i, j, test_fpe::lines, and out.
void Square::construct_lines | ( | double | ) |
|
private |
|
private |
|
private |
This finds the points from the edges where the surface crosses the given square.
The edges are gone through in the following order
2 Since in the case where the ends are on each edge the ends are assumed to be connected like \
[in] | E0 | Value that defines this surface |
Definition at line 1192 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1192 of file cornelius.cpp
References cuts, and Acts::UnitConstants::e.
|
private |
|
private |
|
private |
|
private |
Finds the points showing the outside direction.
[in] | E0 | Value that defines this surface |
Definition at line 1263 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1263 of file cornelius.cpp
References cuts, double(), i, j, and out.
|
private |
Line* Square::get_lines | ( | ) |
Line* Square::get_lines | ( | ) |
Line* Square::get_lines | ( | ) |
Line * Square::get_lines | ( | ) |
Returns a table containing the lines found from this square.
Definition at line 1370 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1370 of file cornelius.cpp
References test_fpe::lines.
int Square::get_Nlines | ( | ) |
int Square::get_Nlines | ( | ) |
int Square::get_Nlines | ( | ) |
int Square::get_Nlines | ( | ) |
Returns the number of lines in this square.
Definition at line 1358 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1358 of file cornelius.cpp
Initializes the square. Can be used several times to replace the old square with a new one.
[in] | sq | Values at ends of the square. |
[in] | c_i | Indices that are constant on this square |
[in] | s_i | Indices that are x and y in this square |
[in] | c_val | Values for the constant indices |
[in] | dex | Length of sides x and y |
Definition at line 1097 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1097 of file cornelius.cpp
int Square::is_ambiguous | ( | ) |
int Square::is_ambiguous | ( | ) |
int Square::is_ambiguous | ( | ) |
Tells if the case is ambiguous in this square.
Definition at line 1346 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1346 of file cornelius.cpp
int Square::is_ambiguous | ( | ) |
|
private |
Definition at line 1015 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1015 of file cornelius.cpp
|
private |
Definition at line 1008 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1008 of file cornelius.cpp
|
private |
Definition at line 1009 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1009 of file cornelius.cpp
|
private |
Definition at line 1004 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1004 of file cornelius.cpp
|
staticprivate |
Definition at line 999 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 999 of file cornelius.cpp
|
private |
Definition at line 1011 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1011 of file cornelius.cpp
|
private |
Definition at line 1014 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1014 of file cornelius.cpp
|
staticprivate |
Definition at line 1002 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1002 of file cornelius.cpp
|
staticprivate |
Definition at line 1001 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1001 of file cornelius.cpp
|
private |
Definition at line 1012 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1012 of file cornelius.cpp
|
private |
Definition at line 1013 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1013 of file cornelius.cpp
|
private |
Definition at line 1005 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1005 of file cornelius.cpp
|
private |
Definition at line 1007 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1007 of file cornelius.cpp
|
private |
Definition at line 1003 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1003 of file cornelius.cpp
|
private |
Definition at line 1006 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1006 of file cornelius.cpp
|
staticprivate |
Definition at line 1000 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1000 of file cornelius.cpp
|
private |
Definition at line 1010 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1010 of file cornelius.cpp
|
private |
Definition at line 1010 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1010 of file cornelius.cpp