We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f703f commit 578dd92Copy full SHA for 578dd92
Detectors/Upgrades/ALICE3/TRK/simulation/src/VDGeometryBuilder.cxx
@@ -90,8 +90,9 @@ inline const char* ensureShapeName(TGeoVolume* v)
90
int k = 0;
91
TString cand = wanted;
92
auto* shapes = gGeoManager ? gGeoManager->GetListOfShapes() : nullptr;
93
- while (shapes && shapes->FindObject(cand))
+ while (shapes && shapes->FindObject(cand)) {
94
cand = Form("%s_%d", wanted.Data(), ++k);
95
+ }
96
sh->SetName(cand);
97
if (shapes && !shapes->FindObject(cand)) {
98
shapes->Add(sh);
0 commit comments