<div dir="ltr">Kei and all,<div><br></div><div>The RUNG card sets the run number in HDGeant for any case where the events originate inside geant, eg. photon beam simulations, or particle gun. It does not overwrite the run number, however, in the case where geant gets its event from an external generator, eg. bggen or genr8. This is the most logical and consistent behavior, that the original generator of the hddm event is the one who sets the event header info: run number, event number, event type, etc., and those who modify the event later on can extend the record id info but should not overwrite it.</div>
<div><br></div><div>-Richard Jones</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 31, 2013 at 9:04 AM, Kei Moriya <<a href="mailto:kmoriya@indiana.edu">kmoriya@indiana.edu</a>> wrote:<br>
<blockquote class="gmail_quote"><br>
Dear folks,<br>
<br>
Regarding the setting of run numbers for MC events<br>
that came up in the meeting yesterday, I got an<br>
insider tip from Nathan yesterday that<br>
there used to be a variable RUNG that you could set<br>
up in your hdgeant <a href="http://control.in">control.in</a> file.<br>
<br>
Currently if I specfiy this variable for example to 9150,<br>
hdgeant will spit out the message<br>
1************************************************************<br>
* *<br>
* G E A N T Version 3.2114 DATE/TIME 131031/0829 *<br>
* *<br>
* R U N 9150 *<br>
* *<br>
************************************************************<br>
but this run number is *not* saved in the final hddm file.<br>
<br>
Perhaps setting the run number within hdgeant is not<br>
the most intuitive way to do things, and since this is<br>
not saved in the output anyway, we should deprecate<br>
this functionality.<br>
<br>
For genr8, the run number can be specified with the option<br>
-r (default 9000), and this seems to be propagated through<br>
to the end and I see the RunNumber variable in the final<br>
analysis tree is set correctly.<br>
<br>
For bggen events, setting the variable RUNNO seems to<br>
work, although this is not explicitly mentioned in the<br>
sample run.ffr card. The default is set to 2 as was<br>
noted yesterday. I've changed the sample run.ffr so<br>
that people can take note of this option.<br>
<br>
Kei<br>
_______________________________________________<br>
Halld-offline mailing list<br>
<a href="mailto:Halld-offline@jlab.org">Halld-offline@jlab.org</a><br>
<a href="https://mailman.jlab.org/mailman/listinfo/halld-offline">https://mailman.jlab.org/mailman/listinfo/halld-offline</a><br>
</blockquote></div><br></div>