From 4cfa8f0d77e339743e10390ae09c7a22bbb669b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=B6ckh?= Date: Mon, 2 Feb 2026 19:51:29 +0100 Subject: [PATCH] Show gdml file with ROOT TGeoManager --- Pinpoint/view_pinpoint.C | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Pinpoint/view_pinpoint.C diff --git a/Pinpoint/view_pinpoint.C b/Pinpoint/view_pinpoint.C new file mode 100644 index 0000000..123e04f --- /dev/null +++ b/Pinpoint/view_pinpoint.C @@ -0,0 +1,7 @@ +void view_pinpoint(const char* filename = "pinpoint.gdml") { + TGeoManager::Import(filename); + gGeoManager->Print(); + TGeoVolume* top = gGeoManager->GetTopVolume(); + top->Draw("ogl"); +} +