Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Garfield::Solid Class Referenceabstract

#include <Solid.hh>

+ Inheritance diagram for Garfield::Solid:

Public Member Functions

 Solid ()
 
virtual ~Solid ()
 
virtual bool IsInside (const double &x, const double &y, const double &z) const =0
 
virtual bool GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const =0
 
virtual bool IsBox () const
 
virtual bool IsTube () const
 
virtual bool IsSphere () const
 
virtual bool GetCenter (double &x, double &y, double &z) const =0
 
virtual bool GetDimensions (double &l1, double &l2, double &l3) const =0
 
virtual bool GetOrientation (double &ctheta, double &stheta, double &cphi, double &shpi) const =0
 
void EnableDebugging ()
 
void DisableDebugging ()
 

Protected Attributes

bool m_debug
 

Detailed Description

Definition at line 8 of file Solid.hh.

Constructor & Destructor Documentation

◆ Solid()

Garfield::Solid::Solid ( )
inline

Definition at line 12 of file Solid.hh.

12: m_debug(false) {}
bool m_debug
Definition: Solid.hh:35

◆ ~Solid()

virtual Garfield::Solid::~Solid ( )
inlinevirtual

Definition at line 14 of file Solid.hh.

14{}

Member Function Documentation

◆ DisableDebugging()

void Garfield::Solid::DisableDebugging ( )
inline

Definition at line 32 of file Solid.hh.

32{ m_debug = false; }

◆ EnableDebugging()

void Garfield::Solid::EnableDebugging ( )
inline

Definition at line 31 of file Solid.hh.

31{ m_debug = true; }

◆ GetBoundingBox()

virtual bool Garfield::Solid::GetBoundingBox ( double &  xmin,
double &  ymin,
double &  zmin,
double &  xmax,
double &  ymax,
double &  zmax 
) const
pure virtual

◆ GetCenter()

virtual bool Garfield::Solid::GetCenter ( double &  x,
double &  y,
double &  z 
) const
pure virtual

◆ GetDimensions()

virtual bool Garfield::Solid::GetDimensions ( double &  l1,
double &  l2,
double &  l3 
) const
pure virtual

◆ GetOrientation()

virtual bool Garfield::Solid::GetOrientation ( double &  ctheta,
double &  stheta,
double &  cphi,
double &  shpi 
) const
pure virtual

◆ IsBox()

virtual bool Garfield::Solid::IsBox ( ) const
inlinevirtual

Reimplemented in Garfield::SolidBox.

Definition at line 21 of file Solid.hh.

21{ return false; }

Referenced by Garfield::ViewGeometry::Plot().

◆ IsInside()

virtual bool Garfield::Solid::IsInside ( const double &  x,
const double &  y,
const double &  z 
) const
pure virtual

◆ IsSphere()

virtual bool Garfield::Solid::IsSphere ( ) const
inlinevirtual

Reimplemented in Garfield::SolidSphere.

Definition at line 23 of file Solid.hh.

23{ return false; }

Referenced by Garfield::ViewGeometry::Plot().

◆ IsTube()

virtual bool Garfield::Solid::IsTube ( ) const
inlinevirtual

Reimplemented in Garfield::SolidTube.

Definition at line 22 of file Solid.hh.

22{ return false; }

Referenced by Garfield::ViewGeometry::Plot().

Member Data Documentation

◆ m_debug

bool Garfield::Solid::m_debug
protected

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