- changed status to resolved
Develop: ElossHisto empty when using GDML external geometry
Issue #333
resolved
Energy deposition in a GDML external geometry is not stored for magnets while it is for an “element”. The Issue below has been realised on the develop branch (commit 7d36833d3a033e0dd87d508a5dea276922ba4e83)
The example
q1: quadrupole,l=0.2*m, k1=0,magnetGeometryType="gdml:gdml/quadrupole.gdml",apertureType="none";
l1: line = (q1);
use,period=l1;
beam, particle="e-",
Y0=8*cm,
Xp0=0,
Yp0=0,
energy=2.0*GeV;
option, physicsList="g4QGSP_BIC_EMZ",
stopSecondaries=0,
worldMaterial="G4_Galactic",
elossHistoBinWidth=1*cm,
storeApertureImpacts=1,
storeCollimatorInfo=1,
storeCollimatorHits=1,
sensitiveBeamPipe=1,
sensitiveBeamlineComponents=1,
sensitiveOuter=1;
gives as results
while
q2:element, geometry="gdml:gdml/quadrupole.gdml", l=0.2*m;
l1: line = (q2);
use,period=l1;
gives
Comments (1)
-
reporter - Log in to comment
Corrections made in commit 648569927ac3fc2507e241a43f805dc57036bd34.
The logicalVolumes, sensitivity and PhysicalVolumes of the external geometry were not given to the outer geometry.