Problem with g2root output

Dear root experts,

My question is related to the output of g2root aiming at converting a blabla.rz file (from geant3 geometry) into a blabla.C macro.

Using blindly the procedure, g2root blabla.geom blabla.C
which seems without error or warning messages at first step, I have obtained after running .x blabla.C:

Error in TGeoSphere::SetDimensions: invalid parameters theta1/theta2
Error in TGeoSphere::SetDimensions: invalid parameters theta1/theta2
Error in TGeoSphere::SetDimensions: invalid parameters theta1/theta2

which is related to some lines like :

TGeoVolume *TSU2 = gGeoManager->MakeSphere(“TSU2”,med14,0,1.5,0,360,180,360);

where the angle limit values are in conflict with the MakeSphere expected input

What is wrong in my approach ? (option missing… ?) more generally how to be sure that other transcriptions are not also corrupted, even if there is no message error ?

Thanks in advance for your help,

Best regards,

Arnaud

Hi,
This is because these spheres are apparently wrongly defined in G3: the parameters 5 and 6 are thetamin and thetamax and the allowed range is (0,180) not (0,360). One way out is to change by hand in the generated macro the range in theta or to act on the G3 definition.

Regards,

Hi,

Thanks for the reply, I will make a tight analysis of all the components.

Best regards,

Arnaud