]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/Displayv11.C
Protection against empty hit events
[u/mrichter/AliRoot.git] / ITS / Displayv11.C
CommitLineData
541f7ba6 1void SetViewVolumes(const char* opt){
2 //
3 if(!strstr(opt,"all")) return;
4 //
5}
6//----------------------------------------------------------------------
7void Displayv11(const char* filename=""){
8 // Display AliITSv11 Geometry
9 // Inputs:
10 // const char* filename output file with the display in it
11 // Outputs:
12 // none.
13 // Retrurn:
14 // none.
15
171f3f35 16 Displayit();
17}
18//----------------------------------------------------------------------
19void Displayit(){
20 // Display AliITSv11 Geometry
21 // Inputs:
22 // const char* filename output file with the display in it
23 // Outputs:
24 // none.
25 // Retrurn:
26 // none.
27
541f7ba6 28 gSystem->Load("libGeom");
29 //
171f3f35 30 TCanvas *c1 = new TCanvas("C1","ITS Simulation Geometry",900,900);
31 c1->Divide(2,2);
541f7ba6 32 //
33 if(gGeoManager) delete gGeoManager;
34 TGeoManager *mgr2 = gGeoManager = new TGeoManager("ITSGeometry",
35 " ITS Simulation Geometry Manager");
36 //
37 TGeoMaterial *vacmat = new TGeoMaterial("Vacume",0,0,0);
38 TGeoMedium *vacmed = new TGeoMedium("Vacume_med",1,vacmat);
39 TGeoVolume *ALIC = mgr2->MakeBox("ALIC",vacmed,100.,100.,200.);
40 mgr2->SetTopVolume(ALIC);
41 //
541f7ba6 42 AliITSv11 *its = new AliITSv11();
43 its->SetDebug(1);
44 its->CreateMaterials();
45 its->CreateGeometry();
46 //SetViewVolumes("all");
47 //
48 mgr2->CloseGeometry();
171f3f35 49 mgr2->SetNsegments(80);
541f7ba6 50 //
171f3f35 51 mgr2->SetVisLevel(6);
cbd7b929 52 mgr2->SetVisOption(0);
171f3f35 53 //mgr2->CheckOverlaps(0.01);
54 //mgr2->PrintOverlaps();
55 //mgr2->SetPhiRange(0.0,180.0);
541f7ba6 56 //
171f3f35 57 c1->cd(1);
58 ALIC->Draw();
59 TPad *p1 = c1->GetPad(1);
60 TView *view1 = p1->GetView();
61 if(view1){
62 view1->SetParralel();
63 view1->Front();
64 view1->ShowAxis();
65 } // end if view2
66 c1->cd(2);
67 ALIC->Draw();
68 TPad *p2 = c1->GetPad(2);
69 TView *view2 = p2->GetView();
70 if(view2){
71 view2->SetParralel();
72 view2->RotateView(60.,30.);
73 view2->ShowAxis();
74 } // end if view2
75 c1->cd(3);
76 c1->SetPhi(90.0); c1->SetTheta(90.0);
77 ALIC->Draw();
78 TPad *p3 = c1->GetPad(3);
79 TView *view3 = p3->GetView();
80 if(view3){
81 view3->SetParralel();
82 view3->Top();
83 view3->ShowAxis();
84 } // end if view3
85 c1->cd(4);
541f7ba6 86 ALIC->Draw();
171f3f35 87 TPad *p4 = c1->GetPad(4);
88 TView *view4 = p4->GetView();
89 if(view4){
90 view4->SetParralel();
91 view4->Side();
92 view4->ShowAxis();
93 } // end if view4
541f7ba6 94 //
95}