DUNE / 2x2_sim

Wrappers for ArgonCube 2x2 simulation at NERSC
Apache License 2.0
5 stars 11 forks source link

Set run ID in GENIE files #28

Closed mjkramer closed 1 year ago

mjkramer commented 1 year ago

Quoting Jeremy:

One thing I have discovered in trying to do the GENIE matching without ugly hacks is that the run number saved inside the GENIE files (as opposed to the one we maintain in the filename) is "always" (at least---in the two files I checked :smile:) 0. Could we start setting this correctly? I think it's as simple as passing -r <run number> to the gevgen or gevgen_fnal command that's being used

and, actually, I wonder if would make sense to set it to the thing edep-sim is going to use for the offset in the vertexID? (i.e. the "1E6 * TaggedRunId" with "TaggedRunId = RunId + (1E9 if rock else 0)" from https://github.com/DUNE/2x2_sim/wiki/Production-changes-and-validation-findings#file-format-differences)?

If we use the TaggedRunId then we should change the edep-sim run ID to be the same (since that one currently doesn't including the "1E9 if rock" offset).

mjkramer commented 1 year ago

Implemented in https://github.com/DUNE/2x2_sim/commit/24c44dcd98cce125b5e94764d082fd88d5e2c2dc and used for PicoRun4.1