Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Wketchum/genie generator #103

Closed
wants to merge 69 commits into from
Closed

Wketchum/genie generator #103

wants to merge 69 commits into from

Conversation

wesketchum
Copy link

PR for inclusion of GENIE generation, including storing of GENIE truth information.

Should be included with LDMX-Software/cmake#21.

wesketchum and others added 21 commits November 8, 2022 16:50
GENIE uses GeV as its internal energy unit while Geant4 uses MeV, we
simply multiply the energy by the constant representing its unit to do
the conversion so that everyone can see what is happening
@EinarElen
Copy link
Contributor

For the new simulator-code, I think it is worth knowing that we have two producers that are doing the simulator work. One is the simulator and the other is the so-called resimulator. They are both derived from the SimulatorBase class so we should make sure to put common code (like adding the genie particles, fillGTruth etc) happens in there and that anything that needs to go directly in the simulator also goes into the resimulator.Looking at how the seeding of the Genie generator is set up I think it will work automatically with the ReSimulator :)

EinarElen and others added 28 commits November 20, 2023 14:27
This is helpful for people like me who have massive samples of
heavily-filtered simulations. The best way to generate these samples is
across many runs but then merge the resulting files. This results in
several runs per file and often an event from one run is aborted by the
simulation while the same event number from a different run is the event
I wish to resimulate.
the translation of different format of runs provided by the user into
the actual data structure used during processing is done within python
now so it can be more transparent in error
this is helpful isolation and makes it easier to document how an event
ends up being re-simulated
…-processes-in-the-process-map

107 increase the number of processes in the process map
We are already gated by the verbosity setting
we /could/ rework this generator to use the new EventFile syntax (requiring deletion to close rather than
a specific close method), but this generator has gone unused for so long I don't think it would run even
with this patch. Besides, the updated full re-simulation infrastructure allows users to effectively re-sim
from the ECal _perfectly_ so this running mode is already covered.
the test is just to make sure that they successfully run, nothing is done with the data there, but it is helpful to make sure that basic simulation stuff can run at all during development
@tomeichlersmith
Copy link
Member

As discussed on slack, these changes should not be merged before Wednesday and will be re-applied on the subdirectory in ldmx-sw after Wednesday.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants