Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Square Class Reference

#include <JETSCAPE/blob/main/external_packages/cornelius.h>

+ Collaboration diagram for Square:

Public Member Functions

 Square ()
 
 ~Square ()
 
void init (double **, int *, double *, double *)
 
void construct_lines (double)
 
int is_ambiguous ()
 
int get_Nlines ()
 
Lineget_lines ()
 
 Square ()
 
 ~Square ()
 
void init (double **, int *, double *, double *)
 
void construct_lines (double)
 
int is_ambiguous ()
 
int get_Nlines ()
 
Lineget_lines ()
 
 Square ()
 
 ~Square ()
 
void init (double **, int *, double *, double *)
 
void construct_lines (double)
 
int is_ambiguous ()
 
int get_Nlines ()
 
Lineget_lines ()
 
 Square ()
 
 ~Square ()
 
void init (double **, int *, double *, double *)
 
void construct_lines (double)
 
int is_ambiguous ()
 
int get_Nlines ()
 
Lineget_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
 
doubleout_temp
 
int * const_i
 
doubleconst_value
 
int x1
 
int x2
 
doubledx
 
int Ncuts
 
int Nlines
 
Linelines
 
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
 

Detailed Description

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

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

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.

Parameters
[in]E0The 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  )
void Square::ends_of_edge ( double  )
private
void Square::ends_of_edge ( double  )
private
void Square::ends_of_edge ( double  E0)
private

This finds the points from the edges where the surface crosses the given square.

The edges are gone through in the following order

4

1 | | 3

2 Since in the case where the ends are on each edge the ends are assumed to be connected like \

Parameters
[in]E0Value 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.

void Square::ends_of_edge ( double  )
private
void Square::find_outside ( double  )
private
void Square::find_outside ( double  )
private
void Square::find_outside ( double  E0)
private

Finds the points showing the outside direction.

Parameters
[in]E0Value 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.

+ Here is the call graph for this function:

void Square::find_outside ( double  )
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.

Returns
List of lines found from 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.

Returns
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

void Square::init ( double **  ,
int *  ,
double ,
double  
)
void Square::init ( double **  ,
int *  ,
double ,
double  
)
void Square::init ( double **  sq,
int *  c_i,
double c_v,
double dex 
)

Initializes the square. Can be used several times to replace the old square with a new one.

Parameters
[in]sqValues at ends of the square.
[in]c_iIndices that are constant on this square
[in]s_iIndices that are x and y in this square
[in]c_valValues for the constant indices
[in]dexLength 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

References i, and j.

void Square::init ( double **  ,
int *  ,
double ,
double  
)
int Square::is_ambiguous ( )
int Square::is_ambiguous ( )
int Square::is_ambiguous ( )

Tells if the case is ambiguous in this square.

Returns
Zero if not ambiguous, one if ambiguous

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 ( )

Member Data Documentation

int Square::ambiguous
private

Definition at line 1015 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1015 of file cornelius.cpp

int * Square::const_i
private

Definition at line 1008 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1008 of file cornelius.cpp

double * Square::const_value
private

Definition at line 1009 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1009 of file cornelius.cpp

double ** Square::cuts
private

Definition at line 1004 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1004 of file cornelius.cpp

static const int Square::DIM = 4
staticprivate

Definition at line 999 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 999 of file cornelius.cpp

double * Square::dx
private

Definition at line 1011 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1011 of file cornelius.cpp

Line * Square::lines
private

Definition at line 1014 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1014 of file cornelius.cpp

static const int Square::MAX_LINES = 2
staticprivate

Definition at line 1002 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1002 of file cornelius.cpp

static const int Square::MAX_POINTS = 4
staticprivate

Definition at line 1001 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1001 of file cornelius.cpp

int Square::Ncuts
private

Definition at line 1012 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1012 of file cornelius.cpp

int Square::Nlines
private

Definition at line 1013 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1013 of file cornelius.cpp

double ** Square::out
private

Definition at line 1005 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1005 of file cornelius.cpp

double * Square::out_temp
private

Definition at line 1007 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1007 of file cornelius.cpp

double ** Square::points
private

Definition at line 1003 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1003 of file cornelius.cpp

double ** Square::points_temp
private

Definition at line 1006 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1006 of file cornelius.cpp

static const int Square::SQUARE_DIM = 2
staticprivate

Definition at line 1000 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1000 of file cornelius.cpp

int Square::x1
private

Definition at line 1010 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1010 of file cornelius.cpp

int Square::x2
private

Definition at line 1010 of file cornelius.cpp.

View newest version in sPHENIX GitHub at line 1010 of file cornelius.cpp


The documentation for this class was generated from the following files: