EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHBBox Class Reference

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4main/PHBBox.h>

Public Member Functions

 PHBBox (const double x0, const double y0, const double x1, const double y1)
 Construct with the boundaries in x and y.
 
bool ClipLine (double &x0, double &y0, double &x1, double &y1) const
 
void Print (std::ostream &os=std::cout)
 

Private Types

enum  { RIGHT =1, BOTTOM =2, LEFT =4, TOP =8 }
 

Private Member Functions

int ClipCode (const double x, const double y) const
 

Private Attributes

double _x0
 
double _y0
 
double _x1
 
double _y1
 

Detailed Description

Definition at line 12 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 12 of file PHBBox.h

Member Enumeration Documentation

anonymous enum
private
Enumerator:
RIGHT 
BOTTOM 
LEFT 
TOP 

Definition at line 97 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 97 of file PHBBox.h

Constructor & Destructor Documentation

PHBBox::PHBBox ( const double  x0,
const double  y0,
const double  x1,
const double  y1 
)
inline

Construct with the boundaries in x and y.

Definition at line 17 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 17 of file PHBBox.h

Member Function Documentation

int PHBBox::ClipCode ( const double  x,
const double  y 
) const
inlineprivate

Definition at line 99 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 99 of file PHBBox.h

References _x0, _x1, _y0, _y1, BOTTOM, LEFT, RIGHT, and TOP.

Referenced by ClipLine().

+ Here is the caller graph for this function:

bool PHBBox::ClipLine ( double &  x0,
double &  y0,
double &  x1,
double &  y1 
) const
inline

Given a line, clip it. Return true if the line should appear in the bounding box. The endpoints are updated to reflect the clipping

Definition at line 23 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 23 of file PHBBox.h

References _x0, _x1, _y0, _y1, BOTTOM, ClipCode(), LEFT, RIGHT, TOP, x, and y.

+ Here is the call graph for this function:

void PHBBox::Print ( std::ostream &  os = std::cout)
inline

Definition at line 91 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 91 of file PHBBox.h

References _x0, _x1, _y0, and _y1.

Member Data Documentation

double PHBBox::_x0
private

Definition at line 109 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 109 of file PHBBox.h

Referenced by ClipCode(), ClipLine(), and Print().

double PHBBox::_x1
private

Definition at line 111 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 111 of file PHBBox.h

Referenced by ClipCode(), ClipLine(), and Print().

double PHBBox::_y0
private

Definition at line 110 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 110 of file PHBBox.h

Referenced by ClipCode(), ClipLine(), and Print().

double PHBBox::_y1
private

Definition at line 112 of file PHBBox.h.

View newest version in sPHENIX GitHub at line 112 of file PHBBox.h

Referenced by ClipCode(), ClipLine(), and Print().


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