<div dir="ltr">Hello Mariana,<div><br></div><div>Yes, you are right. Changing the decay tables in hdgeant4 should not be considered if you can already achieve what you need by simply restricting the allowed decay modes when you generate the final-state particles at the primary vertex. However that approach is not adequate in circumstances like the one I showed in the HOWTO example. In that case, one of the products from the primary vertex is a neutral kaon, and we were looking to reconstruct it in the final state where the k0 decays to two pi0. In that case you cannot attach the two pi0 from the k0 decay to the primary vertex at the event generator stage because the k0 will travel a measurable distance in the detector away from the Sigma+ decay vertex before it decays. Along the way there are material effects that might scatter the k0 or interfere with its decay distribution through regeneration. I am not sure how well the currently selected G4 physics lists simulate the effects of regeneration on a k0 in flight, but here I just argue from a general principle. If the decay happens in 10 microns or less from the primary vertex then you might as well do the decay in the event generator and spare yourself the trouble. But if the decay happens a detectable distance from the primary vertex or if there are material effects between the primary and secondary decay vertices that might change the momentum or the internal state of the particle, you will want to let G4 do the decay.</div><div><br></div><div>-richard jones</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 1, 2021 at 10:37 AM Mariana Khachatryan <<a href="mailto:marianak@jlab.org">marianak@jlab.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">
<p></p>
<div style="background-color:rgb(255,235,156);width:100%;border-style:none;border-color:rgb(250,235,204);border-width:1pt;padding:10pt;font-size:11pt;line-height:12pt;font-family:Calibri;color:rgb(0,0,0);text-align:left">
<span style="color:rgb(156,101,0)"></span>*Message sent from a system outside of UConn.*</div>
<br>
<p></p>
<div>Hi Richard,
<div><br>
</div>
<div>as I understand this is an alternative to using decay_evtgen.</div>
<div>What are the advantages of using one or the other?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Mariana.<br>
<div><br>
<blockquote type="cite">
<div>On Nov 30, 2021, at 3:18 PM, Richard Jones <<a href="mailto:richard.t.jones@uconn.edu" target="_blank">richard.t.jones@uconn.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Hello all,
<div><br>
</div>
<div>Alexander pointed out that my wiki page "HOWTO force hdgeant4 to decay particles in certain channels" was somewhat cryptic and hard to follow.</div>
<div><br>
</div>
<div>I have done a rewrite of the page, with an example session you can try to test it out.</div>
<div><br>
</div>
<div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__nam10.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fhalldweb.jlab.org-252Fwiki-252Findex.php-252FHOWTO-5Fforce-5Fhdgeant4-5Fto-5Fdecay-5Fparticles-5Fin-5Fcertain-5Fchannels-26data-3D04-257C01-257C-257C8f9080bab2004a88e38208d9b4e06af4-257C17f1a87e2a254eaab9df9d439034b080-257C0-257C0-257C637739698223750721-257CUnknown-257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0-253D-257C2000-26sdata-3DbDubbnuBrdkLuZ-252BU8EpTpdKzt6MqQYT3sqq2APUhb-252Fg-253D-26reserved-3D0&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=Te_hCR4EUlJ6iCDYLJ8Viv2aDOR7D9ZZMoBAvf2H0M4&m=ME6ku2YGRP00W-B5RqpDjp0tk9vf-KxkXZmHAjOf1iIibDw9zWRB5v4y8dq-X566&s=sxbRvSvgCuAIwWuzX5tgKgvQ49zDNfnY93RoStp_H54&e=" target="_blank">https://halldweb.jlab.org/wiki/index.php/HOWTO_force_hdgeant4_to_decay_particles_in_certain_channels</a><br>
</div>
<div><br>
</div>
<div>-Richard Jones</div>
</div>
_______________________________________________<br>
Halld-offline mailing list<br>
<a href="mailto:Halld-offline@jlab.org" target="_blank">Halld-offline@jlab.org</a><br>
<a href="https://mailman.jlab.org/mailman/listinfo/halld-offline" target="_blank">https://mailman.jlab.org/mailman/listinfo/halld-offline</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote></div>