Drawing a space station (version 2), using ROOT geometry class.
Reviewed by Sunman Kim (sunma.nosp@m.n98@.nosp@m.hanma.nosp@m.il.n.nosp@m.et) Supervisor: Prof. Inkyu Park (icpar.nosp@m.k@ph.nosp@m.ysics.nosp@m..uos.nosp@m..ac.k.nosp@m.r)
How to run: .x station2.C
in ROOT terminal, then use OpenGL
This macro was created for the evaluation of Computational Physics course in 2006. We thank to Prof. Inkyu Park for his special lecture on ROOT and to all of ROOT team
void station2()
{
char nBlocks[50];
int i=1;
int N=0;
int f=0;
f=0;
while (f<4){
i=0;
while (i<30){
sprintf(nBlocks,"f%d_bg%d",f,N++);
mBlock = geom->
MakeBox(nBlocks, Copper,2,1,3);
i++;
}
f++;
}
f=0;
while (f<4){
i=0;
while (i<30){
sprintf(nBlocks,"f%d_bg%d",f,N++);
mBlock1 = geom->
MakeBox(nBlocks, Copper,2,1,3);
i++;
}
f++;
}
f=0;
while (f<4){
i=0;
while (i<30){
sprintf(nBlocks,"f%d_bg%d",f,N++);
mBlock2 = geom->
MakeBox(nBlocks, Copper,2,1,3);
i++;
}
f++;
}
f=0;
while (f<4){
i=0;
while (i<30){
sprintf(nBlocks,"f%d_bg%d",f,N++);
mBlock3 = geom->
MakeBox(nBlocks, Copper,2,1,3);
i++;
}
f++;
}
}
- Author
- Dong Ryeol Lee (leedr.nosp@m.2580.nosp@m.@hanm.nosp@m.ail..nosp@m.net), Dept. of Physics, Univ. of Seoul
Definition in file station2.C.