<div dir="ltr">Hello Mark, Rory and all,<div><br></div><div>At the end of our meeting yesterday, I agreed to have a look at the mods that Lubomir made to genBH to make it work the GlueX photon spectrum and not just a single energy. Several of his other changes I have incorporated into my master branch, but I decided that support for a bremsstrahlung spectrum should be done differently. The reason for that is that it depends too much on the beam line geometry, and we want to be able to change things about the beam line and see the results in the BH distributions. Instead of building a mini-beamline simulation into genBH, I have incorporated the internals of genBH into hdgeant4 itself. Now you just run a special run of hdgeant4, and it tracks beam photons through the collimator down to the liquid hydrogen target, then forces Bethe-Heitler interactions in the liquid hydrogen target. This is how simulations of the TPOL are done. Now a similar functionality exists for the liquid hydrogen target, except that with the Bethe-Heitler generator you have control over the minimum invariant mass of the pairs that you want to generate. In the TPOL sims you get all pairs without any pre-selection. I took the proton form factors that Lubomir implemented and copied them into the new code.</div><div><br></div><div>The output is just like what comes out of genBH. There are no hits in it, just the <reaction> tag showing a beam photon coming from upstream of the collimator and ending in a pair production vertex in the liquid hydrogen target. You then take that output file and feed it back into hdgeant4 with normal settings restored in <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__control.in&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=Te_hCR4EUlJ6iCDYLJ8Viv2aDOR7D9ZZMoBAvf2H0M4&m=Vbe4XdI-0wD7n3Fqr3kQzCGKz79Ha3BqudwdaPczHm0&s=rkxIVn_cVc_qGmKas8A9YcWj8c4HbAPHe73TECVLdAA&e=" target="_blank">control.in</a> and it will simulate those pairs in the detector, just like it would if it were reading from a file produced by any other event generator.</div><div><br></div><div>There is a pull request on github HDGeant4 master branch with these changes. Please have a look, and if this approach meets with your approval go ahead and execute the PR. This update does not affect the way hdgeant4 works on normal simulation runs, without the GENBEAM card present and enabled.</div><div><br></div><div>I have written a short page on the gluex wiki explaining how to run a Bethe-Heitler simulation from beginning to end, using this new tool. I have also included some sample plots that allow you to check that you are seeing what you should in your output.</div><div><br></div><div><a href="https://halldweb.jlab.org/wiki/index.php/HOWTO_generate_Bethe-Heitler_pairs_in_the_GlueX_target#Example_macros">https://halldweb.jlab.org/wiki/index.php/HOWTO_generate_Bethe-Heitler_pairs_in_the_GlueX_target</a><br></div><div><br></div><div>-Richard Jones</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 21, 2020 at 6:30 PM Mark-Macrae Dalton <<a href="mailto:dalton@jlab.org" target="_blank">dalton@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>
<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>
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>In preparation for our meeting tomorrow at 11 am, I thought I would send you my progress with using genBH.</div>
<div><br>
</div>
<div>I run the generator for a BH spectrum between 3 GeV and 11.6 GeV. The generator outputs the following text.</div>
<div>est. total cross section after 100000000 events : 13440.8 +/- 1.87554 ub</div>
<div><span></span><br>
</div>
<div>The figure shows the cross section that I determine as a function of beam energy. Top left is for all events. Here I recover the est. total cross section output by the generator. The other panels show what happens if I require a trigger or
a tagger hit or both. </div>
<div><br>
</div>
<div>The thing that confuses me a little is that even requiring a trigger leaves about 160 microbarns of cross section which is a bit larger than the total hadronic cross section. Since we don’t get half of the GlueX rate from BH events, this can’t
be right. I wonder whether this might indicate a problem with the trigger emulation in the simulation.</div>
<div><br>
</div>
<div>Best,</div>
<div>Mark</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div></div>
</div>
<img id="m_4863318089807770241gmail-m_48539938665180514807C3B2BC5-3B94-4831-A079-B57EA88ED284" src="cid:172430ad6c9ebfd243b1">
</div>
</div>
</blockquote></div></div>