Skip to content
Snippets Groups Projects
Commit fb1357ce authored by Sergey Linev's avatar Sergey Linev
Browse files

geom: create TGeoCone with name in TGeoBuilder

Looks like only TGeoCone was ignoring name.
Fixes error described in https://root-forum.cern.ch/t/32493
parent 247ecf1a
No related branches found
No related tags found
No related merge requests found
......@@ -334,7 +334,7 @@ TGeoVolume *TGeoBuilder::MakeCone(const char *name, TGeoMedium *medium,
Double_t dz, Double_t rmin1, Double_t rmax1,
Double_t rmin2, Double_t rmax2)
{
TGeoCone *cone = new TGeoCone(dz, rmin1, rmax1, rmin2, rmax2);
TGeoCone *cone = new TGeoCone(name, dz, rmin1, rmax1, rmin2, rmax2);
TGeoVolume *vol = 0;
if (cone->IsRunTimeShape()) {
vol = fGeometry->MakeVolumeMulti(name, medium);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment