]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/DrawSPD.C
Typo corrected
[u/mrichter/AliRoot.git] / ITS / DrawSPD.C
CommitLineData
fe848967 1void DrawSPD(TString view="Prospective" ){
2 AliITS *ITS = (AliITS*) gAlice->GetModule("ITS");
3 if(!ITS) {
4 cout << "You must initilize AliRoot with an ITS before plotting it"<<endl;
5 return;
6 } // end if
7 Int_t version1 = ITS->GetMajorVersion();
8 Int_t version2 = ITS->GetMinorVersion();
9 gMC->Gsatt("*", "seen", -1);
10 gMC->Gsatt("*", "fill", 7);
11 gMC->Gsatt("alic", "seen", 0);
12 gROOT->LoadMacro("ViewITSSPD.C");
13 ViewITSSPD(version1,version2);
14 //gInterpreter->ProcessLine("ViewSPD()");
15 gMC->Gdopt("hide", "on");
16 gMC->Gdopt("shad", "on");
17 gMC->SetClipBox(".");
18 if(view.Contains("Prospective")){
19 //SetClipBox(volume name,xmin,xmax,ymin,ymax,zmin,zmax)
20 gMC->SetClipBox("*",0.0,100.0,-1000.0,1000.0,0.0,1000.0);
21 gMC->DefaultRange();
22 //Gdraw(volume name,theta,phi,psi,axis originX,axis originY,scaleX,scaleY) angles in degrees
23 gMC->Gdraw("alic", 40.0, 30.0, 0.0, 11, 10, .4, .4);
24 gMC->Gdhead(1111, "Inner Tracking System");
25 //gMC->Gdman(16,6,"MAN");
26 } // end if
27 if(view.Contains("EndView")){
28 //SetClipBox(name,xmin,xmax,ymin,ymax,zmin,zmax)
29 gMC->SetClipBox("*",-100.0,100.0,-1000.0,1000.0,1.0,1000.0);
30 gMC->DefaultRange();
31 //Gdraw(volume name,theta,phi,psi,axis originX,axis originY,scaleX,scaleY) angles in degrees
32 gMC->Gdraw("alic",0.0,0.0,0.0,10.0,10.0,1.0,1.0);
33 gMC->Gdhead(1111, "Inner Tracking System");
34 //gMC->Gdman(16, 6, "MAN");
35 } // end if
36 if(view.Contains("SideView")){
37 //SetClipBox(name,xmin,xmax,ymin,ymax,zmin,zmax)
38 gMC->SetClipBox("*",0.0,100.0,-1000.0,1000.0,0.0,1000.0);
39 gMC->DefaultRange();
40 //Gdraw(volume name,theta,phi,psi,axis originX,axis originY,scaleX,scaleY) angles in degrees
41 gMC->Gdraw("alic",90.0,0.0,0.0,10.0,10.0,0.35,0.35);
42 gMC->Gdhead(1111, "Inner Tracking System");
43 //gMC->Gdman(16, 6, "MAN");
44 } // end if
3bff72db 45}