Skip to content

TPC: add UseGeant4Edep ionisation-fluctuation flag for Kr-83m calibration simulations#15615

Draft
Ankyyadav wants to merge 5 commits into
AliceO2Group:devfrom
Ankyyadav:feature/tpc-kr-calibration-generator
Draft

TPC: add UseGeant4Edep ionisation-fluctuation flag for Kr-83m calibration simulations#15615
Ankyyadav wants to merge 5 commits into
AliceO2Group:devfrom
Ankyyadav:feature/tpc-kr-calibration-generator

Conversation

@Ankyyadav

Copy link
Copy Markdown
  • Adds TPCDetParam.UseGeant4Edep, an opt-in flag (default off) that uses Geant4's energy deposit directly for ionisation in Detector::ProcessHits, with Fano-limited charge fluctuation via a Gamma-distributed smear (mean/variance tuned for GEANT4). Used for 83mKr TPC calibration simulations.
    • SetSpecialPhysicsCuts() calls matmgr.SpecialCut() for the TPC drift-gas media before the base class reads simcuts.dat (which sets a 10 keV default for these media). This is now exposed as TPCDetParam.SpecialCutsGeV (default 1e-6 GeV = 1 keV), so the actual effective cut
      can be set via configKeyValues.

Ankur Yadav 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
Please consider the following formatting changes to AliceO2Group#15615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants