19#include "TRestDetectorGeometry.h"
25TRestDetectorGeometry::TRestDetectorGeometry()
28#if defined USE_Garfield
36TRestDetectorGeometry::~TRestDetectorGeometry() {
37#if defined USE_Garfield
48#if defined USE_Garfield
49 fGfGeometry =
new Garfield::GeometryRoot();
50 fGfGeometry->SetGeometry(
this);
56void TRestDetectorGeometry::PrintGeometry() {
57 cout <<
"--------------------------------------" << endl;
58 cout <<
"Volumes : " << this->GetListOfVolumes()->GetEntries() << endl;
59 cout <<
"Mother volume : " << this->GetTopVolume()->GetName() << endl;
60 cout <<
"--------------------------------------" << endl;
64 for (
int volID = 0; volID < this->GetListOfVolumes()->GetEntries(); volID++) {
65 vol = this->GetVolume(volID);
66 mat = vol->GetMaterial();
67 cout <<
"Volume " << volID << endl;
68 cout <<
" Name : " << vol->GetName() << endl;
69 cout <<
" Material : " << mat->GetName() << endl;
70 cout <<
" Density : " << mat->GetDensity() << endl;
void InitGfGeometry()
initialize Garfield::GeometryRoot geometry object