Re: Problem with including targets in simulation [message #18576 is a reply to message #18573] |
Wed, 21 October 2015 10:19 |
Dmytro Kresan
Messages: 166 Registered: June 2004
|
first-grade participant |
From: *gsi.de
|
|
Hi Ina,
geometry files and macros for target need to be updated. The problem that the logical volume can not be placed directly into the TOP volume. All nodes of a detector have to go to the keeping volume. The fix in the file create_target_geo.C (lines 194 - 195)
Previously:
TGeoCombiTrans* pGlobal = GetGlobalPosition(pMatrix);
gTop->AddNode(pleadTarget_log, 0, pGlobal);
Fixed:
TGeoVolumeAssembly *target_top = new TGeoVolumeAssembly("LeadTarget");
target_top->AddNode(pleadTarget_log, 0, pMatrix);
TGeoCombiTrans* pGlobal = GetGlobalPosition(pMatrix);
gTop->AddNode(target_top, 0, pGlobal);
We will also put the changes to the repository, including modifications for ROOT 6 support.
Best regards,
Dima
|
|
|