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 robot()
{
float Phi = 3.14;
}
float pcs = 30;
for (int i=1; i<pcs; i++){
sprintf(
name,
"Horn%d",i);
10- 10/pcs*i ,10,180-(120/pcs)*i,180-((120/pcs) * (i-1)),240,300);
}
TGeoVolume *Migan=Robot->
MakeGtra(
"Migan",Iron,3,0,0,0,3,2,11,0,3,3,11,0);
TGeoVolume *Ko=Robot->
MakeGtra(
"Ko",Iron,7,0,0,0,3,1,5,0,3,2,5,0);
TGeoVolume *Bol_2=Robot->
MakeGtra(
"Bol_2",Iron,1,0,0,0,7,0,9,0,7,0,9,0);
for (int i=0; i<10;i++) {
}
for (int i=1; i<28; i+=1) {
if (i<27) {
}
else {
}
}
for (int i=1; i<28; i+=1) {
}
for (int i=1; i<28; i+=1) {
}
for (int i=0; i<30; i++) {
}
for (int i=0; i<40; i++) {
if (i<16) {
}
else {
}
}
for (int i=0; i<30; i++) {
}
for (int i=0; i<4; i++) {
}
for (int i=0; i<4; i++) {
}
for (int i=0; i<4; i++) {
}
for (int i=0; i<4; i++) {
}
for (int i=1; i<20; i+=1) {
if (i<7) {
}
if (6<i && i<10) {
}
if (9<i && i<20) {
}
}
}
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Class describing rotation + translation.
The manager class for any TGeo geometry.
TGeoVolume * MakeCone(const char *name, TGeoMedium *medium, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Make in one step a volume pointing to a cone shape with given medium.
TGeoVolume * MakeCons(const char *name, TGeoMedium *medium, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2)
Make in one step a volume pointing to a cone segment shape with given medium.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeTrd2(const char *name, TGeoMedium *medium, Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz)
Make in one step a volume pointing to a TGeoTrd2 shape with given medium.
TGeoVolume * MakeGtra(const char *name, TGeoMedium *medium, Double_t dz, Double_t theta, Double_t phi, Double_t twist, Double_t h1, Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2, Double_t tl2, Double_t alpha2)
Make in one step a volume pointing to a twisted trapezoid shape with given medium.
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
TGeoVolume * MakeSphere(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360)
Make in one step a volume pointing to a sphere shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
TGeoVolume * MakeEltu(const char *name, TGeoMedium *medium, Double_t a, Double_t b, Double_t dz)
Make in one step a volume pointing to a tube shape with given medium.
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Class describing rotations.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void SetVisibility(Bool_t vis=kTRUE)
set visibility of this volume
virtual void AddNodeOverlap(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void SetLineColor(Color_t lcolor)
Set the line color.
RooArgSet S(const RooAbsArg &v1)