]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/Displayv11.C
A start of the New ITS Geometry using the new Geometric modler.
[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
16 gSystem->Load("libGeom");
17 //
18 TCanvas *c1 = new TCanvas("C1","ITS Simulation Geometry",400,400);
19 //
20 if(gGeoManager) delete gGeoManager;
21 TGeoManager *mgr2 = gGeoManager = new TGeoManager("ITSGeometry",
22 " ITS Simulation Geometry Manager");
23 //
24 TGeoMaterial *vacmat = new TGeoMaterial("Vacume",0,0,0);
25 TGeoMedium *vacmed = new TGeoMedium("Vacume_med",1,vacmat);
26 TGeoVolume *ALIC = mgr2->MakeBox("ALIC",vacmed,100.,100.,200.);
27 mgr2->SetTopVolume(ALIC);
28 //
29 //AliITSv11 *its = new AliITSv11("ITS Simulation Volumes");
30 AliITSv11 *its = new AliITSv11();
31 its->SetDebug(1);
32 its->CreateMaterials();
33 its->CreateGeometry();
34 //SetViewVolumes("all");
35 //
36 mgr2->CloseGeometry();
37 //
38 //mgr2->SetVisOption(0);
39 //
40 TView *view = gPad->GetView();
41 if(view){
42 view->RotateView(0,90);
43 view->ShowAxis();
44 } // end if
45 ALIC->Draw();
46 //
47}