Make drawing and viewving named macros
[u/mrichter/AliRoot.git] / macros / DrawCASTOR.C
index c6a3f19..83f5a17 100644 (file)
@@ -1,8 +1,9 @@
-//void DrawCASTOR()
+void DrawCASTOR()
 {
    gMC->Gsatt("*", "seen", -1);
    gMC->Gsatt("alic", "seen", 0);
-   gROOT->Macro("ViewCASTOR.C");
+   gROOT->LoadMacro("ViewCASTOR.C");
+   gInterpreter->ProcessLine("ViewCASTOR()");
    gMC->Gdopt("hide", "on");
    gMC->Gdopt("shad", "on");
    gMC->Gsatt("*", "fill", 7);