When calculating a*a-b*b the form (a-b)*(a+b) is usually more numerically stable.
[u/mrichter/AliRoot.git] / macros / DrawTOF1.C
CommitLineData
4e47b882 1void DrawTPC()
fe4da5cc 2{
3 gMC->Gsatt("*", "seen", -1);
4 gMC->Gsatt("alic", "seen", 0);
4e47b882 5 gROOT->LoadMacro("ViewTPC.C");
6 gInterpreter->ProcessLine("ViewTPC()");
fe4da5cc 7 gMC->Gdopt("hide", "on");
8 gMC->Gdopt("shad", "on");
9 gMC->Gsatt("*", "fill", 7);
10 gMC->SetClipBox(".");
11 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
12 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
13 gMC->Gdhead(1111, "Time Projection Chamber");
14 gMC->Gdman(18, 4, "MAN");
15}