Skip to content

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

Open
Ankyyadav wants to merge 1 commit into
AliceO2Group:devfrom
Ankyyadav:feature/tpc-kr-calibration-generator
Open

Ankyyadav wants to merge 1 commit 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.

@Ankyyadav
Ankyyadav marked this pull request as draft July 21, 2026 09:25
Ankyyadav added a commit to Ankyyadav/AliceO2 that referenced this pull request Jul 21, 2026
Please consider the following formatting changes to AliceO2Group#15615
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from 833f9a1 to dfc712d Compare July 23, 2026 13:54
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from dfc712d to cc9dea4 Compare July 23, 2026 14:01
@Ankyyadav
Ankyyadav marked this pull request as ready for review July 23, 2026 14:04
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from cc9dea4 to d6a0c54 Compare July 24, 2026 09:01
@Ankyyadav
Ankyyadav requested a review from wiechula July 27, 2026 19:27
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from d6a0c54 to 7f4271e Compare August 16, 2026 13:31
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from 7f4271e to 38af72c Compare September 2, 2026 08:10
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/include/TPCSimulation/GeneratorKrDecay.h Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
Comment thread Detectors/TPC/simulation/src/GeneratorKrDecay.cxx Outdated
…on support

- TPCDetParam.UseGeant4Edep: use Geant4's own energy deposit for ionisation
  instead of Bethe-Bloch/NA49, with a configurable SpecialCutsGeV threshold
- Adds the Kr-83m decay generator (GeneratorKrDecay) as a compiled Generator
  subclass in Detectors/TPC/simulation, with a thin krGenerator.C macro for
  use as an o2-sim external generator
- Adds plotCluster.C for viewing the resulting calibration spectrum
@Ankyyadav
Ankyyadav force-pushed the feature/tpc-kr-calibration-generator branch from 89cf669 to a1e6cae Compare September 15, 2026 06:55
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