<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
That answers my question, thank you!<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Dec 1, 2021, at 11:10 AM, Richard Jones <<a href="mailto:richard.t.jones@uconn.edu" class="">richard.t.jones@uconn.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hello Mariana,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">-richard jones</div>
</div>
<br class="">
<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" class="">marianak@jlab.org</a>> wrote:<br class="">
</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;" class="">
<div class=""><br class="webkit-block-placeholder">
</div>
<div style="background-color: rgb(255, 235, 156); width: 100%; border: 1pt none rgb(250, 235, 204); padding: 10pt; font-size: 11pt; line-height: 12pt; font-family: Calibri; text-align: left;" class="">
<span style="color:rgb(156,101,0)" class=""></span>*Message sent from a system outside of UConn.*</div>
<br class="">
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">Hi Richard,
<div class=""><br class="">
</div>
<div class="">as I understand this is an alternative to using decay_evtgen.</div>
<div class="">What are the advantages of using one or the other?</div>
<div class=""><br class="">
</div>
<div class="">Thank you,</div>
<div class="">Mariana.<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 30, 2021, at 3:18 PM, Richard Jones <<a href="mailto:richard.t.jones@uconn.edu" target="_blank" class="">richard.t.jones@uconn.edu</a>> wrote:</div>
<br class="">
<div class="">
<div dir="ltr" class="">Hello all,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">I have done a rewrite of the page, with an example session you can try to test it out.</div>
<div class=""><br class="">
</div>
<div class=""><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=clwmyyf5bwAFBOjoOXl2GEvO_Dt6zWgctiwxc4L6q4s&m=sO3J2rHWxGN8yQhDhtAejD8QEsSIkaMzYY_7FMITmvd3_FKYmxO1QumKXMMTD75V&s=pDxgWPRMPNZ9PdwnyDUrh4gagYhgyyKpb6uQHlmKrQ4&e=" target="_blank" class="">https://halldweb.jlab.org/wiki/index.php/HOWTO_force_hdgeant4_to_decay_particles_in_certain_channels</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">-Richard Jones</div>
</div>
_______________________________________________<br class="">
Halld-offline mailing list<br class="">
<a href="mailto:Halld-offline@jlab.org" target="_blank" class="">Halld-offline@jlab.org</a><br class="">
<a href="https://mailman.jlab.org/mailman/listinfo/halld-offline" target="_blank" class="">https://mailman.jlab.org/mailman/listinfo/halld-offline</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>