]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/scripts/DrawFMD2.C
Migrated to a geometry implemented via AliFMDGeometry (derives from
[u/mrichter/AliRoot.git] / FMD / scripts / DrawFMD2.C
1 //
2 // Script to draw detail of the FMD
3 //
4 void DrawFMD2()
5 {
6   // gAlice->Init("FMD/scripts/ConfigInner.C");
7   gAlice->Init("$(ALICE)/FMD/Config.C");
8   gMC->Gsatt("*", "seen", -1);
9   gMC->Gsatt("alic", "seen", 0);
10   gROOT->LoadMacro("$(ALICE)/FMD/ViewFMD.C");
11   gInterpreter->ProcessLine("ViewFMD()");
12   gMC->Gsatt("FMD3", "seen", -1);
13   gMC->Gsatt("FMD1", "seen", -1);
14   gMC->Gdopt("hide", "on");
15   gMC->Gdopt("shad", "on");
16   gMC->Gsatt("*", "fill", 7);
17   gMC->SetClipBox(".");
18   gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
19   gMC->DefaultRange();
20   // gMC->Gdraw("alic", 90, 0, 0, 28, 10, .25, .25);
21   // gMC->Gdraw("alic", 90, 0, 0, 28, 10, .25, .25);
22   gMC->Gdraw("alic", 179, 0, 0, 10, 10, .25, .25);
23
24 #if 0
25   TArrow* a1 = new TArrow(13.5, 16, 15, 18., .03, "<|");
26   a1->SetAngle(30);
27   a1->SetFillColor(1);
28   a1->Draw();
29   
30   TLatex* l1 = new TLatex(15, 18, "Honeycomb");
31   l1->SetTextAlign(12);
32   l1->SetTextFont(132);
33   l1->SetTextSize(.04);
34   l1->Draw();
35   
36   a1->DrawArrow(13.4, 14., 15, 15, .03, "<|");
37   l1->DrawLatex(15, 15, "Support Leg");
38   
39   a1->DrawArrow(10.7, 14.2, 15, 13, .03, "<|");
40   l1->DrawLatex(15, 13, "Print board");
41
42   a1->DrawArrow(9.7, 12.5, 15, 11, .03, "<|");
43   l1->DrawLatex(15, 11, "Silicon sensor");
44
45   a1->DrawArrow(8.3, 12.7, 7, 15, .03, "<|");
46   TLatex* l2 = new TLatex(7, 15, "Support Cone");
47   l2->SetTextSize(.04);
48   l2->SetTextFont(132);
49   l2->SetTextAlign(32);
50   l2->Draw();
51
52   TLatex* l3 = new TLatex(3, 3, "FMD2");
53   l3->SetTextSize(.06);
54   l3->SetTextFont(132);
55   l3->Draw();  
56 #endif
57
58   gPad->Modified();
59   gPad->cd();
60   gPad->Print("FMD2.png");
61 }