Use a geometry defined using the ROOT TGeo package.
More...
#include <GeometryRoot.hh>
|
| 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 bool tesselated=false) const override |
| Retrieve the medium at a given point.
|
unsigned int | GetNumberOfMaterials () |
| Get the number of materials defined in the ROOT geometry.
|
TGeoMaterial * | GetMaterial (const unsigned int i) |
| Get a pointer to the ROOT material with a given index.
|
TGeoMaterial * | GetMaterial (const char *name) |
| Get a pointer to the ROOT material with a given name.
|
void | SetMedium (const unsigned int imat, Medium *med) |
| Associate a ROOT material with a Garfield medium.
|
void | SetMedium (const char *mat, Medium *med) |
| Associate a ROOT material with a Garfield medium.
|
bool | IsInside (const double x, const double y, const double z, const bool tesselated=false) const override |
| Check if a point is inside the geometry.
|
bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) override |
| Get the bounding box (envelope of the geometry).
|
void | EnableDebugging (const bool on=true) |
| Switch debugging and warning messages on/off.
|
| Geometry ()=delete |
| Default constructor.
|
| Geometry (const std::string &name) |
| Constructor.
|
virtual | ~Geometry () |
| Destructor.
|
virtual std::size_t | GetNumberOfSolids () const |
| Return the number of solids in the geometry.
|
virtual Solid * | GetSolid (const std::size_t) const |
| Get a solid from the list.
|
virtual Solid * | GetSolid (const std::size_t, Medium *&) const |
| Get a solid from the list, together with the associated medium.
|
Use a geometry defined using the ROOT TGeo package.
Definition at line 15 of file GeometryRoot.hh.
◆ GeometryRoot()
Garfield::GeometryRoot::GeometryRoot |
( |
| ) |
|
◆ ~GeometryRoot()
Garfield::GeometryRoot::~GeometryRoot |
( |
| ) |
|
|
inline |
◆ EnableDebugging()
void Garfield::GeometryRoot::EnableDebugging |
( |
const bool | on = true | ) |
|
|
inline |
Switch debugging and warning messages on/off.
Definition at line 45 of file GeometryRoot.hh.
◆ GetBoundingBox()
bool Garfield::GeometryRoot::GetBoundingBox |
( |
double & | xmin, |
|
|
double & | ymin, |
|
|
double & | zmin, |
|
|
double & | xmax, |
|
|
double & | ymax, |
|
|
double & | zmax ) |
|
overridevirtual |
◆ GetMaterial() [1/2]
TGeoMaterial * Garfield::GeometryRoot::GetMaterial |
( |
const char * | name | ) |
|
Get a pointer to the ROOT material with a given name.
◆ GetMaterial() [2/2]
TGeoMaterial * Garfield::GeometryRoot::GetMaterial |
( |
const unsigned int | i | ) |
|
Get a pointer to the ROOT material with a given index.
◆ GetMedium()
Medium * Garfield::GeometryRoot::GetMedium |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | z, |
|
|
const bool | tesselated = false ) const |
|
overridevirtual |
◆ GetNumberOfMaterials()
unsigned int Garfield::GeometryRoot::GetNumberOfMaterials |
( |
| ) |
|
Get the number of materials defined in the ROOT geometry.
◆ IsInside()
bool Garfield::GeometryRoot::IsInside |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | z, |
|
|
const bool | tesselated = false ) const |
|
overridevirtual |
◆ PrintGeoNotDefined()
void Garfield::GeometryRoot::PrintGeoNotDefined |
( |
const std::string & | fcn | ) |
const |
|
protected |
◆ SetGeometry()
void Garfield::GeometryRoot::SetGeometry |
( |
TGeoManager * | geoman | ) |
|
Set the geometry (pointer to ROOT TGeoManager).
◆ SetMedium() [1/2]
void Garfield::GeometryRoot::SetMedium |
( |
const char * | mat, |
|
|
Medium * | med ) |
Associate a ROOT material with a Garfield medium.
◆ SetMedium() [2/2]
void Garfield::GeometryRoot::SetMedium |
( |
const unsigned int | imat, |
|
|
Medium * | med ) |
Associate a ROOT material with a Garfield medium.
◆ m_debug
bool Garfield::GeometryRoot::m_debug = false |
|
protected |
◆ m_geoManager
TGeoManager* Garfield::GeometryRoot::m_geoManager = nullptr |
|
protected |
◆ m_materials
std::map<std::string, Medium*> Garfield::GeometryRoot::m_materials |
|
protected |
The documentation for this class was generated from the following file: