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