]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/DrawTRD.C
Bug correction in StepManager :
[u/mrichter/AliRoot.git] / TRD / DrawTRD.C
index cf2f25c2790d12abfb78adabd090565377f4aa54..f1e3079f9e41f5c1d50e10b633a4f3ab94a4ad4c 100644 (file)
@@ -1,8 +1,31 @@
-//void DrawTRD()
+void DrawTRD()
 {
    gMC->Gsatt("*", "seen", -1);
    gMC->Gsatt("alic", "seen", 0);
-   gROOT->Macro("ViewTRD.C");
+   AliTRD *TRD = (AliTRD *) gAlice->GetModule("TRD");
+   AliTRDgeometry *Geo = TRD->GetGeometry(); 
+   gROOT->LoadMacro("ViewTRD.C");
+   if (Geo->IsVersion() == 0) {
+     gInterpreter->ProcessLine("ViewTRDhole()");
+   }
+   else {
+     if (Geo->GetPHOShole()) {
+       if (Geo->GetRICHhole()) {
+         gInterpreter->ProcessLine("ViewTRDfull3()");
+       }
+       else {
+         gInterpreter->ProcessLine("ViewTRDfull1()");
+       }
+     }
+     else {
+       if (Geo->GetRICHhole()) {
+         gInterpreter->ProcessLine("ViewTRDfull2()");
+       }
+       else {
+         gInterpreter->ProcessLine("ViewTRDfull0()");
+       }
+     }
+   }
    gMC->Gdopt("hide", "on");
    gMC->Gdopt("shad", "on");
    gMC->Gsatt("*", "fill", 7);