Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Use a geometry defined using the ROOT TGeo package. More...
#include <GeometryRoot.hh>
Classes | |
struct | material |
Public Member Functions | |
GeometryRoot () | |
Constructor. | |
~GeometryRoot () | |
Destructor. | |
void | SetGeometry (TGeoManager *geoman) |
Set the geometry (pointer to ROOT TGeoManager). | |
Medium * | GetMedium (const double x, const double y, const double z) const |
unsigned int | GetNumberOfMaterials () |
Get the number of materials defined in the ROOT geometry. | |
TGeoMaterial * | GetMaterial (const unsigned int i) |
Get pointer to ROOT material with given index. | |
TGeoMaterial * | GetMaterial (const char *name) |
Get pointer to ROOT material with given name. | |
void | SetMedium (const unsigned int imat, Medium *med) |
void | SetMedium (const char *mat, Medium *med) |
bool | IsInside (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 | |
TGeoManager * | m_geoManager |
std::vector< material > | m_materials |
bool | m_debug |
Protected Attributes inherited from Garfield::GeometryBase | |
std::string | m_className |
Use a geometry defined using the ROOT TGeo package.
Definition at line 15 of file GeometryRoot.hh.
Garfield::GeometryRoot::GeometryRoot | ( | ) |
|
inline |
|
inline |
Definition at line 55 of file GeometryRoot.hh.
|
inline |
Definition at line 54 of file GeometryRoot.hh.
|
virtual |
Implements Garfield::GeometryBase.
Definition at line 166 of file GeometryRoot.cc.
TGeoMaterial * Garfield::GeometryRoot::GetMaterial | ( | const char * | name | ) |
Get pointer to ROOT material with given name.
Definition at line 71 of file GeometryRoot.cc.
TGeoMaterial * Garfield::GeometryRoot::GetMaterial | ( | const unsigned int | i | ) |
Get pointer to ROOT material with given index.
Definition at line 59 of file GeometryRoot.cc.
|
virtual |
Implements Garfield::GeometryBase.
Definition at line 29 of file GeometryRoot.cc.
unsigned int Garfield::GeometryRoot::GetNumberOfMaterials | ( | ) |
Get the number of materials defined in the ROOT geometry.
Definition at line 47 of file GeometryRoot.cc.
|
inlinevirtual |
Implements Garfield::GeometryBase.
Definition at line 40 of file GeometryRoot.hh.
void Garfield::GeometryRoot::SetGeometry | ( | TGeoManager * | geoman | ) |
Set the geometry (pointer to ROOT TGeoManager).
Definition at line 18 of file GeometryRoot.cc.
void Garfield::GeometryRoot::SetMedium | ( | const char * | mat, |
Medium * | med | ||
) |
Definition at line 140 of file GeometryRoot.cc.
void Garfield::GeometryRoot::SetMedium | ( | const unsigned int | imat, |
Medium * | med | ||
) |
Definition at line 83 of file GeometryRoot.cc.
Referenced by SetMedium().
|
protected |
Definition at line 69 of file GeometryRoot.hh.
Referenced by DisableDebugging(), and EnableDebugging().
|
protected |
Definition at line 59 of file GeometryRoot.hh.
Referenced by GetBoundingBox(), GetMaterial(), GetMedium(), GetNumberOfMaterials(), IsInside(), SetGeometry(), and SetMedium().
|
protected |
Definition at line 66 of file GeometryRoot.hh.
Referenced by GetMedium(), SetGeometry(), and SetMedium().