ROOT 2.22
========
TCONS(Text_t *name, Text_t *title, Text_t *material, Float_t dz, Float_t rmin1, Float_t rmax1,
Float_t rmin2, Float_t rmax2, Float_t phi1, Float_t phi2);
TCONS(Text_t *name, Text_t *title, Text_t *material, Float_t rmax1, Float_t dz
, Float_t phi1, Float_t phi2, Float_t rmax2 = 0);
ROOT > 2.22
========
TCONS(Text_t *name, Text_t *title, Text_t *material, Float_t rmin1, Float_t rmax1,
Float_t rmin2, Float_t rmax2, Float_t dz, Float_t phi1,
Float_t phi2);
As one may realize the 4th parameter was "Float_t rmin1" and 8th parameter was "Float_t dz"
The new version has made it in line with GEANT docs and g2root code as well, namely:
the 4th parameter is "Float_t dz" and
the 8th parameter is "Float_t rmax2"
So to use OLD ROOT one has to moved that 4th parameter (which is a real "dz"
value but "rmin1") to 8th place where the "old" ROOT expects it to see.
TCONS *CMXA = new TCONS("CMXA","CMXA","void",104.14, 564, 625,381, 442, 311.75,228.25);
TCONS *CMXA = new TCONS("CMXA","CMXA","void", 564, 625,381, 442, 104.14, 311.75,228.25);
But you should not forget to move it back just you will switch to > 2.22 version
of ROOT in future.
Hope this helps
Valery
PS. PARA shapes should be drawn fine as well (compare the output of the tutorials/shapes.C
macro done with "old" and new" ROOT versions.