-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Robust surface matching for Geant4 #3169
feat: Robust surface matching for Geant4 #3169
Conversation
📊: Physics performance monitoring for eac08abphysmon summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of suggestions not thing critical
I would like to try see if G4VPVParameterisation
can be used for ID together with the volume after this is in.
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
Co-authored-by: Andreas Stefl <[email protected]>
🤔 I ran a set of simulations with this latest version of the code this morning. It seems to mostly work... But there are some worrisome things that I observed. First off, I ran 25 simulation jobs with the following: # Run all the muon simulations.
for NMUON in 1 5 10 50 100
do
for PT in 1 5 10 50 100
do
python3 "${ACTS_DIR}/Examples/Scripts/Python/sim_digi_odd.py" \
--digi-config odd-digi-geometric-config.json \
--geant4 \
--gun-multiplicity ${NMUON} \
--gun-pt-range ${PT} ${PT} \
--events 100 \
--output geant4_${NMUON}muon_${PT}GeV 2>&1 | \
tee geant4_${NMUON}muon_${PT}GeV.log
done
done (This is part of a script that I'll share in the PR collecting the new files into traccc.) Most of these simulations went through without a visible issue. But some of them produced some humongous log files. 🤔
With the large sizes coming from a lot of warnings like:
Should I be worried about all those warnings? |
This PR fixes: acts-project#3165 It first creates a `std::multimap` that relates the `G4VPhysVolume` to the possible `Acts::Surface` objects (there can be more due to the replica mechanism). In the Stepping action, the right one will then be picked. The output performance change in geant_hits is expected. Digitisation configuration file: [odd-digi-geometric-config.json](https://github.com/acts-project/acts/files/15188041/odd-digi-geometric-config.json) Example how to run full simulation with this: ```sh python <path_to_your_acts_source_dir>Examples/Scripts/Python/sim_digi_odd.py --digi-config odd-digi-geometric-config.json --geant4 --gun-multiplicity 10 --gun-pt-range 100 100 -n100 -o g4_mu_100GeV_m10 ``` Options are: ```sh usage: sim_digi_odd.py [-h] [--output OUTPUT] [--events EVENTS] [--skip SKIP] [--edm4hep EDM4HEP] [--geant4] [--ttbar] [--ttbar-pu TTBAR_PU] [--gun-multiplicity GUN_MULTIPLICITY] [--gun-eta-range GUN_ETA_RANGE [GUN_ETA_RANGE ...]] [--gun-pt-range GUN_PT_RANGE [GUN_PT_RANGE ...]] [--rnd-seed RND_SEED] [--digi-config DIGI_CONFIG] Sim-digi chain with the OpenDataDetector options: -h, --help show this help message and exit --output OUTPUT, -o OUTPUT Output directory --events EVENTS, -n EVENTS Number of events --skip SKIP, -s SKIP Number of events --edm4hep EDM4HEP Use edm4hep inputs --geant4 Use Geant4 instead of fatras --ttbar Use Pythia8 (ttbar, pile-up 200) instead of particle gun --ttbar-pu TTBAR_PU Number of pile-up events for ttbar --gun-multiplicity GUN_MULTIPLICITY Multiplicity of the particle gun --gun-eta-range GUN_ETA_RANGE [GUN_ETA_RANGE ...] Eta range of the particle gun --gun-pt-range GUN_PT_RANGE [GUN_PT_RANGE ...] Pt range of the particle gun (GeV) --rnd-seed RND_SEED Random seed --digi-config DIGI_CONFIG Digitization configuration file ```
This PR fixes: acts-project#3165 It first creates a `std::multimap` that relates the `G4VPhysVolume` to the possible `Acts::Surface` objects (there can be more due to the replica mechanism). In the Stepping action, the right one will then be picked. The output performance change in geant_hits is expected. Digitisation configuration file: [odd-digi-geometric-config.json](https://github.com/acts-project/acts/files/15188041/odd-digi-geometric-config.json) Example how to run full simulation with this: ```sh python <path_to_your_acts_source_dir>Examples/Scripts/Python/sim_digi_odd.py --digi-config odd-digi-geometric-config.json --geant4 --gun-multiplicity 10 --gun-pt-range 100 100 -n100 -o g4_mu_100GeV_m10 ``` Options are: ```sh usage: sim_digi_odd.py [-h] [--output OUTPUT] [--events EVENTS] [--skip SKIP] [--edm4hep EDM4HEP] [--geant4] [--ttbar] [--ttbar-pu TTBAR_PU] [--gun-multiplicity GUN_MULTIPLICITY] [--gun-eta-range GUN_ETA_RANGE [GUN_ETA_RANGE ...]] [--gun-pt-range GUN_PT_RANGE [GUN_PT_RANGE ...]] [--rnd-seed RND_SEED] [--digi-config DIGI_CONFIG] Sim-digi chain with the OpenDataDetector options: -h, --help show this help message and exit --output OUTPUT, -o OUTPUT Output directory --events EVENTS, -n EVENTS Number of events --skip SKIP, -s SKIP Number of events --edm4hep EDM4HEP Use edm4hep inputs --geant4 Use Geant4 instead of fatras --ttbar Use Pythia8 (ttbar, pile-up 200) instead of particle gun --ttbar-pu TTBAR_PU Number of pile-up events for ttbar --gun-multiplicity GUN_MULTIPLICITY Multiplicity of the particle gun --gun-eta-range GUN_ETA_RANGE [GUN_ETA_RANGE ...] Eta range of the particle gun --gun-pt-range GUN_PT_RANGE [GUN_PT_RANGE ...] Pt range of the particle gun (GeV) --rnd-seed RND_SEED Random seed --digi-config DIGI_CONFIG Digitization configuration file ```
This PR fixes:
#3165
It first creates a
std::multimap
that relates theG4VPhysVolume
to the possibleActs::Surface
objects (there can be more due to the replica mechanism).In the Stepping action, the right one will then be picked.
The output performance change in geant_hits is expected.
Digitisation configuration file:
odd-digi-geometric-config.json
Example how to run full simulation with this:
Options are: