]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/DrawTRD.C
Made Getters const
[u/mrichter/AliRoot.git] / TRD / DrawTRD.C
1 void DrawTRD()
2 {
3    gMC->Gsatt("*", "seen", -1);
4    gMC->Gsatt("alic", "seen", 0);
5    AliTRD *TRD = (AliTRD *) gAlice->GetModule("TRD");
6    AliTRDgeometry *Geo = TRD->GetGeometry(); 
7    gROOT->LoadMacro("ViewTRD.C");
8    if (Geo->IsVersion() == 0) {
9      gInterpreter->ProcessLine("ViewTRDhole()");
10    }
11    else {
12      if (Geo->GetPHOShole()) {
13        if (Geo->GetRICHhole()) {
14          gInterpreter->ProcessLine("ViewTRDfull3()");
15        }
16        else {
17          gInterpreter->ProcessLine("ViewTRDfull1()");
18        }
19      }
20      else {
21        if (Geo->GetRICHhole()) {
22          gInterpreter->ProcessLine("ViewTRDfull2()");
23        }
24        else {
25          gInterpreter->ProcessLine("ViewTRDfull0()");
26        }
27      }
28    }
29    gMC->Gdopt("hide", "on");
30    gMC->Gdopt("shad", "on");
31    gMC->Gsatt("*", "fill", 7);
32    gMC->SetClipBox(".");
33    gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 2000);
34    gMC->DefaultRange();
35    gMC->Gdraw("alic", 40, 30, 0, 12, 9.4, .020, .020);
36    gMC->Gdhead(1111, "Transition Radiation Detector");
37    gMC->Gdman(18, 4, "MAN");
38 }