Skip to content

Commit 4f90725

Browse files
committed
Give the MFT support volume a name of its own
This fixes a problem in the MFT support geometry, where a volume and its assembly share a name. - Volumes with the same name share a ROOT volume number, so consumers keyed on that number see only one of the two. - In FLUKA the pair collapsed to the assembly's placeholder material, which means BLCKHOLE, so the PEEK support disks deleted every particle entering them.
1 parent 9a93b68 commit 4f90725

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Detectors/ITSMFT/MFT/base/src/Support.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ TGeoVolumeAssembly* Support::create(Int_t half, Int_t disk)
204204

205205
// ======= Prepare support volume and add to HalfDisk =========
206206

207-
auto* support_vol = new TGeoVolume(Form("Support_H%d_D%d", half, disk), localCS, mSupportMedium);
207+
// a name of its own: a volume sharing a name with its assembly also shares its ROOT volume number
208+
auto* support_vol = new TGeoVolume(Form("SupportVol_H%d_D%d", half, disk), localCS, mSupportMedium);
208209

209210
auto* rot = new TGeoRotation("rot", 0, 0, 180);
210211
mHalfDisk->AddNode(support_vol, 0, rot);

0 commit comments

Comments
 (0)