Skip to content

TPC_MC: dEdx transfer function correction in the simulation - #16242

Open
tubagundem wants to merge 1 commit into
AliceO2Group:devfrom
tubagundem:TPC_MC_transfer_function
Open

tubagundem wants to merge 1 commit into
AliceO2Group:devfrom
tubagundem:TPC_MC_transfer_function

Conversation

@tubagundem

@tubagundem tubagundem commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The simulated truncated-mean dE/dx divided by the simulated primary ionisation rises with the ionisation.
Optionally divide the primary-collision rate by R(x) = 1 + TransferLogSlope * ln(x), with x = z^2 * BB(bg) / BB_min clamped to [1, TransferXMax], so that the reconstructed dE/dx follows the input Bethe-Bloch (BetheBlochParam, which must describe the truncated-mean dE/dx measured in data).

  • new TPCDetParam.TransferLogSlope (default 0: off) and TPCDetParam.TransferXMax (default 6)
  • BB_min is found once in InitializeO2Detector by a scan in log(bg) and copied in the copy constructor

@sawenzel

sawenzel commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

@tubagundem: Thanks for the PR! Could you please write a bit more about what this PR does and the motivation behind it? That would make it easier to judge its impact. The current message spells out the change, but not why it is needed. It would help me to connect it to a goal.

@tubagundem

tubagundem commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

@tubagundem: Thanks for the PR! Could you please write a bit more about what this PR does and the motivation behind it? That would make it easier to judge its impact. The current message spells out the change, but not why it is needed. It would help me to connect it to a goal.

Hi @sawenzel,

Sure. The goal is to match simulated dE/dx to data. To get there, we want to use the Bethe-Bloch parametrization fitted to data as the input of the MC.

The input alone isn't enough. The chain from deposited charge to reconstructed dE/dx doesn't have 1:1 ratio to the input. The reconstructed MC dE/dx therefore deviates from the data Bethe-Bloch we put in, and the deviation grows with the energy loss itself. We describe this deviation with a transfer function: the ratio of reconstructed to input dE/dx as a function of x = BB/BB_min. We fit it with R(x) = 1 + c·ln x and use the fitted c to correct the energy loss in the simulation.

With the data Bethe-Bloch as input plus this correction, the MC dE/dx should match the data dE/dx much better than with the default settings. Here you can see an example of how it should work in principle:
dEdxMIPComparison.pdf

This branch has not been deployed

No deployments
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