ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::Ray Class Reference

#include <VolumeSplitterUtils.h>

Collaboration diagram for InDetDD::Ray:

Public Member Functions

 Ray ()
 Ray (const Point &start, const Point &end)
void set (const Point &start, const Point &end)
const Pointstart () const
const Pointend () const
bool valid () const
bool foundStart () const
bool horizontal () const
bool vertical () const
void setFound ()
void setInvalid ()

Private Member Functions

void setDirection ()

Private Attributes

bool m_valid
bool m_found
bool m_horizontal = false
bool m_vertical = false
Point m_start
Point m_end

Detailed Description

Definition at line 44 of file VolumeSplitterUtils.h.

Constructor & Destructor Documentation

◆ Ray() [1/2]

InDetDD::Ray::Ray ( )

Definition at line 316 of file VolumeSplitterUtils.cxx.

317 : m_valid(false),
318 m_found(false),
319 m_horizontal(false),
320 m_vertical(false)
321 {}

◆ Ray() [2/2]

InDetDD::Ray::Ray ( const Point & start,
const Point & end )

Definition at line 323 of file VolumeSplitterUtils.cxx.

324 : m_valid(true),
325 m_found(false),
326 m_start(start),
327 m_end(end) {
328 m_end.setLast();
329 setDirection();
330 }
const Point & end() const
const Point & start() const

Member Function Documentation

◆ end()

const Point & InDetDD::Ray::end ( ) const
inline

Definition at line 50 of file VolumeSplitterUtils.h.

50{return m_end;}

◆ foundStart()

bool InDetDD::Ray::foundStart ( ) const
inline

Definition at line 52 of file VolumeSplitterUtils.h.

52{return m_found;}

◆ horizontal()

bool InDetDD::Ray::horizontal ( ) const
inline

Definition at line 53 of file VolumeSplitterUtils.h.

53{return m_horizontal;}

◆ set()

void InDetDD::Ray::set ( const Point & start,
const Point & end )

Definition at line 333 of file VolumeSplitterUtils.cxx.

333 {
334 m_start = start;
335 m_end = end;
336 setDirection();
337 }

◆ setDirection()

void InDetDD::Ray::setDirection ( )
private

Definition at line 340 of file VolumeSplitterUtils.cxx.

340 {
341 m_vertical = (m_start.z() == m_end.z());
342 m_horizontal = (m_start.r() == m_end.r());
343 if (m_vertical && m_horizontal) {
344 m_vertical = false;
345 m_horizontal = false;
346 }
347 }

◆ setFound()

void InDetDD::Ray::setFound ( )
inline

Definition at line 55 of file VolumeSplitterUtils.h.

55{m_found = true;}

◆ setInvalid()

void InDetDD::Ray::setInvalid ( )
inline

Definition at line 56 of file VolumeSplitterUtils.h.

56{m_valid = false;}

◆ start()

const Point & InDetDD::Ray::start ( ) const
inline

Definition at line 49 of file VolumeSplitterUtils.h.

49{return m_start;}

◆ valid()

bool InDetDD::Ray::valid ( ) const
inline

Definition at line 51 of file VolumeSplitterUtils.h.

51{return m_valid;}

◆ vertical()

bool InDetDD::Ray::vertical ( ) const
inline

Definition at line 54 of file VolumeSplitterUtils.h.

54{return m_vertical;}

Member Data Documentation

◆ m_end

Point InDetDD::Ray::m_end
private

Definition at line 66 of file VolumeSplitterUtils.h.

◆ m_found

bool InDetDD::Ray::m_found
private

Definition at line 62 of file VolumeSplitterUtils.h.

◆ m_horizontal

bool InDetDD::Ray::m_horizontal = false
private

Definition at line 63 of file VolumeSplitterUtils.h.

◆ m_start

Point InDetDD::Ray::m_start
private

Definition at line 65 of file VolumeSplitterUtils.h.

◆ m_valid

bool InDetDD::Ray::m_valid
private

Definition at line 61 of file VolumeSplitterUtils.h.

◆ m_vertical

bool InDetDD::Ray::m_vertical = false
private

Definition at line 64 of file VolumeSplitterUtils.h.


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