TPC: add UseGeant4Edep ionisation-fluctuation flag for Kr-83m calibration simulations#15615
Draft
Ankyyadav wants to merge 5 commits into
Draft
TPC: add UseGeant4Edep ionisation-fluctuation flag for Kr-83m calibration simulations#15615Ankyyadav wants to merge 5 commits into
Ankyyadav wants to merge 5 commits into
Conversation
added 3 commits
July 16, 2026 12:33
…-83m calibration Adds a boolean flag TPCDetParam.UseGeant4Edep (default false) that switches ProcessHits' ionisation calculation from the standard Bethe-Bloch/NA49 collision-sampling model to the direct Geant4 energy deposit (fMC->Edep()), with Fano-limited Gamma-distributed smearing via ScaleFactorG4/FanoFactorG4 (TPCGasParam), matching the O2 Geant4-specific ionisation model used before commit 7860b87. A SetSpecialPhysicsCuts() override sets 1 keV VMC cuts on the TPC drift gas mediums before simcuts.dat is read, ensuring Auger electrons (1.921 keV minimum) are tracked and not killed early. The flag is off by default so the normal simulation chain is unaffected. Activate for Kr calibration via: --configKeyValues "TPCDetParam.UseGeant4Edep=1"
…ration-generator # Conflicts: # Detectors/TPC/simulation/src/Detector.cxx
Ankyyadav
marked this pull request as draft
July 21, 2026 09:25
Please consider the following formatting changes to AliceO2Group#15615
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TPCDetParam.UseGeant4Edep, an opt-in flag (default off) that uses Geant4's energy deposit directly for ionisation inDetector::ProcessHits, with Fano-limited charge fluctuation via a Gamma-distributed smear (mean/variance tuned for GEANT4). Used for 83mKr TPC calibration simulations.SetSpecialPhysicsCuts()callsmatmgr.SpecialCut()for the TPC drift-gas media before the base class readssimcuts.dat(which sets a 10 keV default for these media). This is now exposed asTPCDetParam.SpecialCutsGeV(default 1e-6 GeV = 1 keV), so the actual effective cutcan be set via configKeyValues.