1#ifndef G_GEOMETRY_ROOT_H
2#define G_GEOMETRY_ROOT_H
6#include <TGeoManager.h>
7#include <TGeoMaterial.h>
28 const double z)
const;
40 bool IsInside(
const double x,
const double y,
const double z)
const {
50 bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
double& xmax,
51 double& ymax,
double& zmax);
Abstract base class for geometry classes.
Use a geometry defined using the ROOT TGeo package.
TGeoManager * m_geoManager
unsigned int GetNumberOfMaterials()
Get the number of materials defined in the ROOT geometry.
std::vector< material > m_materials
GeometryRoot()
Constructor.
void SetMedium(const unsigned int imat, 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 SetGeometry(TGeoManager *geoman)
Set the geometry (pointer to ROOT TGeoManager).
TGeoMaterial * GetMaterial(const unsigned int i)
Get pointer to ROOT material with given index.
~GeometryRoot()
Destructor.
Medium * GetMedium(const double x, const double y, const double z) const
Abstract base class for media.