{ TGeoVolume *beam = gGeoManager->MakeBox("Beam",medium[18], 500., 500., 500.); int pipe_medium = 17; float pip_flansch_length = 3. ; float pip_distance_silvio = 0.2 ; float pip_dim[9] = { 0. , 360. , 2. ,0. , 10. , 11. , -1. , 10. , 11. }; TGeoPcon *pconpipe = new TGeoPcon(pip_dim[0] , pip_dim[1] , int(pip_dim[2])); for(int i=0;iDefineSection( i , z , ri , ra ); } TGeoVolume *pipe = new TGeoVolume("Pipe", pconpipe, medium[pipe_medium-1]); pipe->SetLineColor(17); beam->AddNode(pipe, 1. , new TGeoTranslation( 0. , 0. , 0. )); }