New file: import geometry of T0.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Jan 2007 09:43:23 +0000 (09:43 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Jan 2007 09:43:23 +0000 (09:43 +0000)
EVE/alice-macros/geom_t0.C [new file with mode: 0644]

diff --git a/EVE/alice-macros/geom_t0.C b/EVE/alice-macros/geom_t0.C
new file mode 100644 (file)
index 0000000..0e5214b
--- /dev/null
@@ -0,0 +1,26 @@
+// $Id$
+
+void geom_t0()
+{
+  using namespace std;
+
+  gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
+
+  Reve::RenderElementList* list = new Reve::RenderElementList("T0");
+  gReve->AddGlobalRenderElement(list);
+
+  TGeoNode* node;
+  Reve::GeoTopNodeRnrEl* re;
+
+  node = gGeoManager->GetTopVolume()->FindNode("0STR_1");
+  re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
+  re->SetUseNodeTrans(kTRUE);
+  gReve->AddGlobalRenderElement(list, re);
+
+  node = gGeoManager->GetTopVolume()->FindNode("0STL_1");
+  re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
+  re->SetUseNodeTrans(kTRUE);
+  gReve->AddGlobalRenderElement(list, re);
+
+  gReve->Redraw3D();
+}