GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
genie::SPPEventGenerator::Vertex Struct Reference

Public Member Functions

 Vertex ()
 
 Vertex (double px1, double px2, double px3, double px4)
 
 ~Vertex ()
 
void Print (std::ostream &os)
 
bool operator== (const Vertex &v) const
 

Public Attributes

double x1
 
double x2
 
double x3
 
double x4
 

Detailed Description

Definition at line 71 of file SPPEventGenerator.h.

Constructor & Destructor Documentation

genie::SPPEventGenerator::Vertex::Vertex ( void  )
inline

Definition at line 73 of file SPPEventGenerator.h.

73  : Vertex (0., 0., 0., 0.)
74  {};
genie::SPPEventGenerator::Vertex::Vertex ( double  px1,
double  px2,
double  px3,
double  px4 
)
inline
genie::SPPEventGenerator::Vertex::~Vertex ( )
inline

Definition at line 77 of file SPPEventGenerator.h.

77 {};

Member Function Documentation

bool genie::SPPEventGenerator::Vertex::operator== ( const Vertex v) const
inline

Definition at line 83 of file SPPEventGenerator.h.

References e, epsilon, x1, x2, x3, and x4.

84  {
85  double epsilon = 1e-5;
86  return (TMath::Abs(this->x1 - v.x1) < epsilon || TMath::Abs(this->x2 - v.x2) < epsilon || TMath::Abs(this->x3 - v.x3) < epsilon || TMath::Abs(this->x4 - v.x4) < epsilon);
87  };
const double epsilon
const double e
void genie::SPPEventGenerator::Vertex::Print ( std::ostream &  os)
inline

Definition at line 79 of file SPPEventGenerator.h.

References x1, x2, x3, and x4.

Referenced by genie::SPPEventGenerator::Cell::Print().

80  {
81  os << "(" << x1 << "," << x2 << "," << x3 << "," << x4 << ")";
82  };

Member Data Documentation

double genie::SPPEventGenerator::Vertex::x1

Definition at line 77 of file SPPEventGenerator.h.

Referenced by operator==(), and Print().

double genie::SPPEventGenerator::Vertex::x2

Definition at line 77 of file SPPEventGenerator.h.

Referenced by operator==(), and Print().

double genie::SPPEventGenerator::Vertex::x3

Definition at line 77 of file SPPEventGenerator.h.

Referenced by operator==(), and Print().

double genie::SPPEventGenerator::Vertex::x4

Definition at line 77 of file SPPEventGenerator.h.

Referenced by operator==(), and Print().


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