Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
"Native" geometry, using simple shapes. More...
#include <GeometrySimple.hh>
Classes | |
struct | medium |
struct | solid |
Public Member Functions | |
GeometrySimple () | |
virtual | ~GeometrySimple () |
void | AddSolid (Solid *s, Medium *m) |
Solid * | GetSolid (const double x, const double y, const double z) const |
Medium * | GetMedium (const double x, const double y, const double z) const |
unsigned int | GetNumberOfSolids () const |
unsigned int | GetNumberOfMedia () const |
Solid * | GetSolid (const unsigned int i) const |
virtual Medium * | GetMedium (const unsigned int i) const |
void | Clear () |
void | PrintSolids () |
bool | IsInside (const double x, const double y, const double z) const |
bool | IsInBoundingBox (const double x, const double y, const double z) const |
bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) |
void | EnableDebugging () |
void | DisableDebugging () |
Public Member Functions inherited from Garfield::GeometryBase | |
GeometryBase () | |
virtual | ~GeometryBase () |
virtual Medium * | GetMedium (const double x, const double y, const double z) const =0 |
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)=0 |
Protected Attributes | |
unsigned int | m_nMedia |
std::vector< medium > | m_media |
unsigned int | m_nSolids |
std::vector< solid > | m_solids |
bool | m_hasBoundingBox |
double | m_xMinBoundingBox |
double | m_yMinBoundingBox |
double | m_zMinBoundingBox |
double | m_xMaxBoundingBox |
double | m_yMaxBoundingBox |
double | m_zMaxBoundingBox |
bool | m_debug |
Protected Attributes inherited from Garfield::GeometryBase | |
std::string | m_className |
"Native" geometry, using simple shapes.
Definition at line 13 of file GeometrySimple.hh.
Garfield::GeometrySimple::GeometrySimple | ( | ) |
Definition at line 6 of file GeometrySimple.cc.
|
inlinevirtual |
Definition at line 19 of file GeometrySimple.hh.
Definition at line 16 of file GeometrySimple.cc.
Referenced by GarfieldPhysics::CreateGeometry().
void Garfield::GeometrySimple::Clear | ( | ) |
|
inline |
Definition at line 53 of file GeometrySimple.hh.
|
inline |
Definition at line 52 of file GeometrySimple.hh.
|
inlinevirtual |
Implements Garfield::GeometryBase.
Definition at line 40 of file GeometrySimple.hh.
Referenced by Garfield::ViewGeometry::Plot().
|
virtual |
Implements Garfield::GeometryBase.
Definition at line 94 of file GeometrySimple.cc.
Referenced by Garfield::ViewGeometry::Plot().
|
virtual |
Definition at line 116 of file GeometrySimple.cc.
|
inline |
Definition at line 29 of file GeometrySimple.hh.
|
inline |
Solid * Garfield::GeometrySimple::GetSolid | ( | const double | x, |
const double | y, | ||
const double | z | ||
) | const |
Definition at line 83 of file GeometrySimple.cc.
Referenced by Garfield::ViewGeometry::Plot().
Solid * Garfield::GeometrySimple::GetSolid | ( | const unsigned int | i | ) | const |
Definition at line 105 of file GeometrySimple.cc.
bool Garfield::GeometrySimple::IsInBoundingBox | ( | const double | x, |
const double | y, | ||
const double | z | ||
) | const |
Definition at line 169 of file GeometrySimple.cc.
Referenced by IsInside().
|
virtual |
Implements Garfield::GeometryBase.
Definition at line 158 of file GeometrySimple.cc.
void Garfield::GeometrySimple::PrintSolids | ( | ) |
Definition at line 135 of file GeometrySimple.cc.
|
protected |
Definition at line 77 of file GeometrySimple.hh.
Referenced by DisableDebugging(), EnableDebugging(), and IsInBoundingBox().
|
protected |
Definition at line 72 of file GeometrySimple.hh.
Referenced by AddSolid(), and IsInBoundingBox().
|
protected |
Definition at line 61 of file GeometrySimple.hh.
Referenced by AddSolid(), Clear(), GeometrySimple(), GetMedium(), and PrintSolids().
|
protected |
Definition at line 57 of file GeometrySimple.hh.
Referenced by AddSolid(), Clear(), GetMedium(), and GetNumberOfMedia().
|
protected |
Definition at line 64 of file GeometrySimple.hh.
Referenced by AddSolid(), Clear(), GetMedium(), GetNumberOfSolids(), GetSolid(), IsInside(), and PrintSolids().
|
protected |
Definition at line 69 of file GeometrySimple.hh.
Referenced by AddSolid(), Clear(), GeometrySimple(), GetMedium(), GetSolid(), IsInside(), and PrintSolids().
|
protected |
Definition at line 74 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().
|
protected |
Definition at line 73 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().
|
protected |
Definition at line 74 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().
|
protected |
Definition at line 73 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().
|
protected |
Definition at line 74 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().
|
protected |
Definition at line 73 of file GeometrySimple.hh.
Referenced by AddSolid(), GetBoundingBox(), and IsInBoundingBox().