Hello everyone , I’m looking for how to draw and display simple surfaces such as cylinders , spheres etc using root . I tried the TF3 function but I don’t know a way to draw limited areas such as a cylinder of appropriate size . What I’m trying to do is to display the surfaces representing a detector that I have to simulate . Can you show me some tutorial or example ? Thank you and good day
Hi,
you can create a cylinder using the TGeoTube class using something like this:
TGeoTube *myCyl = new TGeoTube(0., 30., 40.);
myCyl->Draw();
See the documentation for more advanced examples.