[Halld-offline] updates to the trunk for new random number seeds policy
David Lawrence
davidl at jlab.org
Mon Mar 17 19:36:26 EDT 2014
Hi All,
Unfortunately, I was not involved in the DC conversation so I don’t know all of the details of that discussion. I’m not sure I quite understand the benefit of this change though. Prior to this, the seeds for the two critical stages Richard mentions (hdgeant and mcsmear) were being recorded. The code already did exactly what the policy paragraph in Richard’s e-mail described. In addition, one could choose to specify a different set of seeds for mcsmear to use than what was used hdgeant. (Default was to use the hdgeant seeds though.) This new system seems to loose that flexibility. I guess I’m just confused as to what advantage this has to what existed 3 days ago.
Regards,
-David
On Mar 17, 2014, at 3:52 PM, Richard Jones <richard.t.jones at uconn.edu> wrote:
> Hello all,
>
> I have just checked into the trunk a cluster of updates that implements the new random number seed policy that was agreed upon at the data challenge meeting on 3/14.
>
> All processes that employ random numbers in analyzing or updating an event should initialize the random generator to the seeds listed in the event record at the beginning of each event. If the event record contains no seeds upon input, or if those seeds are all 0, any program that needs random number seeds should generate its own set at the start of each event, and save them in the output event record to be reused by all subsequent analysis stages that require randoms.
>
> That was my understanding of the policy we agreed to, and that is what I implemented in the changes I just checked in. In anticipation of the extended seeds needed for Geant4, I extended the list to 4 32-bit seeds, and programs that need fewer bits to initialize their internal generators should consume as many as they need, starting at seed1. This required an update to the data model, which means that any analysis programs built after this change is implemented will not be able to read simulation files that were generated prior to this change. This restriction does NOT apply to rest files, only intermediate simulation files like hdgeant.hddm or hdgeant_smeared.hddm files that were generated with the earlier <random> tags. This restriction also does NOT apply to reading the output of bggen files that were generated earlier, only the output from hdgeant and mcsmear, which are the only ones directly affected by the new policy.
>
> -Richard Jones
> _______________________________________________
> Halld-offline mailing list
> Halld-offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-offline
More information about the Halld-offline
mailing list